project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 4144 cda2685feeb4
parent 3996 eb549fd864a5
child 4150 050163c35c83
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Fri Nov 05 22:32:00 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Sat Nov 06 03:57:47 2010 +0100
@@ -67,7 +67,7 @@
         case 2:
             playSound(@"clickSound");
             if (self.helpPage == nil)
-                self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController" bundle:nil];
+                self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPad" bundle:nil];
             self.helpPage.view.alpha = 0;
             [self.view addSubview:helpPage.view];
             [UIView beginAnimations:@"helplobby" context:NULL];
@@ -113,6 +113,15 @@
             [schemeWeaponConfigViewController viewWillAppear:NO];
             [self.view bringSubviewToFront:schemeWeaponConfigViewController.view];
             break;
+        case 3:
+            if (helpPage == nil) {
+                helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPhone" bundle:nil];
+                [self.view addSubview:helpPage.view];
+            }
+            // this message is compulsory otherwise the table won't be loaded at all
+            [helpPage viewWillAppear:NO];
+            [self.view bringSubviewToFront:helpPage.view];
+            break;
         default:
             DLog(@"Nope");
             break;