project_files/HedgewarsMobile/Classes/ObjcExports.m
changeset 5002 a9c44a8ffec8
parent 4976 088d40d8aba2
child 5106 517bdd3865f1
equal deleted inserted replaced
5001:312f4dd41753 5002:a9c44a8ffec8
    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];