project_files/HedgewarsMobile/Classes/InGameMenuViewController.m
changeset 5711 cba92708277b
parent 5662 99083392cd4f
child 6019 8843ea756cfc
equal deleted inserted replaced
5709:36cf87a4f6ae 5711:cba92708277b
    43 
    43 
    44 -(void) viewDidLoad {
    44 -(void) viewDidLoad {
    45     NSArray *array = [[NSArray alloc] initWithObjects:
    45     NSArray *array = [[NSArray alloc] initWithObjects:
    46                       NSLocalizedString(@"Show Help", @""),
    46                       NSLocalizedString(@"Show Help", @""),
    47                       NSLocalizedString(@"Tag", @""),
    47                       NSLocalizedString(@"Tag", @""),
    48                       NSLocalizedString(@"Snapshot",@""),
    48 //                      NSLocalizedString(@"Snapshot",@""),
    49                       NSLocalizedString(@"End Game", @""),
    49                       NSLocalizedString(@"End Game", @""),
    50                       nil];
    50                       nil];
    51     self.menuList = array;
    51     self.menuList = array;
    52     [array release];
    52     [array release];
    53 
    53 
   115 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
   115 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
   116     return 1;
   116     return 1;
   117 }
   117 }
   118 
   118 
   119 -(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
   119 -(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
   120     return 4;
   120     return 3;
       
   121 //    return 4;
   121 }
   122 }
   122 
   123 
   123 -(UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
   124 -(UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
   124     static NSString *cellIdentifier = @"CellIdentifier";
   125     static NSString *cellIdentifier = @"CellIdentifier";
   125 
   126 
   149             HW_chat();
   150             HW_chat();
   150             SDL_iPhoneKeyboardShow((SDL_Window *)HW_getSDLWindow());
   151             SDL_iPhoneKeyboardShow((SDL_Window *)HW_getSDLWindow());
   151 
   152 
   152             break;
   153             break;
   153         case 2:
   154         case 2:
       
   155 /*
   154             alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Going to take a screenshot",@"")
   156             alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Going to take a screenshot",@"")
   155                                                message:NSLocalizedString(@"The game snapshot will be placed in your Photo Album and it will be taken as soon as the pause menu is dismissed",@"")
   157                                                message:NSLocalizedString(@"The game snapshot will be placed in your Photo Album and it will be taken as soon as the pause menu is dismissed",@"")
   156                                               delegate:nil
   158                                               delegate:nil
   157                                      cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
   159                                      cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
   158                                      otherButtonTitles:nil];
   160                                      otherButtonTitles:nil];
   160             [alert release];
   162             [alert release];
   161             shouldTakeScreenshot = YES;
   163             shouldTakeScreenshot = YES;
   162 
   164 
   163             break;
   165             break;
   164         case 3:
   166         case 3:
       
   167 */
   165             actionSheet = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"Are you reeeeeally sure?", @"")
   168             actionSheet = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"Are you reeeeeally sure?", @"")
   166                                                       delegate:self
   169                                                       delegate:self
   167                                              cancelButtonTitle:NSLocalizedString(@"Well, maybe not...", @"")
   170                                              cancelButtonTitle:NSLocalizedString(@"Well, maybe not...", @"")
   168                                         destructiveButtonTitle:NSLocalizedString(@"Of course!", @"")
   171                                         destructiveButtonTitle:NSLocalizedString(@"Of course!", @"")
   169                                              otherButtonTitles:nil];
   172                                              otherButtonTitles:nil];