190 if (mapConfigViewController == nil) |
190 if (mapConfigViewController == nil) |
191 mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil]; |
191 mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil]; |
192 mapConfigViewController.delegate = self; |
192 mapConfigViewController.delegate = self; |
193 if (teamConfigViewController == nil) |
193 if (teamConfigViewController == nil) |
194 teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
194 teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
195 teamConfigViewController.view.frame = CGRectMake(10, 70, 300, 600); |
195 teamConfigViewController.view.frame = CGRectMake(362, 200, 300, 480); |
196 teamConfigViewController.view.backgroundColor = [UIColor clearColor]; |
196 teamConfigViewController.view.backgroundColor = [UIColor clearColor]; |
197 [mapConfigViewController.view addSubview:teamConfigViewController.view]; |
197 [mapConfigViewController.view addSubview:teamConfigViewController.view]; |
198 if (schemeWeaponConfigViewController == nil) |
198 if (schemeWeaponConfigViewController == nil) |
199 schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
199 schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
200 schemeWeaponConfigViewController.view.frame = CGRectMake(362, 200, 300, 480); |
200 schemeWeaponConfigViewController.view.frame = CGRectMake(10, 70, 300, 550); |
201 [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view]; |
201 [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view]; |
202 for (UIView *oneView in self.view.subviews) { |
202 mapConfigViewController.view.frame = CGRectMake(0, 0, screen.size.height, screen.size.width); |
203 if ([oneView isMemberOfClass:[UIToolbar class]]) { |
|
204 [oneView setHidden:YES]; |
|
205 break; |
|
206 } |
|
207 } |
|
208 } else { |
203 } else { |
209 // this is the visible controller |
204 // this is the visible controller |
210 mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPhone" bundle:nil]; |
205 mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPhone" bundle:nil]; |
211 // this must be loaded & added to auto set default scheme and ammo |
206 // this must be loaded & added to auto set default scheme and ammo |
212 schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
207 schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped]; |