equal
deleted
inserted
replaced
99 } |
99 } |
100 grenadeTime = 2; |
100 grenadeTime = 2; |
101 } |
101 } |
102 |
102 |
103 void saveBeganSynching() { |
103 void saveBeganSynching() { |
|
104 savedGame = YES; |
|
105 stopSpinningProgress(); |
|
106 |
104 overlay_instance.view.backgroundColor = [UIColor blackColor]; |
107 overlay_instance.view.backgroundColor = [UIColor blackColor]; |
105 overlay_instance.view.alpha = 0.75; |
108 overlay_instance.view.alpha = 0.75; |
106 overlay_instance.view.userInteractionEnabled = NO; |
109 overlay_instance.view.userInteractionEnabled = NO; |
107 |
110 |
108 overlay_instance.savesIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; |
111 overlay_instance.savesIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; |
112 overlay_instance.savesIndicator.hidesWhenStopped = YES; |
115 overlay_instance.savesIndicator.hidesWhenStopped = YES; |
113 |
116 |
114 [overlay_instance.savesIndicator startAnimating]; |
117 [overlay_instance.savesIndicator startAnimating]; |
115 [overlay_instance.view addSubview:overlay_instance.savesIndicator]; |
118 [overlay_instance.view addSubview:overlay_instance.savesIndicator]; |
116 [overlay_instance.savesIndicator release]; |
119 [overlay_instance.savesIndicator release]; |
117 |
|
118 savedGame = YES; |
|
119 stopSpinningProgress(); |
|
120 } |
120 } |
121 |
121 |
122 void saveFinishedSynching() { |
122 void saveFinishedSynching() { |
123 [UIView beginAnimations:@"fading from save synch" context:NULL]; |
123 [UIView beginAnimations:@"fading from save synch" context:NULL]; |
124 [UIView setAnimationDuration:1]; |
124 [UIView setAnimationDuration:1]; |
129 |
129 |
130 [overlay_instance.savesIndicator stopAnimating]; |
130 [overlay_instance.savesIndicator stopAnimating]; |
131 [overlay_instance.savesIndicator performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
131 [overlay_instance.savesIndicator performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
132 |
132 |
133 gameRunning = YES; |
133 gameRunning = YES; |
134 savedGame = NO; |
|
135 } |
134 } |
136 |
135 |
137 void updateVisualsNewTurn(void) { |
136 void updateVisualsNewTurn(void) { |
138 [overlay_instance.amvc updateAmmoVisuals]; |
137 [overlay_instance.amvc updateAmmoVisuals]; |
139 } |
138 } |