equal
deleted
inserted
replaced
42 #endif |
42 #endif |
43 |
43 |
44 @interface MainMenuViewController () |
44 @interface MainMenuViewController () |
45 @property (retain, nonatomic) IBOutlet UIButton *simpleGameButton; |
45 @property (retain, nonatomic) IBOutlet UIButton *simpleGameButton; |
46 @property (retain, nonatomic) IBOutlet UIButton *missionsButton; |
46 @property (retain, nonatomic) IBOutlet UIButton *missionsButton; |
|
47 @property (retain, nonatomic) IBOutlet UIButton *campaignButton; |
47 @end |
48 @end |
48 |
49 |
49 @implementation MainMenuViewController |
50 @implementation MainMenuViewController |
50 |
51 |
51 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
52 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
57 self.view.frame = [[UIScreen mainScreen] safeBounds]; |
58 self.view.frame = [[UIScreen mainScreen] safeBounds]; |
58 [super viewDidLoad]; |
59 [super viewDidLoad]; |
59 |
60 |
60 [self.simpleGameButton setTitle:NSLocalizedString(@"Simple", nil) forState:UIControlStateNormal]; |
61 [self.simpleGameButton setTitle:NSLocalizedString(@"Simple", nil) forState:UIControlStateNormal]; |
61 [self.missionsButton setTitle:NSLocalizedString(@"Missions", nil) forState:UIControlStateNormal]; |
62 [self.missionsButton setTitle:NSLocalizedString(@"Missions", nil) forState:UIControlStateNormal]; |
|
63 [self.campaignButton setTitle:NSLocalizedString(@"Campaign", nil) forState:UIControlStateNormal]; |
62 |
64 |
63 [self.simpleGameButton applyDarkBlueQuickStyle]; |
65 [self.simpleGameButton applyDarkBlueQuickStyle]; |
64 [self.missionsButton applyDarkBlueQuickStyle]; |
66 [self.missionsButton applyDarkBlueQuickStyle]; |
|
67 [self.campaignButton applyDarkBlueQuickStyle]; |
65 |
68 |
66 // get the app's version |
69 // get the app's version |
67 NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]; |
70 NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]; |
68 |
71 |
69 // get the version number that we've been tracking |
72 // get the version number that we've been tracking |
284 } |
287 } |
285 |
288 |
286 -(void) dealloc { |
289 -(void) dealloc { |
287 [_simpleGameButton release]; |
290 [_simpleGameButton release]; |
288 [_missionsButton release]; |
291 [_missionsButton release]; |
|
292 [_campaignButton release]; |
289 [super dealloc]; |
293 [super dealloc]; |
290 } |
294 } |
291 |
295 |
292 @end |
296 @end |