project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 6822 206db098f8c5
parent 6719 d2afc6b2d88e
child 6832 fae8fd118da9
equal deleted inserted replaced
6821:d4f75843cf5d 6822:206db098f8c5
    19  */
    19  */
    20 
    20 
    21 
    21 
    22 #import "GameInterfaceBridge.h"
    22 #import "GameInterfaceBridge.h"
    23 #import "EngineProtocolNetwork.h"
    23 #import "EngineProtocolNetwork.h"
    24 #import "OverlayViewController.h"
       
    25 #import "StatsPageViewController.h"
    24 #import "StatsPageViewController.h"
    26 #import "AudioManagerController.h"
       
    27 #import "ObjcExports.h"
       
    28 
    25 
    29 static UIViewController *callingController;
    26 static UIViewController *callingController;
    30 
    27 
    31 @implementation GameInterfaceBridge
    28 @implementation GameInterfaceBridge
    32 @synthesize blackView, savePath, proto;
    29 @synthesize blackView, savePath, proto;
    82     [UIView beginAnimations:@"fade in" context:NULL];
    79     [UIView beginAnimations:@"fade in" context:NULL];
    83     [UIView setAnimationDuration:1];
    80     [UIView setAnimationDuration:1];
    84     self.blackView.alpha = 0;
    81     self.blackView.alpha = 0;
    85     [UIView commitAnimations];
    82     [UIView commitAnimations];
    86     [self.blackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
    83     [self.blackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
    87 
       
    88     // the overlay is not needed any more and can be removed
       
    89     [[OverlayViewController mainOverlay] removeOverlay];
       
    90 
    84 
    91     // engine thread *should* be done by now
    85     // engine thread *should* be done by now
    92     NSArray *stats = [[NSArray alloc] initWithArray:self.proto.statsArray copyItems:YES];
    86     NSArray *stats = [[NSArray alloc] initWithArray:self.proto.statsArray copyItems:YES];
    93     if ([HWUtils gameStatus] == gsEnded && stats != nil) {
    87     if ([HWUtils gameStatus] == gsEnded && stats != nil) {
    94         StatsPageViewController *statsPage = [[StatsPageViewController alloc] init];
    88         StatsPageViewController *statsPage = [[StatsPageViewController alloc] init];