project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3792 dd9345e74b66
parent 3783 8e9daf967406
child 3829 81db3c85784b
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Mon Aug 30 05:42:03 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Mon Aug 30 06:33:56 2010 +0200
@@ -8,13 +8,14 @@
 
 #import "GameConfigViewController.h"
 #import "SDL_uikitappdelegate.h"
-#import "CommodityFunctions.h"
 #import "TeamConfigViewController.h"
 #import "SchemeWeaponConfigViewController.h"
+#import "HelpPageViewController.h"
+#import "CommodityFunctions.h"
 #import "UIImageExtra.h"
 
 @implementation GameConfigViewController
-@synthesize hedgehogImage, imgContainer;
+@synthesize hedgehogImage, imgContainer, helpPage;
 
 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
     return rotationManager(interfaceOrientation);
@@ -41,11 +42,19 @@
             playSound(@"clickSound");
             theButton.enabled = NO;
             [self startGame:theButton];
-//            [self performSelector:@selector(startGame:)
-//                       withObject:theButton
-//                       afterDelay:0.25];
+            break;
+        case 2:
+            playSound(@"clickSound");
+            if (self.helpPage == nil)
+                self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController" bundle:nil];
+            self.helpPage.view.alpha = 0;
+            [self.view addSubview:helpPage.view];
+            [UIView beginAnimations:@"helplobby" context:NULL];
+            self.helpPage.view.alpha = 1;
+            [UIView commitAnimations];
             break;
         default:
+            DLog(@"Nope");
             break;
     }
 }