--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Sun Oct 09 01:45:12 2011 +0200
@@ -72,7 +72,7 @@
if (self.helpPage == nil)
self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPad" bundle:nil];
self.helpPage.view.alpha = 0;
- [self.view addSubview:helpPage.view];
+ [self.view addSubview:self.helpPage.view];
[UIView beginAnimations:@"helplobby" context:NULL];
self.helpPage.view.alpha = 1;
[UIView commitAnimations];
@@ -305,32 +305,20 @@
self.mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil];
UILabel *theLabel;
- // left column
- theLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 60, 320, 620) andTitle:nil withBorderWidth:2.7f];
- [self.mapConfigViewController.view addSubview:theLabel];
- releaseAndNil(theLabel);
- // center column
- theLabel = [[UILabel alloc] initWithFrame:CGRectMake(337, 187, 350, 505) andTitle:nil withBorderWidth:2.7f];
- [self.mapConfigViewController.view addSubview:theLabel];
- releaseAndNil(theLabel);
- // right column
- theLabel = [[UILabel alloc] initWithFrame:CGRectMake(704, 214, 320, 466) andTitle:nil withBorderWidth:2.7f];
- [self.mapConfigViewController.view addSubview:theLabel];
- releaseAndNil(theLabel);
// top right column (map)
theLabel = [[UILabel alloc] initWithFrame:CGRectMake(714, 14, 300, 190) andTitle:nil withBorderWidth:2.3f];
[self.mapConfigViewController.view addSubview:theLabel];
releaseAndNil(theLabel);
// bottom left
- theLabel = [[UILabel alloc] initWithFrame:CGRectMake(110, 714, 320, 40) andTitle:nil withBorderWidth:2.0f];
+ theLabel = [[UILabel alloc] initWithFrame:CGRectMake(116, 714, 310, 40) andTitle:nil withBorderWidth:2.0f];
[self.mapConfigViewController.view addSubview:theLabel];
releaseAndNil(theLabel);
// bottom right
- theLabel = [[UILabel alloc] initWithFrame:CGRectMake(596, 714, 320, 40)
+ theLabel = [[UILabel alloc] initWithFrame:CGRectMake(598, 714, 310, 40)
andTitle:NSLocalizedString(@" Max Hogs:",@"")
withBorderWidth:2.0f];
theLabel.font = [UIFont italicSystemFontOfSize:[UIFont labelFontSize]];
- theLabel.textColor = [UIColor lightYellowColor];
+ theLabel.textColor = [UIColor whiteColor];
theLabel.textAlignment = UITextAlignmentLeft;
[self.mapConfigViewController.view addSubview:theLabel];
releaseAndNil(theLabel);
@@ -348,9 +336,10 @@
if (self.schemeWeaponConfigViewController == nil)
self.schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
[self.mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view];
+
self.mapConfigViewController.view.frame = CGRectMake(0, 0, screen.size.height, screen.size.width);
- self.teamConfigViewController.view.frame = CGRectMake(348, 200, 328, 480);
- self.schemeWeaponConfigViewController.view.frame = CGRectMake(10, 70, 300, 600);
+ self.schemeWeaponConfigViewController.view.frame = CGRectMake(0, 60, 320, 620);
+ self.teamConfigViewController.view.frame = CGRectMake(337, 187, 350, 505);
self.mapConfigViewController.parentController = self;
} else {
--- a/project_files/HedgewarsMobile/Classes/HWUtils.h Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HWUtils.h Sun Oct 09 01:45:12 2011 +0200
@@ -31,6 +31,13 @@
@end
+@interface UITableView (extra)
+
+-(void) setBackgroundColorForAnyTable:(UIColor *)color;
+
+@end
+
+
@interface UIColor (extra)
+(UIColor *)darkYellowColor;
--- a/project_files/HedgewarsMobile/Classes/HWUtils.m Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HWUtils.m Sun Oct 09 01:45:12 2011 +0200
@@ -59,6 +59,20 @@
@end
+@implementation UITableView (extra)
+
+-(void) setBackgroundColorForAnyTable:(UIColor *) color {
+ UIView *backView = [[UIView alloc] initWithFrame:self.frame];
+ backView.backgroundColor = color;
+ self.backgroundView = backView;
+ [backView release];
+ self.backgroundColor = [UIColor clearColor];
+}
+
+@end
+
+
+
@implementation UIColor (extra)
+(UIColor *)darkYellowColor {
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController-iPad.xib Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController-iPad.xib Sun Oct 09 01:45:12 2011 +0200
@@ -166,8 +166,8 @@
<int key="NSfFlags">16</int>
</object>
<object class="NSColor" key="IBUITextColor">
- <int key="NSColorSpace">2</int>
- <bytes key="NSRGB">MC45NDExNzY1MzM3IDAuODE1Njg2MzQ1MSAwAA</bytes>
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MSAxIDEAA</bytes>
</object>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">1</int>
@@ -191,8 +191,11 @@
<int key="NSfFlags">16</int>
</object>
<object class="NSColor" key="IBUITextColor">
- <int key="NSColorSpace">2</int>
- <bytes key="NSRGB">MC45MjU0OTAyNjAxIDAuODAwMDAwMDcxNSAwAA</bytes>
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
</object>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">1</int>
@@ -202,7 +205,7 @@
<object class="IBUIImageView" id="920829014">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{357, 19}, {309, 165}}</string>
+ <string key="NSFrame">{{357, 17}, {309, 165}}</string>
<reference key="NSSuperview" ref="191373211"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIUserInteractionEnabled">NO</bool>
@@ -215,7 +218,7 @@
<object class="IBUITableView" id="394383001">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">274</int>
- <string key="NSFrame">{{714, 225}, {300, 445}}</string>
+ <string key="NSFrame">{{704, 214}, {320, 466}}</string>
<reference key="NSSuperview" ref="191373211"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
@@ -225,11 +228,13 @@
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<bool key="IBUIAlwaysBounceVertical">YES</bool>
+ <bool key="IBUIShowsHorizontalScrollIndicator">NO</bool>
+ <int key="IBUIIndicatorStyle">2</int>
<int key="IBUIStyle">1</int>
<int key="IBUISeparatorStyle">2</int>
<int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
<bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
- <float key="IBUIRowHeight">45</float>
+ <float key="IBUIRowHeight">44</float>
</object>
<object class="IBUIButton" id="550636851">
<reference key="NSNextResponder" ref="191373211"/>
@@ -256,7 +261,7 @@
<object class="IBUIButton" id="403581306">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{11, 693}, {64, 64}}</string>
+ <string key="NSFrame">{{20, 693}, {64, 64}}</string>
<reference key="NSSuperview" ref="191373211"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
@@ -277,7 +282,7 @@
<object class="IBUIButton" id="1065439841">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{955, 693}, {64, 64}}</string>
+ <string key="NSFrame">{{940, 693}, {64, 64}}</string>
<reference key="NSSuperview" ref="191373211"/>
<bool key="IBUIOpaque">NO</bool>
<int key="IBUITag">2</int>
@@ -583,12 +588,14 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>MapConfigViewController</string>
<string>UIResponder</string>
- <string>{{288, 236}, {1024, 768}}</string>
+ <string>{{141, 288}, {1024, 768}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform"/>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAAAAAAAAxD+AAA</bytes>
+ </object>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABDsoAAwz8AAA</bytes>
@@ -631,7 +638,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">120</int>
+ <int key="maxID">122</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -778,11 +785,15 @@
</object>
<object class="IBPartialClassDescription">
<string key="className">UILabel</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1034187891">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">Classes/HWUtils.h</string>
</object>
</object>
+ <object class="IBPartialClassDescription">
+ <string key="className">UITableView</string>
+ <reference key="sourceIdentifier" ref="1034187891"/>
+ </object>
</object>
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
<bool key="EncodedWithXMLCoder">YES</bool>
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m Sun Oct 09 01:45:12 2011 +0200
@@ -20,6 +20,7 @@
#import "MapConfigViewController.h"
+#import <QuartzCore/QuartzCore.h>
#import "SchemeWeaponConfigViewController.h"
#import "GameConfigViewController.h"
@@ -433,7 +434,6 @@
if (self.segmentedControl.selectedSegmentIndex == 1) {
self.slider.enabled = NO;
self.sizeLabel.text = NSLocalizedString(@"No filter",@"");
- self.sizeLabel.textColor = [UIColor lightYellowColor];
}
self.templateFilterCommand = @"e$template_filter 0";
@@ -442,10 +442,14 @@
self.staticMapCommand = @"";
self.missionCommand = @"";
- if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
- [self.tableView setBackgroundView:nil];
- self.tableView.backgroundColor = [UIColor clearColor];
- self.tableView.separatorColor = [UIColor darkYellowColor];
+ if (IS_IPAD()) {
+ [self.tableView setBackgroundColorForAnyTable:[UIColor darkBlueColorTransparent]];
+ self.tableView.layer.borderColor = [[UIColor darkYellowColor] CGColor];
+ self.tableView.layer.borderWidth = 2.7f;
+ self.tableView.layer.cornerRadius = 8;
+ self.tableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0);
+ }
+ self.tableView.separatorColor = [UIColor whiteColor];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m Sun Oct 09 01:45:12 2011 +0200
@@ -20,6 +20,7 @@
#import "SchemeWeaponConfigViewController.h"
+#import <QuartzCore/QuartzCore.h>
#define LABEL_TAG 57423
@@ -107,21 +108,22 @@
CGSize screenSize = [[UIScreen mainScreen] bounds].size;
self.view.frame = CGRectMake(0, 0, screenSize.height, screenSize.width - 44);
- if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) {
- if (IS_IPAD())
- [self.tableView setBackgroundView:nil];
- else {
- UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
- UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
- [backgroundImage release];
- [self.tableView setBackgroundView:background];
- [background release];
- }
+ if (IS_IPAD()) {
+ [self.tableView setBackgroundColorForAnyTable:[UIColor darkBlueColorTransparent]];
+ self.tableView.layer.borderColor = [[UIColor darkYellowColor] CGColor];
+ self.tableView.layer.borderWidth = 2.7f;
+ self.tableView.layer.cornerRadius = 8;
+ self.tableView.contentInset = UIEdgeInsetsMake(5, 0, 5, 0);
} else {
- self.view.backgroundColor = [UIColor blackColor];
+ UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
+ UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
+ [backgroundImage release];
+ [self.tableView setBackgroundView:background];
+ [background release];
}
- self.tableView.separatorColor = [UIColor darkYellowColor];
+ self.tableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
+ self.tableView.separatorColor = [UIColor whiteColor];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Sun Oct 09 01:45:12 2011 +0200
@@ -20,6 +20,7 @@
#import "TeamConfigViewController.h"
+#import <QuartzCore/QuartzCore.h>
#import "SquareButtonView.h"
@@ -34,20 +35,22 @@
CGSize screenSize = [[UIScreen mainScreen] bounds].size;
self.view.frame = CGRectMake(0, 0, screenSize.height, screenSize.width - 44);
- if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) {
- if (IS_IPAD())
- [self.tableView setBackgroundView:nil];
- else {
- UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
- UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
- [backgroundImage release];
- [self.tableView setBackgroundView:background];
- [background release];
- }
- } else
- self.view.backgroundColor = [UIColor blackColor];
+ if (IS_IPAD()) {
+ [self.tableView setBackgroundColorForAnyTable:[UIColor darkBlueColorTransparent]];
+ self.tableView.layer.borderColor = [[UIColor darkYellowColor] CGColor];
+ self.tableView.layer.borderWidth = 2.7f;
+ self.tableView.layer.cornerRadius = 8;
+ self.tableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0);
+ } else {
+ UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
+ UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
+ [backgroundImage release];
+ [self.tableView setBackgroundView:background];
+ [background release];
+ }
- self.tableView.separatorColor = [UIColor darkYellowColor];
+ self.tableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
+ self.tableView.separatorColor = [UIColor whiteColor];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}
@@ -200,7 +203,7 @@
}
-(CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
- return 40.0;
+ return 45.0;
}
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
Binary file project_files/HedgewarsMobile/Resources/Frontend/helpButton.png has changed