project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3619 1155d8970646
parent 3616 85d69ddb41b6
child 3623 f14db208f2fa
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Sat Jul 03 15:30:33 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Sat Jul 03 15:30:52 2010 +0200
@@ -13,6 +13,14 @@
 #import "TeamConfigViewController.h"
 #import "SchemeWeaponConfigViewController.h"
 
+// draw background image in uitoolbar
+@implementation UIToolbar (CustomImage)
+-(void) drawRect:(CGRect)rect {
+    UIImage *image = [UIImage imageWithContentsOfFile:@"toolbarBackground.png"];
+    [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
+}
+@end
+
 @implementation GameConfigViewController
 
 
@@ -155,7 +163,6 @@
         if (schemeWeaponConfigViewController == nil)
             schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
         schemeWeaponConfigViewController.view.frame = CGRectMake(362, 224, 300, 500);
-        schemeWeaponConfigViewController.view.backgroundColor = [UIColor clearColor];
         [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view];
         for (UIView *oneView in self.view.subviews) {
             if ([oneView isMemberOfClass:[UIToolbar class]]) {