project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 6000 dbcebcd3d79f
parent 5662 99083392cd4f
child 6018 3b86826f6665
equal deleted inserted replaced
5998:e8f44e9433f0 6000:dbcebcd3d79f
   276             break;
   276             break;
   277         case 6:
   277         case 6:
   278             HW_backjump();
   278             HW_backjump();
   279             break;
   279             break;
   280         case 10:
   280         case 10:
   281             playSound(@"clickSound");
   281             [AudioManagerController playClickSound];
   282             clearView();
   282             clearView();
   283             HW_pause();
   283             HW_pause();
   284             if (self.amvc.isVisible && IS_DUALHEAD() == NO) {
   284             if (self.amvc.isVisible && IS_DUALHEAD() == NO) {
   285                 doDim();
   285                 doDim();
   286                 [self.amvc disappear];
   286                 [self.amvc disappear];
   287             }
   287             }
   288             clearView();
   288             clearView();
   289             [self showPopover];
   289             [self showPopover];
   290             break;
   290             break;
   291         case 11:
   291         case 11:
   292             playSound(@"clickSound");
   292             [AudioManagerController playClickSound];
   293             clearView();
   293             clearView();
   294             
   294             
   295             if (IS_DUALHEAD() || [[[NSUserDefaults standardUserDefaults] objectForKey:@"classic_menu"] boolValue] == NO) {
   295             if (IS_DUALHEAD() || [[[NSUserDefaults standardUserDefaults] objectForKey:@"classic_menu"] boolValue] == NO) {
   296                 if (self.amvc == nil)
   296                 if (self.amvc == nil)
   297                     self.amvc = [[AmmoMenuViewController alloc] init];
   297                     self.amvc = [[AmmoMenuViewController alloc] init];