project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 3935 5ca27a0e9a63
parent 3884 d7479079a8a8
child 4244 bf46b4bdf27d
equal deleted inserted replaced
3933:1a873262f5dd 3935:5ca27a0e9a63
    75             break;
    75             break;
    76         case 30:    //alternateSwitch
    76         case 30:    //alternateSwitch
    77             [self.settingsDictionary setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"alternate"];
    77             [self.settingsDictionary setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"alternate"];
    78             break;
    78             break;
    79         case 60:    //getReady
    79         case 60:    //getReady
    80             [self.settingsDictionary setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"ready"];
    80             [self.settingsDictionary setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"menu"];
    81             break;
    81             break;
    82         default:
    82         default:
    83             DLog(@"Wrong tag");
    83             DLog(@"Wrong tag");
    84             break;
    84             break;
    85     }
    85     }
   105             break;
   105             break;
   106         case 1:     // audio
   106         case 1:     // audio
   107             return 2;
   107             return 2;
   108             break;
   108             break;
   109         case 2:     // other stuff
   109         case 2:     // other stuff
   110             return 1;
   110             return 2;
   111             break;
   111             break;
   112         default:
   112         default:
       
   113             DLog(@"Nope");
   113             break;
   114             break;
   114     }
   115     }
   115     return 0;
   116     return 0;
   116 }
   117 }
   117 
   118 
   208                 cell.textLabel.text = NSLocalizedString(@"Alternate Damage", @"");
   209                 cell.textLabel.text = NSLocalizedString(@"Alternate Damage", @"");
   209                 cell.detailTextLabel.text = NSLocalizedString(@"Damage popups will notify you on every single hit a hedgehog suffers", @"");
   210                 cell.detailTextLabel.text = NSLocalizedString(@"Damage popups will notify you on every single hit a hedgehog suffers", @"");
   210                 switchContent.on = [[self.settingsDictionary objectForKey:@"alternate"] boolValue];
   211                 switchContent.on = [[self.settingsDictionary objectForKey:@"alternate"] boolValue];
   211                 switchContent.tag = 30;
   212                 switchContent.tag = 30;
   212             } else {
   213             } else {
   213                 /*
   214                 cell.textLabel.text = NSLocalizedString(@"Classic Ammo Menu", @"");
   214                 cell.textLabel.text = NSLocalizedString(@"Get Ready Dialogue", @"");
   215                 cell.detailTextLabel.text = NSLocalizedString(@"Select which style of ammo menu you prefer",@"");
   215                 cell.detailTextLabel.text = NSLocalizedString(@"Pause for 5 seconds between turns",@"");
   216                 switchContent.on = [[self.settingsDictionary objectForKey:@"menu"] boolValue];
   216                 switchContent.on = [[self.settingsDictionary objectForKey:@"ready"] boolValue];
       
   217                 switchContent.tag = 60;
   217                 switchContent.tag = 60;
   218                 */
       
   219             }
   218             }
   220             break;
   219             break;
   221         default:
   220         default:
   222             break;
   221             break;
   223     }
   222     }