project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
changeset 3766 36b625111609
parent 3737 2ba6ac8a114b
child 3782 dc3531e49e4c
equal deleted inserted replaced
3765:ebfe7c9b3085 3766:36b625111609
   197         UIImage *img = [[self.ammoStoreImage cutAt:CGRectMake(x, y, 32, 32)] makeRoundCornersOfSize:CGSizeMake(7, 7)];
   197         UIImage *img = [[self.ammoStoreImage cutAt:CGRectMake(x, y, 32, 32)] makeRoundCornersOfSize:CGSizeMake(7, 7)];
   198         customCell.weaponIcon.image = img;
   198         customCell.weaponIcon.image = img;
   199         customCell.weaponName.text = [ammoNames objectAtIndex:row];
   199         customCell.weaponName.text = [ammoNames objectAtIndex:row];
   200         customCell.tag = row;
   200         customCell.tag = row;
   201 
   201 
   202         [customCell.initialQt setValue:[[NSString stringWithFormat:@"%c",quantity[row]] intValue] animated:NO];
   202         [customCell.initialSli setValue:[[NSString stringWithFormat:@"%c",quantity[row]] intValue] animated:NO];
   203         [customCell.probabilityQt setValue:[[NSString stringWithFormat:@"%c", probability[row]] intValue] animated:NO];
   203         [customCell.probabilitySli setValue:[[NSString stringWithFormat:@"%c", probability[row]] intValue] animated:NO];
   204         [customCell.delayQt setValue:[[NSString stringWithFormat:@"%c", delay[row]] intValue] animated:NO];
   204         [customCell.delaySli setValue:[[NSString stringWithFormat:@"%c", delay[row]] intValue] animated:NO];
   205         [customCell.crateQt setValue:[[NSString stringWithFormat:@"%c", crateness[row]] intValue] animated:NO];
   205         [customCell.crateSli setValue:[[NSString stringWithFormat:@"%c", crateness[row]] intValue] animated:NO];
   206         cell = customCell;
   206         cell = customCell;
   207     }
   207     }
   208 
   208 
   209     cell.selectionStyle = UITableViewCellSelectionStyleNone;
   209     cell.selectionStyle = UITableViewCellSelectionStyleNone;
   210     return cell;
   210     return cell;