cocoaTouch/MainMenuViewController.m
changeset 2687 28b8330b8af1
parent 2685 0ba746be5d59
child 2694 dcd248e04f3d
equal deleted inserted replaced
2686:ad3304e906bb 2687:28b8330b8af1
    23 }
    23 }
    24 */
    24 */
    25 
    25 
    26 
    26 
    27 // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    27 // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    28 - (void)viewDidLoad {
    28 -(void) viewDidLoad {
    29 	self.versionLabel = @"Hedgewar version 0.9.13-dev";
    29 	self.versionLabel = @"Hedgewars version 0.9.13-dev";
    30     [super viewDidLoad];
    30     [super viewDidLoad];
    31 }
    31 }
    32 
       
    33 
    32 
    34 /*
    33 /*
    35 // Override to allow orientations other than the default portrait orientation.
    34 // Override to allow orientations other than the default portrait orientation.
    36 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    35 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    37     // Return YES for supported orientations
    36     // Return YES for supported orientations
    46 	// Release any cached data, images, etc that aren't in use.
    45 	// Release any cached data, images, etc that aren't in use.
    47 }
    46 }
    48 
    47 
    49 - (void)viewDidUnload {
    48 - (void)viewDidUnload {
    50 	// Release any retained subviews of the main view.
    49 	// Release any retained subviews of the main view.
    51 	// e.g. self.myOutlet = nil;
       
    52 	self.passandplayButton = nil;
    50 	self.passandplayButton = nil;
    53 	self.netplayButton = nil;
    51 	self.netplayButton = nil;
    54 	self.storeButton = nil;
    52 	self.storeButton = nil;
    55 	self.versionLabel = nil;
    53 	self.versionLabel = nil;
    56 }
    54 }
    62 	[versionLabel release];
    60 	[versionLabel release];
    63     [super dealloc];
    61     [super dealloc];
    64 }
    62 }
    65 
    63 
    66 -(IBAction) startPlaying {
    64 -(IBAction) startPlaying {
       
    65 	// TODO: support IPC and start a thread
       
    66 	
    67 	[[SDLUIKitDelegate sharedAppDelegate] startSDLgame];
    67 	[[SDLUIKitDelegate sharedAppDelegate] startSDLgame];
    68 }
    68 }
       
    69 
       
    70 -(IBAction) notYetImplemented {
       
    71 	UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Not Yet Implemented"
       
    72 									message:@"Sorry, this feature is not yet implemented"
       
    73 									delegate:nil
       
    74 									cancelButtonTitle:@"Well, don't worry"
       
    75 									otherButtonTitles:nil];
       
    76 	[alert show];
       
    77 	[alert release];
       
    78 }
       
    79 
    69 @end
    80 @end