# HG changeset patch
# User koda
# Date 1282517166 -7200
# Node ID bb5a0252fb5674c65d1abee6051f5d6b36c8107e
# Parent 73c2d7d5643bbfc96a013c21ac2eb4aeab77080f
small update for the about page
diff -r 73c2d7d5643b -r bb5a0252fb56 project_files/HedgewarsMobile/Classes/AboutViewController.h
--- a/project_files/HedgewarsMobile/Classes/AboutViewController.h Sun Aug 22 22:08:39 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/AboutViewController.h Mon Aug 23 00:46:06 2010 +0200
@@ -13,4 +13,6 @@
}
+-(IBAction) buttonPressed:(id) sender;
+
@end
diff -r 73c2d7d5643b -r bb5a0252fb56 project_files/HedgewarsMobile/Classes/AboutViewController.m
--- a/project_files/HedgewarsMobile/Classes/AboutViewController.m Sun Aug 22 22:08:39 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/AboutViewController.m Mon Aug 23 00:46:06 2010 +0200
@@ -38,5 +38,8 @@
[super dealloc];
}
+-(IBAction) buttonPressed:(id) sender {
+ [[self parentViewController] dismissModalViewControllerAnimated:YES];
+}
@end
diff -r 73c2d7d5643b -r bb5a0252fb56 project_files/HedgewarsMobile/Classes/AboutViewController.xib
--- a/project_files/HedgewarsMobile/Classes/AboutViewController.xib Sun Aug 22 22:08:39 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/AboutViewController.xib Mon Aug 23 00:46:06 2010 +0200
@@ -12,7 +12,7 @@
+
{320, 480}
3
MQA
-
- 2
-
+ NO
NO
3
@@ -89,6 +108,14 @@
3
+
+
+ buttonPressed:
+
+
+
+ 8
+
@@ -116,6 +143,7 @@
YES
+
@@ -124,6 +152,29 @@
+
+ 5
+
+
+ YES
+
+
+
+
+
+ 6
+
+
+ YES
+
+
+
+
+
+ 7
+
+
+
@@ -135,12 +186,18 @@
2.IBEditorWindowLastContentRect
2.IBPluginDependency
4.IBPluginDependency
+ 5.IBPluginDependency
+ 6.IBPluginDependency
+ 7.IBPluginDependency
YES
AboutViewController
UIResponder
- {{275, 444}, {320, 480}}
+ {{932, 318}, {320, 480}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
@@ -161,7 +218,7 @@
- 4
+ 8
@@ -169,6 +226,17 @@
AboutViewController
UIViewController
+
+ buttonPressed:
+ id
+
+
+ buttonPressed:
+
+ buttonPressed:
+ id
+
+
IBProjectSource
Classes/AboutViewController.h
@@ -283,6 +351,22 @@
+ UIBarButtonItem
+ UIBarItem
+
+ IBFrameworkSource
+ UIKit.framework/Headers/UIBarButtonItem.h
+
+
+
+ UIBarItem
+ NSObject
+
+ IBFrameworkSource
+ UIKit.framework/Headers/UIBarItem.h
+
+
+
UILabel
UIView
@@ -291,6 +375,19 @@
+ UINavigationBar
+ UIView
+
+ IBFrameworkSource
+ UIKit.framework/Headers/UINavigationBar.h
+
+
+
+ UINavigationItem
+ NSObject
+
+
+
UIResponder
NSObject
diff -r 73c2d7d5643b -r bb5a0252fb56 project_files/HedgewarsMobile/Classes/MainMenuViewController.m
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m Sun Aug 22 22:08:39 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m Mon Aug 23 00:46:06 2010 +0200
@@ -176,6 +176,7 @@
case 2:
if (nil == self.settingsViewController) {
SplitViewRootController *svrc = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil];
+ svrc.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
self.settingsViewController = svrc;
[svrc release];
}
@@ -185,7 +186,8 @@
case 3:
if (nil == self.aboutViewController) {
AboutViewController *about = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
- about.modalTransitionStyle = UIModalPresentationFormSheet;
+ about.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
+ about.modalPresentationStyle = UIModalPresentationFormSheet;
self.aboutViewController = about;
[about release];
}
@@ -219,7 +221,7 @@
}
}
-// allows child controllers to return to the main controller
+// must be kept for compatibility with the settings page
-(void) dismissModalViewController {
[self dismissModalViewControllerAnimated:YES];
}
diff -r 73c2d7d5643b -r bb5a0252fb56 project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
--- a/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m Sun Aug 22 22:08:39 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m Mon Aug 23 00:46:06 2010 +0200
@@ -26,6 +26,7 @@
-(void) viewDidLoad {
[super viewDidLoad];
+ // title, description, image name (+btn)
NSArray *mods = [[NSArray alloc] initWithObjects:
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Fort Mode",@""),@"title",
NSLocalizedString(@"Defend your fort and destroy the opponents (two team colours max)",@""),@"description",
@@ -85,6 +86,7 @@
self.gameModifierArray = mods;
[mods release];
+ // title, image name (+icon), default value, max value, min value
NSArray *basicSettings = [[NSArray alloc] initWithObjects:
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Damage Modifier",@""),@"title",@"Damage",@"image",
[NSNumber numberWithInt:100],@"default",[NSNumber numberWithInt:10],@"min",[NSNumber numberWithInt:300],@"max",nil],