summary refs log tree commit diff stats
path: root/Classes/CocosOverlayScrollView.m
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-23 13:21:56 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-23 13:21:56 -0400
commitfd32f2af7f62f17d42292b6538903a37b0b5e563 (patch)
tree9373352af10a3f05ff6869fb5d337a4bb876ea25 /Classes/CocosOverlayScrollView.m
parentb4c612674d28bf7b385bd9fe41b108df8d97b474 (diff)
downloadcartcollect-fd32f2af7f62f17d42292b6538903a37b0b5e563.tar.gz
cartcollect-fd32f2af7f62f17d42292b6538903a37b0b5e563.tar.bz2
cartcollect-fd32f2af7f62f17d42292b6538903a37b0b5e563.zip
Added game quitting safeguard to pause screen (version 0.3.1) v0.3.1
Also replaced instances of the term "Cart Collect" in Tutorial with "Cartographic". Also modified level selection screen to remember your position in the list rather than simply the last mode you'd played.

Closes #211
Diffstat (limited to 'Classes/CocosOverlayScrollView.m')
-rwxr-xr-xClasses/CocosOverlayScrollView.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/Classes/CocosOverlayScrollView.m b/Classes/CocosOverlayScrollView.m index dee9dfe..9db0575 100755 --- a/Classes/CocosOverlayScrollView.m +++ b/Classes/CocosOverlayScrollView.m
@@ -100,7 +100,11 @@
100 100
101- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView 101- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
102{ 102{
103 [pageControl setCurrentPage:(NSUInteger)([scrollView contentOffset].x / [scrollView frame].size.width)]; 103 int currentPage = (NSUInteger)(scrollView.contentOffset.x / scrollView.frame.size.width);
104 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
105 [defaults setInteger:currentPage forKey:@"lastSelectedMode"];
106
107 [pageControl setCurrentPage:currentPage];
104} 108}
105 109
106@end \ No newline at end of file 110@end \ No newline at end of file