project_files/HedgewarsMobile/Classes/StatsPageViewController.m
changeset 4860 4f9d05416fd6
parent 4856 dbc256913b35
child 4934 727da72f754a
equal deleted inserted replaced
4859:74d32d1c3753 4860:4f9d05416fd6
    90         cell.textLabel.textColor = [UIColor colorWithRed:((color >> 16) & 0xFF)/255.0f
    90         cell.textLabel.textColor = [UIColor colorWithRed:((color >> 16) & 0xFF)/255.0f
    91                                                    green:((color >> 8) & 0xFF)/255.0f
    91                                                    green:((color >> 8) & 0xFF)/255.0f
    92                                                     blue:(color & 0xFF)/255.0f
    92                                                     blue:(color & 0xFF)/255.0f
    93                                                    alpha:1.0f];
    93                                                    alpha:1.0f];
    94         cell.textLabel.text = [NSString stringWithFormat:@"%d. %@ (%@ kills)", row+1, [info objectAtIndex:2], [info objectAtIndex:1]];
    94         cell.textLabel.text = [NSString stringWithFormat:@"%d. %@ (%@ kills)", row+1, [info objectAtIndex:2], [info objectAtIndex:1]];
    95         imgString = [NSString stringWithFormat:@"statsMedal%d",row+1];
    95         imgString = [NSString stringWithFormat:@"StatsMedal%d",row+1];
    96     } else if (section == 2) {  // general info
    96     } else if (section == 2) {  // general info
    97         imgString = @"iconDamage";
    97         imgString = @"iconDamage";
    98         cell.textLabel.text = [self.statsArray objectAtIndex:row + 2];
    98         cell.textLabel.text = [self.statsArray objectAtIndex:row + 2];
    99         cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
    99         cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
   100     } else {                    // exit button
   100     } else {                    // exit button