project_files/HedgewarsMobile/Classes/WeaponCellView.h
author koda
Sat, 10 Jul 2010 18:42:47 +0200
changeset 3635 38d3e31556d3
parent 3624 304c6d32383a
child 3643 858b20bafb6e
permissions -rw-r--r--
improvements to touch interface (tap to select weap, don't move camera for spourious taps, ask for confirmation when using click-weapons)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     1
//
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     2
//  WeaponCellView.h
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     3
//  Hedgewars
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     4
//
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     5
//  Created by Vittorio on 03/07/10.
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     7
//
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     8
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     9
#import <UIKit/UIKit.h>
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    10
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    11
@protocol WeaponButtonControllerDelegate <NSObject>
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    12
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    13
-(void) buttonPressed:(id) sender;
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    14
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    15
@end
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    16
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    17
@interface WeaponCellView : UITableViewCell {
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    18
    id<WeaponButtonControllerDelegate> delegate;
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    19
    UILabel *weaponName;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    20
    UIImageView *weaponIcon;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    21
    
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    22
    UIButton *initialQt;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    23
    UIButton *probability;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    24
    UIButton *delay;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    25
    UIButton *crateQt;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    26
}
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    27
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    28
@property (nonatomic,assign) id<WeaponButtonControllerDelegate> delegate;
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    29
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    30
@property (nonatomic,retain) UILabel *weaponName;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    31
@property (nonatomic,retain) UIImageView *weaponIcon;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    32
    
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    33
@property (nonatomic,retain) UIButton *initialQt;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    34
@property (nonatomic,retain) UIButton *probability;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    35
@property (nonatomic,retain) UIButton *delay;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    36
@property (nonatomic,retain) UIButton *crateQt;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    37
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    38
@end