cocoaTouch/MainMenuViewController.m
changeset 2685 0ba746be5d59
child 2687 28b8330b8af1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cocoaTouch/MainMenuViewController.m	Fri Jan 08 01:12:51 2010 +0000
@@ -0,0 +1,69 @@
+//
+//  MainMenuViewController.m
+//  hwengine
+//
+//  Created by Vittorio on 08/01/10.
+//  Copyright 2010 __MyCompanyName__. All rights reserved.
+//
+
+#import "MainMenuViewController.h"
+#import "SDL_uikitappdelegate.h"
+
+@implementation MainMenuViewController
+
+@synthesize passandplayButton, netplayButton, storeButton, versionLabel;
+
+/*
+ // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
+    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
+        // Custom initialization
+    }
+    return self;
+}
+*/
+
+
+// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
+- (void)viewDidLoad {
+	self.versionLabel = @"Hedgewar version 0.9.13-dev";
+    [super viewDidLoad];
+}
+
+
+/*
+// Override to allow orientations other than the default portrait orientation.
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+    // Return YES for supported orientations
+    return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+*/
+
+- (void)didReceiveMemoryWarning {
+	// Releases the view if it doesn't have a superview.
+    [super didReceiveMemoryWarning];
+	
+	// Release any cached data, images, etc that aren't in use.
+}
+
+- (void)viewDidUnload {
+	// Release any retained subviews of the main view.
+	// e.g. self.myOutlet = nil;
+	self.passandplayButton = nil;
+	self.netplayButton = nil;
+	self.storeButton = nil;
+	self.versionLabel = nil;
+}
+
+- (void)dealloc {
+	[passandplayButton release];
+	[netplayButton release];
+	[storeButton release];
+	[versionLabel release];
+    [super dealloc];
+}
+
+-(IBAction) startPlaying {
+	[[SDLUIKitDelegate sharedAppDelegate] startSDLgame];
+}
+@end