equal
deleted
inserted
replaced
103 GameConfigViewController *gcvc = [[GameConfigViewController alloc] initWithNibName:xib bundle:nil]; |
103 GameConfigViewController *gcvc = [[GameConfigViewController alloc] initWithNibName:xib bundle:nil]; |
104 gcvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
104 gcvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
105 self.gameConfigViewController = gcvc; |
105 self.gameConfigViewController = gcvc; |
106 [gcvc release]; |
106 [gcvc release]; |
107 } |
107 } |
108 [self presentModalViewController:self.gameConfigViewController animated:YES]; |
108 [self presentViewController:self.gameConfigViewController animated:YES completion:nil]; |
109 break; |
109 break; |
110 case 2: |
110 case 2: |
111 if (nil == self.settingsViewController) { |
111 if (nil == self.settingsViewController) { |
112 SettingsContainerViewController *svrc = [[SettingsContainerViewController alloc] initWithNibName:nil bundle:nil]; |
112 SettingsContainerViewController *svrc = [[SettingsContainerViewController alloc] initWithNibName:nil bundle:nil]; |
113 svrc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
113 svrc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
114 self.settingsViewController = svrc; |
114 self.settingsViewController = svrc; |
115 [svrc release]; |
115 [svrc release]; |
116 } |
116 } |
117 [self presentModalViewController:self.settingsViewController animated:YES]; |
117 [self presentViewController:self.settingsViewController animated:YES completion:nil]; |
118 break; |
118 break; |
119 case 3: |
119 case 3: |
120 #ifdef DEBUG |
120 #ifdef DEBUG |
121 if ([[NSFileManager defaultManager] fileExistsAtPath:DEBUG_FILE()]) |
121 if ([[NSFileManager defaultManager] fileExistsAtPath:DEBUG_FILE()]) |
122 debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; |
122 debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; |
158 if ([about respondsToSelector:@selector(setModalPresentationStyle:)]) |
158 if ([about respondsToSelector:@selector(setModalPresentationStyle:)]) |
159 about.modalPresentationStyle = UIModalPresentationFormSheet; |
159 about.modalPresentationStyle = UIModalPresentationFormSheet; |
160 self.aboutViewController = about; |
160 self.aboutViewController = about; |
161 [about release]; |
161 [about release]; |
162 } |
162 } |
163 [self presentModalViewController:self.aboutViewController animated:YES]; |
163 [self presentViewController:self.aboutViewController animated:YES completion:nil]; |
164 #endif |
164 #endif |
165 break; |
165 break; |
166 case 4: |
166 case 4: |
167 if (nil == self.savedGamesViewController) { |
167 if (nil == self.savedGamesViewController) { |
168 SavedGamesViewController *savedgames = [[SavedGamesViewController alloc] initWithNibName:@"SavedGamesViewController" bundle:nil]; |
168 SavedGamesViewController *savedgames = [[SavedGamesViewController alloc] initWithNibName:@"SavedGamesViewController" bundle:nil]; |
170 if ([savedgames respondsToSelector:@selector(setModalPresentationStyle:)]) |
170 if ([savedgames respondsToSelector:@selector(setModalPresentationStyle:)]) |
171 savedgames.modalPresentationStyle = UIModalPresentationPageSheet; |
171 savedgames.modalPresentationStyle = UIModalPresentationPageSheet; |
172 self.savedGamesViewController = savedgames; |
172 self.savedGamesViewController = savedgames; |
173 [savedgames release]; |
173 [savedgames release]; |
174 } |
174 } |
175 [self presentModalViewController:self.savedGamesViewController animated:YES]; |
175 [self presentViewController:self.savedGamesViewController animated:YES completion:nil]; |
176 break; |
176 break; |
177 case 5: |
177 case 5: |
178 if (nil == self.missionsViewController) { |
178 if (nil == self.missionsViewController) { |
179 xib = IS_IPAD() ? @"MissionTrainingViewController-iPad" : @"MissionTrainingViewController-iPhone"; |
179 xib = IS_IPAD() ? @"MissionTrainingViewController-iPad" : @"MissionTrainingViewController-iPhone"; |
180 MissionTrainingViewController *missions = [[MissionTrainingViewController alloc] initWithNibName:xib bundle:nil]; |
180 MissionTrainingViewController *missions = [[MissionTrainingViewController alloc] initWithNibName:xib bundle:nil]; |
182 if ([missions respondsToSelector:@selector(setModalPresentationStyle:)]) |
182 if ([missions respondsToSelector:@selector(setModalPresentationStyle:)]) |
183 missions.modalPresentationStyle = UIModalPresentationPageSheet; |
183 missions.modalPresentationStyle = UIModalPresentationPageSheet; |
184 self.missionsViewController = missions; |
184 self.missionsViewController = missions; |
185 [missions release]; |
185 [missions release]; |
186 } |
186 } |
187 [self presentModalViewController:self.missionsViewController animated:YES]; |
187 [self presentViewController:self.missionsViewController animated:YES completion:nil]; |
188 break; |
188 break; |
189 case 6: |
189 case 6: |
190 [GameInterfaceBridge registerCallingController:self]; |
190 [GameInterfaceBridge registerCallingController:self]; |
191 [GameInterfaceBridge startSimpleGame]; |
191 [GameInterfaceBridge startSimpleGame]; |
192 break; |
192 break; |