equal
deleted
inserted
replaced
595 HW_zoomOut(); |
595 HW_zoomOut(); |
596 initialDistanceForPinching = currentDistanceOfPinching; |
596 initialDistanceForPinching = currentDistanceOfPinching; |
597 } |
597 } |
598 } else |
598 } else |
599 initialDistanceForPinching = currentDistanceOfPinching; |
599 initialDistanceForPinching = currentDistanceOfPinching; |
600 |
|
601 break; |
600 break; |
602 default: |
601 default: |
|
602 DLog(@"Nope"); |
603 break; |
603 break; |
604 } |
604 } |
605 } |
605 } |
606 |
606 |
607 #pragma mark - |
607 #pragma mark - |
608 #pragma mark Functions called by pascal |
608 #pragma mark Functions called by pascal |
609 void setGameRunning(BOOL value) { |
609 void inline setGameRunning(BOOL value) { |
610 isGameRunning = value; |
610 isGameRunning = value; |
611 } |
611 } |
612 |
612 |
613 // called by uStore from AddProgress |
613 // called by uStore from AddProgress |
614 void startSpinning() { |
614 void startSpinning() { |
651 [UIView setAnimationDuration:ANIMATION_DURATION]; |
651 [UIView setAnimationDuration:ANIMATION_DURATION]; |
652 theButton.alpha = 0; |
652 theButton.alpha = 0; |
653 theSegment.alpha = 0; |
653 theSegment.alpha = 0; |
654 [UIView commitAnimations]; |
654 [UIView commitAnimations]; |
655 |
655 |
656 [theWindow performSelector:@selector(removeFromSuperview) withObject:theButton afterDelay:ANIMATION_DURATION]; |
656 if (theButton) |
657 [theWindow performSelector:@selector(removeFromSuperview) withObject:theSegment afterDelay:ANIMATION_DURATION]; |
657 [theWindow performSelector:@selector(removeFromSuperview) withObject:theButton afterDelay:ANIMATION_DURATION]; |
|
658 if (theSegment) |
|
659 [theWindow performSelector:@selector(removeFromSuperview) withObject:theSegment afterDelay:ANIMATION_DURATION]; |
658 |
660 |
659 cachedGrenadeTime = 2; |
661 cachedGrenadeTime = 2; |
660 } |
662 } |
661 |
663 |
662 // called by hwengine |
664 // called by hwengine |