project_files/HedgewarsMobile/Classes/AmmoMenuViewController.m
changeset 4853 afe24c4491ef
parent 4362 8dae325dc625
child 4945 541d35d1f2e8
equal deleted inserted replaced
4852:3f3967849133 4853:afe24c4491ef
    77             self.view.center = CGPointMake(placingPoint.y, placingPoint.x);
    77             self.view.center = CGPointMake(placingPoint.y, placingPoint.x);
    78         else
    78         else
    79             self.view.center = CGPointMake(placingPoint.x, placingPoint.y);
    79             self.view.center = CGPointMake(placingPoint.x, placingPoint.y);
    80     }
    80     }
    81     self.isVisible = YES;
    81     self.isVisible = YES;
       
    82     if (IS_IPAD() == NO)
       
    83         HW_pause();
    82 }
    84 }
    83 
    85 
    84 -(void) disappear {
    86 -(void) disappear {
    85     if (self.isVisible)
    87     if (self.isVisible)
    86         [self.view removeFromSuperview];
    88         [self.view removeFromSuperview];
    87     self.isVisible = NO;
    89     self.isVisible = NO;
    88     placingPoint.x = self.view.center.y;
    90     placingPoint.x = self.view.center.y;
    89     placingPoint.y = self.view.center.x;
    91     placingPoint.y = self.view.center.x;
       
    92     if (IS_IPAD() == NO)
       
    93         HW_pauseToggle();
    90 }
    94 }
    91 
    95 
    92 #pragma mark -
    96 #pragma mark -
    93 #pragma mark drawing
    97 #pragma mark drawing
    94 -(void) loadLabels {
    98 -(void) loadLabels {