project_files/HedgewarsMobile/Classes/OverlayViewController.h
author koda
Sun, 20 Jun 2010 23:05:11 +0200
changeset 3525 1d7b056ff866
parent 3514 59dbd31e9953
child 3535 9e78c1f3d8d8
permissions -rw-r--r--
some memory caring code
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     1
//
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     2
//  overlayViewController.h
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     3
//  HedgewarsMobile
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     4
//
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     5
//  Created by Vittorio on 16/03/10.
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     7
//
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     8
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
     9
#import <UIKit/UIKit.h>
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    10
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    11
@class PopoverMenuViewController;
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    12
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    13
@interface OverlayViewController : UIViewController {
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    14
    NSTimer *dimTimer;
3513
f589230fa21b now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents: 3490
diff changeset
    15
#if __IPHONE_3_2
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    16
    UIPopoverController *popoverController;
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    17
#else
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    18
    id popoverController;
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    19
#endif
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    20
    PopoverMenuViewController *popupMenu;
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    21
    BOOL isPopoverVisible;
3347
5d0ac8197eb7 camera panning ftw
koda
parents: 3308
diff changeset
    22
    
3463
23c50be687a9 update sdl functions to latest revision
koda
parents: 3364
diff changeset
    23
    UITextField *writeChatTextField;
23c50be687a9 update sdl functions to latest revision
koda
parents: 3364
diff changeset
    24
    
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    25
    CGFloat initialDistanceForPinching;
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    26
    CGPoint gestureStartPoint;
3525
1d7b056ff866 some memory caring code
koda
parents: 3514
diff changeset
    27
    UIActivityIndicatorView *spinningWheel;
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    28
}
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    29
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    30
@property (nonatomic,retain) id popoverController;
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    31
@property (nonatomic,retain) PopoverMenuViewController *popupMenu;
3463
23c50be687a9 update sdl functions to latest revision
koda
parents: 3364
diff changeset
    32
@property (nonatomic,retain) UITextField *writeChatTextField;
3525
1d7b056ff866 some memory caring code
koda
parents: 3514
diff changeset
    33
@property (nonatomic,retain) IBOutlet UIActivityIndicatorView *spinningWheel;
1d7b056ff866 some memory caring code
koda
parents: 3514
diff changeset
    34
1d7b056ff866 some memory caring code
koda
parents: 3514
diff changeset
    35
UIActivityIndicatorView *singleton;
1d7b056ff866 some memory caring code
koda
parents: 3514
diff changeset
    36
BOOL canDim;
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    37
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    38
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    39
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    40
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3347
diff changeset
    41
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    42
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    43
-(IBAction) buttonReleased:(id) sender;
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    44
-(IBAction) buttonPressed:(id) sender;
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    45
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    46
-(void) showPopover;
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    47
-(void) dismissPopover;
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    48
-(void) dimOverlay;
3463
23c50be687a9 update sdl functions to latest revision
koda
parents: 3364
diff changeset
    49
-(void) activateOverlay;
23c50be687a9 update sdl functions to latest revision
koda
parents: 3364
diff changeset
    50
-(void) chatAppear;
23c50be687a9 update sdl functions to latest revision
koda
parents: 3364
diff changeset
    51
-(void) chatDisappear;
3117
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    52
f3e363a9b7db complete previous commit (which broken my local copy as well)
koda
parents:
diff changeset
    53
@end