project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 6822 206db098f8c5
parent 6700 e04da46ee43c
child 6825 aca4a6807ecc
equal deleted inserted replaced
6821:d4f75843cf5d 6822:206db098f8c5
    43 
    43 
    44     // various other widgets
    44     // various other widgets
    45     UIActivityIndicatorView *loadingIndicator;
    45     UIActivityIndicatorView *loadingIndicator;
    46     UIButton *confirmButton;
    46     UIButton *confirmButton;
    47     UISegmentedControl *grenadeTimeSegment;
    47     UISegmentedControl *grenadeTimeSegment;
       
    48     NSInteger cachedGrenadeTime;
    48 }
    49 }
    49 
    50 
    50 @property (nonatomic,retain) id popoverController;
    51 @property (nonatomic,retain) id popoverController;
    51 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    52 @property (nonatomic,retain) InGameMenuViewController *popupMenu;
    52 @property (nonatomic,retain) HelpPageViewController *helpPage;
    53 @property (nonatomic,retain) HelpPageViewController *helpPage;
    53 @property (nonatomic,retain) UIActivityIndicatorView *loadingIndicator;
    54 @property (nonatomic,retain) UIActivityIndicatorView *loadingIndicator;
    54 @property (nonatomic,retain) UIButton *confirmButton;
    55 @property (nonatomic,retain) UIButton *confirmButton;
    55 @property (nonatomic,retain) UISegmentedControl *grenadeTimeSegment;
    56 @property (nonatomic,retain) UISegmentedControl *grenadeTimeSegment;
    56 
    57 @property (assign) NSInteger cachedGrenadeTime;
    57 +(OverlayViewController *)mainOverlay;
       
    58 
    58 
    59 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    59 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    60 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    60 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    61 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    61 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    62 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
    62 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
    64 -(IBAction) buttonReleased:(id) sender;
    64 -(IBAction) buttonReleased:(id) sender;
    65 -(IBAction) buttonPressed:(id) sender;
    65 -(IBAction) buttonPressed:(id) sender;
    66 
    66 
    67 -(void) showPopover;
    67 -(void) showPopover;
    68 -(void) dismissPopover;
    68 -(void) dismissPopover;
       
    69 
    69 -(void) dimOverlay;
    70 -(void) dimOverlay;
    70 -(void) activateOverlay;
    71 -(void) activateOverlay;
    71 -(void) removeOverlay;
    72 -(void) clearOverlay;
    72 
    73 
    73 #define ANIMATION_DURATION 0.25
    74 #define ANIMATION_DURATION 0.25
    74 #define CONFIRMATION_TAG 5959
    75 #define CONFIRMATION_TAG 5959
    75 #define GRENADE_TAG 9595
    76 #define GRENADE_TAG 9595
    76 
    77