equal
deleted
inserted
replaced
65 [self startGame:theButton]; |
65 [self startGame:theButton]; |
66 break; |
66 break; |
67 case 2: |
67 case 2: |
68 playSound(@"clickSound"); |
68 playSound(@"clickSound"); |
69 if (self.helpPage == nil) |
69 if (self.helpPage == nil) |
70 self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController" bundle:nil]; |
70 self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPad" bundle:nil]; |
71 self.helpPage.view.alpha = 0; |
71 self.helpPage.view.alpha = 0; |
72 [self.view addSubview:helpPage.view]; |
72 [self.view addSubview:helpPage.view]; |
73 [UIView beginAnimations:@"helplobby" context:NULL]; |
73 [UIView beginAnimations:@"helplobby" context:NULL]; |
74 self.helpPage.view.alpha = 1; |
74 self.helpPage.view.alpha = 1; |
75 [UIView commitAnimations]; |
75 [UIView commitAnimations]; |
110 [self.view addSubview:schemeWeaponConfigViewController.view]; |
110 [self.view addSubview:schemeWeaponConfigViewController.view]; |
111 } |
111 } |
112 // this message is compulsory otherwise the table won't be loaded at all |
112 // this message is compulsory otherwise the table won't be loaded at all |
113 [schemeWeaponConfigViewController viewWillAppear:NO]; |
113 [schemeWeaponConfigViewController viewWillAppear:NO]; |
114 [self.view bringSubviewToFront:schemeWeaponConfigViewController.view]; |
114 [self.view bringSubviewToFront:schemeWeaponConfigViewController.view]; |
|
115 break; |
|
116 case 3: |
|
117 if (helpPage == nil) { |
|
118 helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPhone" bundle:nil]; |
|
119 [self.view addSubview:helpPage.view]; |
|
120 } |
|
121 // this message is compulsory otherwise the table won't be loaded at all |
|
122 [helpPage viewWillAppear:NO]; |
|
123 [self.view bringSubviewToFront:helpPage.view]; |
115 break; |
124 break; |
116 default: |
125 default: |
117 DLog(@"Nope"); |
126 DLog(@"Nope"); |
118 break; |
127 break; |
119 } |
128 } |