project_files/HedgewarsMobile/Classes/HWUtils.m
changeset 6079 c10767edcd58
parent 6078 8c0cc07731e5
child 6083 72c882c0fd0f
equal deleted inserted replaced
6078:8c0cc07731e5 6079:c10767edcd58
    76 +(UIColor *)darkBlueColorTransparent {
    76 +(UIColor *)darkBlueColorTransparent {
    77     return [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:0.58f];
    77     return [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:0.58f];
    78 }
    78 }
    79 
    79 
    80 +(UIColor *)blackColorTransparent {
    80 +(UIColor *)blackColorTransparent {
    81     if (IS_NOT_POWERFUL([HWUtils modelType]))
    81     return [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5f];
    82         return [UIColor blackColor];
       
    83     else
       
    84         return [UIColor colorWithRed:0 green:0 blue:0 alpha:0.6];
       
    85 }
    82 }
    86 
    83 
    87 @end
    84 @end
    88 
    85 
    89 
    86 
   100 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title  withBorderWidth:(CGFloat) borderWidth {
    97 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title  withBorderWidth:(CGFloat) borderWidth {
   101     return [self initWithFrame:frame
    98     return [self initWithFrame:frame
   102                       andTitle:title
    99                       andTitle:title
   103                withBorderWidth:borderWidth
   100                withBorderWidth:borderWidth
   104                withBorderColor:[UIColor darkYellowColor]
   101                withBorderColor:[UIColor darkYellowColor]
   105            withBackgroundColor:[UIColor darkBlueColor]];
   102            withBackgroundColor:[UIColor darkBlueColorTransparent]];
   106 }
   103 }
   107 
   104 
   108 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title  withBorderWidth:(CGFloat) borderWidth
   105 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title  withBorderWidth:(CGFloat) borderWidth
   109           withBorderColor:(UIColor *)borderColor withBackgroundColor:(UIColor *)backColor{
   106           withBorderColor:(UIColor *)borderColor withBackgroundColor:(UIColor *)backColor{
   110     UILabel *theLabel = [self initWithFrame:frame];
   107     UILabel *theLabel = [self initWithFrame:frame];