project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 3803 e4a8a4e378de
parent 3783 8e9daf967406
child 3829 81db3c85784b
equal deleted inserted replaced
3802:2ccfc93c6b5e 3803:e4a8a4e378de
    92             break;
    92             break;
    93         case 1:     // audio
    93         case 1:     // audio
    94             return 2;
    94             return 2;
    95             break;
    95             break;
    96         case 2:     // other stuff
    96         case 2:     // other stuff
    97             return 2;
    97             return 1;
    98             break;
    98             break;
    99         default:
    99         default:
   100             break;
   100             break;
   101     }
   101     }
   102     return 0;
   102     return 0;
   104 
   104 
   105 -(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
   105 -(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
   106     NSString *sectionTitle = nil;
   106     NSString *sectionTitle = nil;
   107     switch (section) {
   107     switch (section) {
   108         case 0:
   108         case 0:
   109             sectionTitle = NSLocalizedString(@"Network Configuration", @"");
   109             sectionTitle = NSLocalizedString(@"Main Configuration", @"");
   110             break;
   110             break;
   111         case 1:
   111         case 1:
   112             sectionTitle = NSLocalizedString(@"Audio Preferences", @"");
   112             sectionTitle = NSLocalizedString(@"Audio Preferences", @"");
   113             break;
   113             break;
   114         case 2:
   114         case 2:
   191             }
   191             }
   192             
   192             
   193             switchContent = (UISwitch *)cell.accessoryView;
   193             switchContent = (UISwitch *)cell.accessoryView;
   194             if (row == 0) {
   194             if (row == 0) {
   195                 cell.textLabel.text = NSLocalizedString(@"Alternate Damage", @"");
   195                 cell.textLabel.text = NSLocalizedString(@"Alternate Damage", @"");
   196                 cell.detailTextLabel.text = NSLocalizedString(@"Damage will popup when the hedgehog is injured", @"");
   196                 cell.detailTextLabel.text = NSLocalizedString(@"A damage popup will appear when a hedgehog is injured", @"");
   197                 switchContent.on = [[self.settingsDictionary objectForKey:@"alternate"] boolValue];
   197                 switchContent.on = [[self.settingsDictionary objectForKey:@"alternate"] boolValue];
   198                 switchContent.tag = 30;
   198                 switchContent.tag = 30;
   199             } else {
   199             } else {
       
   200                 /*
   200                 cell.textLabel.text = NSLocalizedString(@"Get Ready Dialogue", @"");
   201                 cell.textLabel.text = NSLocalizedString(@"Get Ready Dialogue", @"");
   201                 cell.detailTextLabel.text = NSLocalizedString(@"Pause for 5 seconds between turns",@"");
   202                 cell.detailTextLabel.text = NSLocalizedString(@"Pause for 5 seconds between turns",@"");
   202                 switchContent.on = [[self.settingsDictionary objectForKey:@"ready"] boolValue];
   203                 switchContent.on = [[self.settingsDictionary objectForKey:@"ready"] boolValue];
   203                 switchContent.tag = 60;
   204                 switchContent.tag = 60;
       
   205                 */
   204             }
   206             }
   205             break;
   207             break;
   206         default:
   208         default:
   207             break;
   209             break;
   208     }
   210     }