--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m Sun Sep 26 03:41:30 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m Sun Sep 26 17:02:44 2010 +0200
@@ -579,7 +579,7 @@
[indicator release];
}
-// called by uStore from FinishProgress
+// called by uStore from FinishProgress and by OverlayViewController by replayBegan
void stopSpinning() {
UIActivityIndicatorView *indicator = (UIActivityIndicatorView *)[[[[UIApplication sharedApplication] keyWindow] viewWithTag:SDL_VIEW_TAG] viewWithTag:987654];
[indicator stopAnimating];
@@ -616,9 +616,15 @@
blackView.exclusiveTouch = NO;
blackView.multipleTouchEnabled = NO;
blackView.userInteractionEnabled = NO;
+ UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
+ indicator.center = theWindow.center;
+ [indicator startAnimating];
+ [blackView addSubview:indicator];
+ [indicator release];
[theWindow addSubview:blackView];
[blackView release];
isReplay = YES;
+ stopSpinning();
}
// called by uGame