author | koda |
Mon, 12 Jul 2010 01:42:43 +0200 | |
changeset 3639 | b5cdbcc89b61 |
parent 3638 | 33ee433749ba |
child 3646 | a3271158d93b |
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> |
|
10 |
||
3638
33ee433749ba
touch overlay reworked, improvements to zoom and confirmation
koda
parents:
3635
diff
changeset
|
11 |
#define CONFIRMATION_TAG 5959 |
3639
b5cdbcc89b61
use a button instead of label and simplify a lot touch interaction
koda
parents:
3638
diff
changeset
|
12 |
#define ANIMATION_DURATION 0.25 |
b5cdbcc89b61
use a button instead of label and simplify a lot touch interaction
koda
parents:
3638
diff
changeset
|
13 |
#define removeConfirmationInput() [[self.view viewWithTag:CONFIRMATION_TAG] removeFromSuperview]; |
3638
33ee433749ba
touch overlay reworked, improvements to zoom and confirmation
koda
parents:
3635
diff
changeset
|
14 |
|
3547 | 15 |
@class PopoverMenuViewController; |
16 |
||
17 |
@interface OverlayViewController : UIViewController { |
|
18 |
NSTimer *dimTimer; |
|
19 |
||
20 |
// used only on the ipad |
|
21 |
UIPopoverController *popoverController; |
|
22 |
||
23 |
PopoverMenuViewController *popupMenu; |
|
24 |
BOOL isPopoverVisible; |
|
25 |
||
26 |
CGFloat initialDistanceForPinching; |
|
27 |
} |
|
28 |
||
29 |
@property (nonatomic,retain) id popoverController; |
|
30 |
@property (nonatomic,retain) PopoverMenuViewController *popupMenu; |
|
31 |
||
3629
86212d2b116a
redo spinning wheel, redo fix for detail selection, redo ammo quantity and name in ammomenu
koda
parents:
3551
diff
changeset
|
32 |
BOOL isGameRunning; |
3547 | 33 |
|
34 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
|
35 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; |
|
36 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; |
|
37 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; |
|
38 |
||
39 |
-(IBAction) buttonReleased:(id) sender; |
|
40 |
-(IBAction) buttonPressed:(id) sender; |
|
41 |
||
42 |
-(void) showPopover; |
|
43 |
-(void) dismissPopover; |
|
44 |
-(void) dimOverlay; |
|
45 |
-(void) activateOverlay; |
|
46 |
-(void) chatAppear; |
|
47 |
-(void) chatDisappear; |
|
48 |
||
49 |
@end |