project_files/HedgewarsMobile/Classes/StatsPageViewController.m
branchios-revival
changeset 11231 bb3e57426a07
parent 11223 93bc68aa41d3
child 11549 893722a2a1f9
equal deleted inserted replaced
11230:4499aa8570fb 11231:bb3e57426a07
   105         NSUInteger color = [[info objectAtIndex:0] intValue];
   105         NSUInteger color = [[info objectAtIndex:0] intValue];
   106         cell.textLabel.textColor = [UIColor colorWithRed:((color >> 16) & 0xFF)/255.0f
   106         cell.textLabel.textColor = [UIColor colorWithRed:((color >> 16) & 0xFF)/255.0f
   107                                                    green:((color >> 8) & 0xFF)/255.0f
   107                                                    green:((color >> 8) & 0xFF)/255.0f
   108                                                     blue:(color & 0xFF)/255.0f
   108                                                     blue:(color & 0xFF)/255.0f
   109                                                    alpha:1.0f];
   109                                                    alpha:1.0f];
   110         cell.textLabel.text = [NSString stringWithFormat:@"%d. %@ (%@ kills)", row+1, [self teamNameFromInfo:info], [info objectAtIndex:1]];
   110         cell.textLabel.text = [NSString stringWithFormat:@"%d. %@ (%@ %@)", row+1, [self teamNameFromInfo:info], [info objectAtIndex:1], NSLocalizedString(@"kills", nil)];
   111         imgName = [NSString stringWithFormat:@"StatsMedal%d",row+1];
   111         imgName = [NSString stringWithFormat:@"StatsMedal%d",row+1];
   112     } else if (section == 2) {  // general info
   112     } else if (section == 2) {  // general info
   113         imgName = @"iconDamage";
   113         imgName = @"iconDamage";
   114         cell.textLabel.text = [self.statsArray objectAtIndex:row + 2];
   114         cell.textLabel.text = [self.statsArray objectAtIndex:row + 2];
   115         cell.textLabel.textColor = [UIColor lightYellowColor];
   115         cell.textLabel.textColor = [UIColor lightYellowColor];