project_files/HedgewarsMobile/Classes/WeaponCellView.m
changeset 8441 a00b0fa0dbd7
parent 6832 fae8fd118da9
child 10108 c68cf030eded
equal deleted inserted replaced
8440:ea4d6a7a2937 8441:a00b0fa0dbd7
   157         hOffset = 67;
   157         hOffset = 67;
   158     }
   158     }
   159 
   159 
   160     weaponIcon.frame = CGRectMake(5, 5, 32, 32);
   160     weaponIcon.frame = CGRectMake(5, 5, 32, 32);
   161     weaponName.frame = CGRectMake(45, 8, 200, 25);
   161     weaponName.frame = CGRectMake(45, 8, 200, 25);
   162     
   162 
   163     helpLabel.frame = CGRectMake(200 + helpLabelOffset, 11, helpLabelLength, 20);
   163     helpLabel.frame = CGRectMake(200 + helpLabelOffset, 11, helpLabelLength, 20);
   164 
   164 
   165     // second line
   165     // second line
   166     initialImg.frame = CGRectMake(hOffset - 60, vOffset, 32, 32);
   166     initialImg.frame = CGRectMake(hOffset - 60, vOffset, 32, 32);
   167     initialLab.frame = CGRectMake(hOffset - 23, vOffset, 20, 32);
   167     initialLab.frame = CGRectMake(hOffset - 23, vOffset, 20, 32);
   210 }
   210 }
   211 
   211 
   212 -(void) startDragging:(id) sender {
   212 -(void) startDragging:(id) sender {
   213     UISlider *slider = (UISlider *)sender;
   213     UISlider *slider = (UISlider *)sender;
   214     NSString *str = nil;
   214     NSString *str = nil;
   215     
   215 
   216     switch (slider.tag) {
   216     switch (slider.tag) {
   217         case 100:
   217         case 100:
   218             str = NSLocalizedString(@"Initial quantity",@"ammo selection");
   218             str = NSLocalizedString(@"Initial quantity",@"ammo selection");
   219             break;
   219             break;
   220         case 200:
   220         case 200: