project_files/HedgewarsMobile/Classes/WeaponCellView.m
changeset 11549 893722a2a1f9
parent 11148 064a53861759
child 12872 00215a7ec5f5
equal deleted inserted replaced
11548:45982bda46cc 11549:893722a2a1f9
    79         [imgBoxStr release];
    79         [imgBoxStr release];
    80 
    80 
    81         initialLab = [[UILabel alloc] init];
    81         initialLab = [[UILabel alloc] init];
    82         initialLab.backgroundColor = [UIColor clearColor];
    82         initialLab.backgroundColor = [UIColor clearColor];
    83         initialLab.textColor = [UIColor grayColor];
    83         initialLab.textColor = [UIColor grayColor];
    84         initialLab.textAlignment = UITextAlignmentCenter;
    84         initialLab.textAlignment = NSTextAlignmentCenter;
    85 
    85 
    86         probabilityLab = [[UILabel alloc] init];
    86         probabilityLab = [[UILabel alloc] init];
    87         probabilityLab.backgroundColor = [UIColor clearColor];
    87         probabilityLab.backgroundColor = [UIColor clearColor];
    88         probabilityLab.textColor = [UIColor grayColor];
    88         probabilityLab.textColor = [UIColor grayColor];
    89         probabilityLab.textAlignment = UITextAlignmentCenter;
    89         probabilityLab.textAlignment = NSTextAlignmentCenter;
    90 
    90 
    91         delayLab = [[UILabel alloc] init];
    91         delayLab = [[UILabel alloc] init];
    92         delayLab.backgroundColor = [UIColor clearColor];
    92         delayLab.backgroundColor = [UIColor clearColor];
    93         delayLab.textColor = [UIColor grayColor];
    93         delayLab.textColor = [UIColor grayColor];
    94         delayLab.textAlignment = UITextAlignmentCenter;
    94         delayLab.textAlignment = NSTextAlignmentCenter;
    95 
    95 
    96         crateLab = [[UILabel alloc] init];
    96         crateLab = [[UILabel alloc] init];
    97         crateLab.backgroundColor = [UIColor clearColor];
    97         crateLab.backgroundColor = [UIColor clearColor];
    98         crateLab.textColor = [UIColor grayColor];
    98         crateLab.textColor = [UIColor grayColor];
    99         crateLab.textAlignment = UITextAlignmentCenter;
    99         crateLab.textAlignment = NSTextAlignmentCenter;
   100 
   100 
   101         helpLabel = [[UILabel alloc] init];
   101         helpLabel = [[UILabel alloc] init];
   102         helpLabel.backgroundColor = [UIColor clearColor];
   102         helpLabel.backgroundColor = [UIColor clearColor];
   103         helpLabel.textColor = [UIColor darkGrayColor];
   103         helpLabel.textColor = [UIColor darkGrayColor];
   104         helpLabel.textAlignment = UITextAlignmentRight;
   104         helpLabel.textAlignment = NSTextAlignmentRight;
   105         helpLabel.font = [UIFont italicSystemFontOfSize:[UIFont systemFontSize]];
   105         helpLabel.font = [UIFont italicSystemFontOfSize:[UIFont systemFontSize]];
   106         helpLabel.adjustsFontSizeToFitWidth = YES;
   106         helpLabel.adjustsFontSizeToFitWidth = YES;
   107 
   107 
   108         [self.contentView addSubview:weaponName];
   108         [self.contentView addSubview:weaponName];
   109         [self.contentView addSubview:weaponIcon];
   109         [self.contentView addSubview:weaponIcon];