94 } |
94 } |
95 NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:mapConfigViewController.seedCommand,@"seed_command", |
95 NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:mapConfigViewController.seedCommand,@"seed_command", |
96 mapConfigViewController.templateFilterCommand,@"templatefilter_command", |
96 mapConfigViewController.templateFilterCommand,@"templatefilter_command", |
97 mapConfigViewController.mapGenCommand,@"mapgen_command", |
97 mapConfigViewController.mapGenCommand,@"mapgen_command", |
98 mapConfigViewController.mazeSizeCommand,@"mazesize_command", |
98 mapConfigViewController.mazeSizeCommand,@"mazesize_command", |
|
99 mapConfigViewController.themeCommand,@"theme_command", |
99 teamConfigViewController.listOfSelectedTeams,@"teams_list",nil]; |
100 teamConfigViewController.listOfSelectedTeams,@"teams_list",nil]; |
100 [dict writeToFile:GAMECONFIG_FILE() atomically:YES]; |
101 [dict writeToFile:GAMECONFIG_FILE() atomically:YES]; |
101 [dict release]; |
102 [dict release]; |
102 [[self parentViewController] dismissModalViewControllerAnimated:YES]; |
103 [[self parentViewController] dismissModalViewControllerAnimated:YES]; |
103 [[SDLUIKitDelegate sharedAppDelegate] startSDLgame]; |
104 [[SDLUIKitDelegate sharedAppDelegate] startSDLgame]; |
116 [mapConfigViewController viewWillAppear:animated]; |
117 [mapConfigViewController viewWillAppear:animated]; |
117 [teamConfigViewController viewWillAppear:animated]; |
118 [teamConfigViewController viewWillAppear:animated]; |
118 // ADD other controllers here |
119 // ADD other controllers here |
119 |
120 |
120 [super viewWillAppear:animated]; |
121 [super viewWillAppear:animated]; |
|
122 } |
|
123 |
|
124 -(void) viewDidAppear:(BOOL)animated { |
|
125 [mapConfigViewController viewDidAppear:animated]; |
|
126 [teamConfigViewController viewDidAppear:animated]; |
|
127 [super viewDidAppear:animated]; |
121 } |
128 } |
122 |
129 |
123 -(void) didReceiveMemoryWarning { |
130 -(void) didReceiveMemoryWarning { |
124 // Releases the view if it doesn't have a superview. |
131 // Releases the view if it doesn't have a superview. |
125 [super didReceiveMemoryWarning]; |
132 [super didReceiveMemoryWarning]; |