project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 5664 dfc574d7f49e
parent 5662 99083392cd4f
child 5700 f0960a88ab0e
equal deleted inserted replaced
5662:99083392cd4f 5664:dfc574d7f49e
    85             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"alternate"];
    85             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"alternate"];
    86             break;
    86             break;
    87         case 90:    //synched weapons/scheme
    87         case 90:    //synched weapons/scheme
    88             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"sync_ws"];
    88             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"sync_ws"];
    89             break;
    89             break;
    90         case 70:    //enhanced graphics
       
    91             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"enhanced"];
       
    92             break;
       
    93         case 60:    //classic menu
    90         case 60:    //classic menu
    94             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"classic_menu"];
    91             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"classic_menu"];
    95             break;
    92             break;
    96         default:
    93         default:
    97             DLog(@"Wrong tag");
    94             DLog(@"Wrong tag");
   121             break;
   118             break;
   122         case 1:     // audio
   119         case 1:     // audio
   123             return 2;
   120             return 2;
   124             break;
   121             break;
   125         case 2:     // other options
   122         case 2:     // other options
   126             return 5;
   123             return 3;
   127             break;
   124             break;
   128         default:
   125         default:
   129             DLog(@"Nope");
   126             DLog(@"Nope");
   130             break;
   127             break;
   131     }
   128     }
   235                     cell.detailTextLabel.text = NSLocalizedString(@"Choosing a Scheme will select its associated Weapon", @"");
   232                     cell.detailTextLabel.text = NSLocalizedString(@"Choosing a Scheme will select its associated Weapon", @"");
   236                     switchContent.on = [[settings objectForKey:@"sync_ws"] boolValue];
   233                     switchContent.on = [[settings objectForKey:@"sync_ws"] boolValue];
   237                     switchContent.tag = 90;
   234                     switchContent.tag = 90;
   238                     break;
   235                     break;
   239                 case 2:
   236                 case 2:
   240                     cell.textLabel.text = NSLocalizedString(@"Enanched Graphics", @"");
       
   241                     cell.detailTextLabel.text = NSLocalizedString(@"Beware that the game will consume more memory", @"");
       
   242                     switchContent.on = [[settings objectForKey:@"enhanced"] boolValue];
       
   243                     switchContent.tag = 70;
       
   244                     // prevent the oldest devices to even think about enabling it
       
   245                     if (IS_NOT_POWERFUL(getModelType()))
       
   246                         switchContent.enabled = NO;
       
   247                     break;
       
   248                 case 3:
       
   249                     cell.textLabel.text = NSLocalizedString(@"Classic Ammo Menu", @"");
   237                     cell.textLabel.text = NSLocalizedString(@"Classic Ammo Menu", @"");
   250                     cell.detailTextLabel.text = NSLocalizedString(@"Select which style of ammo menu you prefer",@"");
   238                     cell.detailTextLabel.text = NSLocalizedString(@"Select which style of ammo menu you prefer",@"");
   251                     switchContent.on = [[settings objectForKey:@"classic_menu"] boolValue];
   239                     switchContent.on = [[settings objectForKey:@"classic_menu"] boolValue];
   252                     switchContent.tag = 60;
   240                     switchContent.tag = 60;
   253                     // remove this when classic ammomenu works on iphone as well
   241                     // remove this when classic ammomenu works on iphone as well