author | koda |
Tue, 19 Apr 2011 00:19:01 +0200 | |
changeset 5157 | a5a6ffc56141 |
parent 5155 | f2165724605c |
child 5166 | d1eb1560b4d5 |
permissions | -rw-r--r-- |
3829 | 1 |
/* |
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
|
4976 | 3 |
* Copyright (c) 2009-2011 Vittorio Giovara <vittorio.giovara@gmail.com> |
3829 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
17 |
* |
|
18 |
* File created on 16/03/2010. |
|
19 |
*/ |
|
20 |
||
3547 | 21 |
|
22 |
#import <UIKit/UIKit.h> |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
23 |
#import "SDL_sysvideo.h" |
3547 | 24 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
25 |
@class InGameMenuViewController; |
3792 | 26 |
@class HelpPageViewController; |
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
27 |
@class AmmoMenuViewController; |
3547 | 28 |
|
29 |
@interface OverlayViewController : UIViewController { |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
30 |
// the timer that dims the overlay |
3547 | 31 |
NSTimer *dimTimer; |
32 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
33 |
// the in-game menu |
3971 | 34 |
UIPopoverController *popoverController; // iPad only, never set on iPhone |
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
35 |
InGameMenuViewController *popupMenu; |
3547 | 36 |
BOOL isPopoverVisible; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3661
diff
changeset
|
37 |
|
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
38 |
// the help menu |
3792 | 39 |
HelpPageViewController *helpPage; |
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
40 |
|
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
41 |
// the objc ammomenu |
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
42 |
AmmoMenuViewController *amvc; |
3976 | 43 |
BOOL wasVisible; |
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
44 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
45 |
// ths touch section |
3547 | 46 |
CGFloat initialDistanceForPinching; |
3651 | 47 |
CGPoint startingPoint; |
3650 | 48 |
BOOL isSegmentVisible; |
3737
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
49 |
BOOL isAttacking; |
3935 | 50 |
|
51 |
// stuff initialized externally |
|
52 |
BOOL useClassicMenu; |
|
4356 | 53 |
NSInteger initialOrientation; |
3941 | 54 |
|
55 |
// dual head support |
|
56 |
NSInteger initialScreenCount; |
|
3976 | 57 |
NSInteger a, b; |
3547 | 58 |
} |
59 |
||
60 |
@property (nonatomic,retain) id popoverController; |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
61 |
@property (nonatomic,retain) InGameMenuViewController *popupMenu; |
3792 | 62 |
@property (nonatomic,retain) HelpPageViewController *helpPage; |
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
63 |
@property (nonatomic,retain) AmmoMenuViewController *amvc; |
3935 | 64 |
@property (assign) BOOL useClassicMenu; |
4356 | 65 |
@property (assign) NSInteger initialOrientation; |
3547 | 66 |
|
67 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
|
68 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
69 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
70 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
71 |
||
72 |
-(IBAction) buttonReleased:(id) sender; |
|
73 |
-(IBAction) buttonPressed:(id) sender; |
|
74 |
||
75 |
-(void) showPopover; |
|
76 |
-(void) dismissPopover; |
|
77 |
-(void) dimOverlay; |
|
78 |
-(void) activateOverlay; |
|
5155
f2165724605c
more refactoring, less warnings, less stuff kept around
koda
parents:
5154
diff
changeset
|
79 |
-(void) removeOverlay; |
3547 | 80 |
|
81 |
@end |