equal
deleted
inserted
replaced
95 gameRunning = YES; |
95 gameRunning = YES; |
96 } |
96 } |
97 |
97 |
98 void clearView() { |
98 void clearView() { |
99 // don't use any engine calls here as this function is called every time the ammomenu is opened |
99 // don't use any engine calls here as this function is called every time the ammomenu is opened |
100 UIWindow *theWindow = (IS_DUALHEAD()) ? [SDLUIKitDelegate sharedAppDelegate].uiwindow : [[UIApplication sharedApplication] keyWindow]; |
100 UIWindow *theWindow = (IS_DUALHEAD()) ? [HedgewarsAppDelegate sharedAppDelegate].uiwindow : [[UIApplication sharedApplication] keyWindow]; |
101 UIButton *theButton = (UIButton *)[theWindow viewWithTag:CONFIRMATION_TAG]; |
101 UIButton *theButton = (UIButton *)[theWindow viewWithTag:CONFIRMATION_TAG]; |
102 UISegmentedControl *theSegment = (UISegmentedControl *)[theWindow viewWithTag:GRENADE_TAG]; |
102 UISegmentedControl *theSegment = (UISegmentedControl *)[theWindow viewWithTag:GRENADE_TAG]; |
103 |
103 |
104 [UIView beginAnimations:@"remove button" context:NULL]; |
104 [UIView beginAnimations:@"remove button" context:NULL]; |
105 [UIView setAnimationDuration:ANIMATION_DURATION]; |
105 [UIView setAnimationDuration:ANIMATION_DURATION]; |