equal
deleted
inserted
replaced
577 [indicator startAnimating]; |
577 [indicator startAnimating]; |
578 [[[[UIApplication sharedApplication] keyWindow] viewWithTag:SDL_VIEW_TAG] addSubview:indicator]; |
578 [[[[UIApplication sharedApplication] keyWindow] viewWithTag:SDL_VIEW_TAG] addSubview:indicator]; |
579 [indicator release]; |
579 [indicator release]; |
580 } |
580 } |
581 |
581 |
582 // called by uStore from FinishProgress |
582 // called by uStore from FinishProgress and by OverlayViewController by replayBegan |
583 void stopSpinning() { |
583 void stopSpinning() { |
584 UIActivityIndicatorView *indicator = (UIActivityIndicatorView *)[[[[UIApplication sharedApplication] keyWindow] viewWithTag:SDL_VIEW_TAG] viewWithTag:987654]; |
584 UIActivityIndicatorView *indicator = (UIActivityIndicatorView *)[[[[UIApplication sharedApplication] keyWindow] viewWithTag:SDL_VIEW_TAG] viewWithTag:987654]; |
585 [indicator stopAnimating]; |
585 [indicator stopAnimating]; |
586 HW_zoomSet(1.7); |
586 HW_zoomSet(1.7); |
587 if (isReplay == NO) |
587 if (isReplay == NO) |
614 blackView.alpha = 0.6; |
614 blackView.alpha = 0.6; |
615 blackView.tag = BLACKVIEW_TAG; |
615 blackView.tag = BLACKVIEW_TAG; |
616 blackView.exclusiveTouch = NO; |
616 blackView.exclusiveTouch = NO; |
617 blackView.multipleTouchEnabled = NO; |
617 blackView.multipleTouchEnabled = NO; |
618 blackView.userInteractionEnabled = NO; |
618 blackView.userInteractionEnabled = NO; |
|
619 UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; |
|
620 indicator.center = theWindow.center; |
|
621 [indicator startAnimating]; |
|
622 [blackView addSubview:indicator]; |
|
623 [indicator release]; |
619 [theWindow addSubview:blackView]; |
624 [theWindow addSubview:blackView]; |
620 [blackView release]; |
625 [blackView release]; |
621 isReplay = YES; |
626 isReplay = YES; |
|
627 stopSpinning(); |
622 } |
628 } |
623 |
629 |
624 // called by uGame |
630 // called by uGame |
625 void replayFinished() { |
631 void replayFinished() { |
626 UIWindow *theWindow = [[UIApplication sharedApplication] keyWindow]; |
632 UIWindow *theWindow = [[UIApplication sharedApplication] keyWindow]; |