project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 4244 bf46b4bdf27d
parent 3935 5ca27a0e9a63
child 4341 46b8791e577f
equal deleted inserted replaced
4243:bbf7451f6b4e 4244:bf46b4bdf27d
   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 2;
   110             if (IS_IPAD())
       
   111                 return 2;
       
   112             else
       
   113                 return 1;
   111             break;
   114             break;
   112         default:
   115         default:
   113             DLog(@"Nope");
   116             DLog(@"Nope");
   114             break;
   117             break;
   115     }
   118     }
   205             }
   208             }
   206             
   209             
   207             switchContent = (UISwitch *)cell.accessoryView;
   210             switchContent = (UISwitch *)cell.accessoryView;
   208             if (row == 0) {
   211             if (row == 0) {
   209                 cell.textLabel.text = NSLocalizedString(@"Alternate Damage", @"");
   212                 cell.textLabel.text = NSLocalizedString(@"Alternate Damage", @"");
   210                 cell.detailTextLabel.text = NSLocalizedString(@"Damage popups will notify you on every single hit a hedgehog suffers", @"");
   213                 cell.detailTextLabel.text = NSLocalizedString(@"Damage popups will notify you on every single hit", @"");
   211                 switchContent.on = [[self.settingsDictionary objectForKey:@"alternate"] boolValue];
   214                 switchContent.on = [[self.settingsDictionary objectForKey:@"alternate"] boolValue];
   212                 switchContent.tag = 30;
   215                 switchContent.tag = 30;
   213             } else {
   216             } else {
   214                 cell.textLabel.text = NSLocalizedString(@"Classic Ammo Menu", @"");
   217                 cell.textLabel.text = NSLocalizedString(@"Classic Ammo Menu", @"");
   215                 cell.detailTextLabel.text = NSLocalizedString(@"Select which style of ammo menu you prefer",@"");
   218                 cell.detailTextLabel.text = NSLocalizedString(@"Select which style of ammo menu you prefer",@"");