author | Xeli |
Thu, 04 Aug 2011 17:36:13 +0200 | |
branch | hedgeroid |
changeset 5473 | a68f900c4e8c |
parent 5206 | db775bddf771 |
child 5662 | 99083392cd4f |
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> |
|
23 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
24 |
@class InGameMenuViewController; |
3792 | 25 |
@class HelpPageViewController; |
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
26 |
@class AmmoMenuViewController; |
3547 | 27 |
|
28 |
@interface OverlayViewController : UIViewController { |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
29 |
// the timer that dims the overlay |
3547 | 30 |
NSTimer *dimTimer; |
31 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
32 |
// the in-game menu |
3971 | 33 |
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
|
34 |
InGameMenuViewController *popupMenu; |
3547 | 35 |
BOOL isPopoverVisible; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3661
diff
changeset
|
36 |
|
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
37 |
// the help menu |
3792 | 38 |
HelpPageViewController *helpPage; |
3791
98072b3871c1
help page for ingame, some other fixes here and there
koda
parents:
3737
diff
changeset
|
39 |
|
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
40 |
// the objc ammomenu |
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
41 |
AmmoMenuViewController *amvc; |
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
42 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
43 |
// ths touch section |
3547 | 44 |
CGFloat initialDistanceForPinching; |
3651 | 45 |
CGPoint startingPoint; |
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
|
46 |
BOOL isAttacking; |
3935 | 47 |
|
48 |
// stuff initialized externally |
|
4356 | 49 |
NSInteger initialOrientation; |
3941 | 50 |
|
51 |
// dual head support |
|
52 |
NSInteger initialScreenCount; |
|
5174
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
53 |
|
5175
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
54 |
// various other widgets |
5174
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
55 |
UIActivityIndicatorView *lowerIndicator; |
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
56 |
UIActivityIndicatorView *savesIndicator; |
5175
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
57 |
UIButton *confirmButton; |
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
58 |
UISegmentedControl *grenadeTimeSegment; |
3547 | 59 |
} |
60 |
||
61 |
@property (nonatomic,retain) id popoverController; |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
62 |
@property (nonatomic,retain) InGameMenuViewController *popupMenu; |
3792 | 63 |
@property (nonatomic,retain) HelpPageViewController *helpPage; |
3933
1a873262f5dd
polishing the cocoa ammomenu a little, still requires work
koda
parents:
3922
diff
changeset
|
64 |
@property (nonatomic,retain) AmmoMenuViewController *amvc; |
5174
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
65 |
@property (nonatomic,retain) UIActivityIndicatorView *lowerIndicator; |
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
66 |
@property (nonatomic,retain) UIActivityIndicatorView *savesIndicator; |
5175
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
67 |
@property (nonatomic,retain) UIButton *confirmButton; |
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
68 |
@property (nonatomic,retain) UISegmentedControl *grenadeTimeSegment; |
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
69 |
|
4356 | 70 |
@property (assign) NSInteger initialOrientation; |
5166
d1eb1560b4d5
and now for something completely different, overlay refactoring!
koda
parents:
5155
diff
changeset
|
71 |
@property (assign) NSInteger initialScreenCount; |
3547 | 72 |
|
5175
a3da220dbb3f
finish overlay refactoring and some leak annihilation
koda
parents:
5174
diff
changeset
|
73 |
|
3547 | 74 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
75 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
76 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
77 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
78 |
||
79 |
-(IBAction) buttonReleased:(id) sender; |
|
80 |
-(IBAction) buttonPressed:(id) sender; |
|
81 |
||
82 |
-(void) showPopover; |
|
83 |
-(void) dismissPopover; |
|
84 |
-(void) dimOverlay; |
|
85 |
-(void) activateOverlay; |
|
5155
f2165724605c
more refactoring, less warnings, less stuff kept around
koda
parents:
5154
diff
changeset
|
86 |
-(void) removeOverlay; |
3547 | 87 |
|
5174
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
88 |
#define ANIMATION_DURATION 0.25 |
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
89 |
#define CONFIRMATION_TAG 5959 |
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
90 |
#define GRENADE_TAG 9595 |
f5294509783e
initial refactoring of ObjcExports and OverlayViewController
koda
parents:
5166
diff
changeset
|
91 |
|
3547 | 92 |
@end |