project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 6830 d2df090453aa
parent 6700 e04da46ee43c
child 6832 fae8fd118da9
equal deleted inserted replaced
6829:60b039d88dab 6830:d2df090453aa
    21 
    21 
    22 #import "GameConfigViewController.h"
    22 #import "GameConfigViewController.h"
    23 #import "MapConfigViewController.h"
    23 #import "MapConfigViewController.h"
    24 #import "TeamConfigViewController.h"
    24 #import "TeamConfigViewController.h"
    25 #import "SchemeWeaponConfigViewController.h"
    25 #import "SchemeWeaponConfigViewController.h"
    26 #import "HelpPageViewController.h"
    26 #import "HelpPageLobbyViewController.h"
    27 #import "GameInterfaceBridge.h"
    27 #import "GameInterfaceBridge.h"
    28 
    28 
    29 @implementation GameConfigViewController
    29 @implementation GameConfigViewController
    30 @synthesize imgContainer, helpPage, titleImage, sliderBackground,
    30 @synthesize imgContainer, helpPage, titleImage, sliderBackground,
    31             mapConfigViewController, teamConfigViewController, schemeWeaponConfigViewController;
    31             mapConfigViewController, teamConfigViewController, schemeWeaponConfigViewController;
    68             
    68             
    69             break;
    69             break;
    70         case 2:
    70         case 2:
    71             [AudioManagerController playClickSound];
    71             [AudioManagerController playClickSound];
    72             if (self.helpPage == nil)
    72             if (self.helpPage == nil)
    73                 self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPad" bundle:nil];
    73                 self.helpPage = [[HelpPageLobbyViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPad" bundle:nil];
    74             self.helpPage.view.alpha = 0;
    74             self.helpPage.view.alpha = 0;
    75             [self.view addSubview:self.helpPage.view];
    75             [self.view addSubview:self.helpPage.view];
    76             [UIView beginAnimations:@"helplobby" context:NULL];
    76             [UIView beginAnimations:@"helplobby" context:NULL];
    77             self.helpPage.view.alpha = 1;
    77             self.helpPage.view.alpha = 1;
    78             [UIView commitAnimations];
    78             [UIView commitAnimations];
   104             [schemeWeaponConfigViewController viewWillAppear:NO];
   104             [schemeWeaponConfigViewController viewWillAppear:NO];
   105             [self.view bringSubviewToFront:schemeWeaponConfigViewController.view];
   105             [self.view bringSubviewToFront:schemeWeaponConfigViewController.view];
   106             break;
   106             break;
   107         case 3:
   107         case 3:
   108             if (helpPage == nil) {
   108             if (helpPage == nil) {
   109                 helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPhone" bundle:nil];
   109                 helpPage = [[HelpPageLobbyViewController alloc] initWithNibName:@"HelpPageLobbyViewController-iPhone" bundle:nil];
   110                 [self.view addSubview:helpPage.view];
   110                 [self.view addSubview:helpPage.view];
   111             }
   111             }
   112             // this message is compulsory otherwise the table won't be loaded at all
   112             // this message is compulsory otherwise the table won't be loaded at all
   113             [helpPage viewWillAppear:NO];
   113             [helpPage viewWillAppear:NO];
   114             [self.view bringSubviewToFront:helpPage.view];
   114             [self.view bringSubviewToFront:helpPage.view];