author | koda |
Sat, 17 Jul 2010 16:35:14 +0200 | |
changeset 3649 | bc35f8fee587 |
parent 3647 | 0d0df215fb52 |
child 3650 | ec90e573f47a |
permissions | -rw-r--r-- |
3547 | 1 |
// |
2 |
// overlayViewController.h |
|
3 |
// HedgewarsMobile |
|
4 |
// |
|
5 |
// Created by Vittorio on 16/03/10. |
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
|
7 |
// |
|
8 |
||
9 |
#import <UIKit/UIKit.h> |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
10 |
#import "SDL_sysvideo.h" |
3547 | 11 |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
12 |
@class InGameMenuViewController; |
3547 | 13 |
|
14 |
@interface OverlayViewController : UIViewController { |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
15 |
// the timer that dims the overlay |
3547 | 16 |
NSTimer *dimTimer; |
17 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
18 |
// the in-game menu |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
19 |
UIPopoverController *popoverController; // iPad only |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
20 |
InGameMenuViewController *popupMenu; |
3547 | 21 |
BOOL isPopoverVisible; |
22 |
||
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
23 |
// ths touch section |
3547 | 24 |
CGFloat initialDistanceForPinching; |
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
25 |
|
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
26 |
// the sdl window underneath |
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
27 |
SDL_Window *sdlwindow; |
3547 | 28 |
} |
29 |
||
30 |
@property (nonatomic,retain) id popoverController; |
|
3647
0d0df215fb52
making chat work... (keyboard support is heavily broken in sdl upstream)
koda
parents:
3646
diff
changeset
|
31 |
@property (nonatomic,retain) InGameMenuViewController *popupMenu; |
3547 | 32 |
|
3629
86212d2b116a
redo spinning wheel, redo fix for detail selection, redo ammo quantity and name in ammomenu
koda
parents:
3551
diff
changeset
|
33 |
BOOL isGameRunning; |
3547 | 34 |
|
35 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
|
36 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
37 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
38 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
39 |
||
40 |
-(IBAction) buttonReleased:(id) sender; |
|
41 |
-(IBAction) buttonPressed:(id) sender; |
|
42 |
||
43 |
-(void) showPopover; |
|
44 |
-(void) dismissPopover; |
|
45 |
-(void) dimOverlay; |
|
46 |
-(void) activateOverlay; |
|
47 |
||
48 |
@end |