project_files/HedgewarsMobile/Classes/CommodityFunctions.h
changeset 4082 bfe14b38dad1
parent 4000 ddc4a09889e7
child 4098 40df542b5f62
equal deleted inserted replaced
4081:d4cb8f216724 4082:bfe14b38dad1
    51 #define UICOLOR_HW_YELLOW_BODER [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xC0/255 blue:0 alpha:1]
    51 #define UICOLOR_HW_YELLOW_BODER [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xC0/255 blue:0 alpha:1]
    52 #define UICOLOR_HW_YELLOW_TEXT  [UIColor colorWithRed:(CGFloat)0xF0/255 green:(CGFloat)0xD0/255 blue:0 alpha:1]
    52 #define UICOLOR_HW_YELLOW_TEXT  [UIColor colorWithRed:(CGFloat)0xF0/255 green:(CGFloat)0xD0/255 blue:0 alpha:1]
    53 #define UICOLOR_HW_DARKBLUE     [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:1]
    53 #define UICOLOR_HW_DARKBLUE     [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:1]
    54 #define UICOLOR_HW_ALPHABLUE    [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:0.58f]
    54 #define UICOLOR_HW_ALPHABLUE    [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:0.58f]
    55 
    55 
    56 #define IS_DUALHEAD()           ([[UIScreen screens] count] > 1)
    56 #define IS_DUALHEAD()           ([UIScreen respondsToSelector:@selector(screens)] && [[UIScreen screens] count] > 1)
    57 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    57 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    58 
    58 #define IS_NOT_POWERFUL()       ([modelType() hasPrefix:@"iPhone1"] || [modelType() hasPrefix:@"iPod1,1"] || [modelType() hasPrefix:@"iPod2,1"])
       
    59     
    59 #define DEFAULT_NETGAME_PORT    46631
    60 #define DEFAULT_NETGAME_PORT    46631
    60 
    61 
    61 
    62 
    62 void createTeamNamed (NSString *nameWithoutExt);
    63 void createTeamNamed (NSString *nameWithoutExt);
    63 void createWeaponNamed (NSString *nameWithoutExt, int type);
    64 void createWeaponNamed (NSString *nameWithoutExt, int type);