project_files/HedgewarsMobile/Classes/WeaponCellView.m
changeset 3644 42c5684289ae
parent 3643 858b20bafb6e
child 3659 f8d5ac50e307
equal deleted inserted replaced
3643:858b20bafb6e 3644:42c5684289ae
   142         initialLab.text = ((int)initialQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)initialQt.value];
   142         initialLab.text = ((int)initialQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)initialQt.value];
   143         probLab.text = ((int)probabilityQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)probabilityQt.value];
   143         probLab.text = ((int)probabilityQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)probabilityQt.value];
   144         delLab.text = ((int)delayQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)delayQt.value];
   144         delLab.text = ((int)delayQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)delayQt.value];
   145         craLab.text = ((int)crateQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)crateQt.value];
   145         craLab.text = ((int)crateQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)crateQt.value];
   146         
   146         
   147         [(UISlider *)sender setTag:self.tag];
   147         [delegate updateValues:[NSArray arrayWithObjects:
   148         [delegate valueChanged:sender];
   148                                 [NSNumber numberWithInt:(int)initialQt.value],
       
   149                                 [NSNumber numberWithInt:(int)probabilityQt.value],
       
   150                                 [NSNumber numberWithInt:(int)delayQt.value],
       
   151                                 [NSNumber numberWithInt:(int)crateQt.value], nil] 
       
   152                        atIndex:self.tag];
   149     } else
   153     } else
   150         DLog(@"error - delegate = nil!");
   154         DLog(@"error - delegate = nil!");
   151 }
   155 }
   152 
   156 
   153 -(void) dealloc {
   157 -(void) dealloc {