equal
deleted
inserted
replaced
6 // Copyright 2010 __MyCompanyName__. All rights reserved. |
6 // Copyright 2010 __MyCompanyName__. All rights reserved. |
7 // |
7 // |
8 |
8 |
9 #import "GameConfigViewController.h" |
9 #import "GameConfigViewController.h" |
10 #import "SDL_uikitappdelegate.h" |
10 #import "SDL_uikitappdelegate.h" |
11 #import "CommodityFunctions.h" |
|
12 #import "TeamConfigViewController.h" |
11 #import "TeamConfigViewController.h" |
13 #import "SchemeWeaponConfigViewController.h" |
12 #import "SchemeWeaponConfigViewController.h" |
|
13 #import "HelpPageViewController.h" |
|
14 #import "CommodityFunctions.h" |
14 #import "UIImageExtra.h" |
15 #import "UIImageExtra.h" |
15 |
16 |
16 @implementation GameConfigViewController |
17 @implementation GameConfigViewController |
17 @synthesize hedgehogImage, imgContainer; |
18 @synthesize hedgehogImage, imgContainer, helpPage; |
18 |
19 |
19 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
20 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
20 return rotationManager(interfaceOrientation); |
21 return rotationManager(interfaceOrientation); |
21 } |
22 } |
22 |
23 |
39 break; |
40 break; |
40 case 1: |
41 case 1: |
41 playSound(@"clickSound"); |
42 playSound(@"clickSound"); |
42 theButton.enabled = NO; |
43 theButton.enabled = NO; |
43 [self startGame:theButton]; |
44 [self startGame:theButton]; |
44 // [self performSelector:@selector(startGame:) |
45 break; |
45 // withObject:theButton |
46 case 2: |
46 // afterDelay:0.25]; |
47 playSound(@"clickSound"); |
|
48 if (self.helpPage == nil) |
|
49 self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController" bundle:nil]; |
|
50 self.helpPage.view.alpha = 0; |
|
51 [self.view addSubview:helpPage.view]; |
|
52 [UIView beginAnimations:@"helplobby" context:NULL]; |
|
53 self.helpPage.view.alpha = 1; |
|
54 [UIView commitAnimations]; |
47 break; |
55 break; |
48 default: |
56 default: |
|
57 DLog(@"Nope"); |
49 break; |
58 break; |
50 } |
59 } |
51 } |
60 } |
52 |
61 |
53 -(IBAction) segmentPressed:(id) sender { |
62 -(IBAction) segmentPressed:(id) sender { |