project_files/HedgewarsMobile/Classes/OverlayViewController.h
author koda
Mon, 12 Jul 2010 01:42:43 +0200
changeset 3639 b5cdbcc89b61
parent 3638 33ee433749ba
child 3646 a3271158d93b
permissions -rw-r--r--
use a button instead of label and simplify a lot touch interaction
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     1
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     2
//  overlayViewController.h
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     3
//  HedgewarsMobile
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     4
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     5
//  Created by Vittorio on 16/03/10.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     7
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     8
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     9
#import <UIKit/UIKit.h>
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    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
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    15
@class PopoverMenuViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    16
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    17
@interface OverlayViewController : UIViewController {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    18
    NSTimer *dimTimer;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    19
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    20
    // used only on the ipad
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    21
    UIPopoverController *popoverController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    22
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    23
    PopoverMenuViewController *popupMenu;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
    BOOL isPopoverVisible;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    25
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
    CGFloat initialDistanceForPinching;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
@property (nonatomic,retain) id popoverController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
@property (nonatomic,retain) PopoverMenuViewController *popupMenu;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    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
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    33
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    34
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    35
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    36
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    37
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    38
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    39
-(IBAction) buttonReleased:(id) sender;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    40
-(IBAction) buttonPressed:(id) sender;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    41
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    42
-(void) showPopover;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    43
-(void) dismissPopover;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    44
-(void) dimOverlay;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    45
-(void) activateOverlay;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    46
-(void) chatAppear;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    47
-(void) chatDisappear;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    48
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    49
@end