project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 5166 d1eb1560b4d5
parent 5158 4941df038b95
child 5174 f5294509783e
equal deleted inserted replaced
5165:91fb710a6668 5166:d1eb1560b4d5
   146     if (IS_DUALHEAD()) {
   146     if (IS_DUALHEAD()) {
   147         [UIView beginAnimations:@"fade out" context:NULL];
   147         [UIView beginAnimations:@"fade out" context:NULL];
   148         [UIView setAnimationDuration:1];
   148         [UIView setAnimationDuration:1];
   149         blackView.alpha = 1;
   149         blackView.alpha = 1;
   150         [UIView commitAnimations];
   150         [UIView commitAnimations];
   151     }
   151     } else
       
   152         blackView.alpha = 1;
   152 
   153 
   153     // prepare options for overlay and add it to the future sdl uiwindow
   154     // prepare options for overlay and add it to the future sdl uiwindow
   154     NSDictionary *overlayOptions = [[NSDictionary alloc] initWithObjectsAndKeys:
   155     NSDictionary *overlayOptions = [[NSDictionary alloc] initWithObjectsAndKeys:
   155                                     [NSNumber numberWithInt:self.parentController.interfaceOrientation],@"orientation",
   156                                     [NSNumber numberWithInt:self.parentController.interfaceOrientation],@"orientation",
   156                                     [self.systemSettings objectForKey:@"menu"],@"menu",
   157                                     [self.systemSettings objectForKey:@"menu"],@"menu",
   160 
   161 
   161     // SYSTEMS ARE GO!!
   162     // SYSTEMS ARE GO!!
   162     [self startGameEngine];
   163     [self startGameEngine];
   163 
   164 
   164     // now we can remove the cover with a transition
   165     // now we can remove the cover with a transition
   165     blackView.alpha = 1;
       
   166     [UIView beginAnimations:@"fade in" context:NULL];
   166     [UIView beginAnimations:@"fade in" context:NULL];
   167     [UIView setAnimationDuration:1];
   167     [UIView setAnimationDuration:1];
   168     blackView.alpha = 0;
   168     blackView.alpha = 0;
   169     [UIView commitAnimations];
   169     [UIView commitAnimations];
   170     [blackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
   170     [blackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];