project_files/HedgewarsMobile/Classes/WeaponCellView.m
changeset 5982 283be2ca54a7
parent 4976 088d40d8aba2
child 6074 047eaed35cbb
equal deleted inserted replaced
5981:bb7e1a417819 5982:283be2ca54a7
    65         [crateSli addTarget:self action:@selector(stopDragging:) forControlEvents:UIControlEventTouchUpInside | UIControlEventTouchUpOutside];
    65         [crateSli addTarget:self action:@selector(stopDragging:) forControlEvents:UIControlEventTouchUpInside | UIControlEventTouchUpOutside];
    66         crateSli.maximumValue = 9;
    66         crateSli.maximumValue = 9;
    67         crateSli.minimumValue = 0;
    67         crateSli.minimumValue = 0;
    68         crateSli.tag = 400;
    68         crateSli.tag = 400;
    69 
    69 
    70         NSString *imgAmmoStr = [NSString stringWithFormat:@"%@/iconAmmo.png",BTN_DIRECTORY()];
    70         NSString *imgAmmoStr = [[NSString alloc] initWithFormat:@"%@/ammopic.png",ICONS_DIRECTORY()];
    71         NSString *imgDamageStr = [NSString stringWithFormat:@"%@/iconDamage.png",BTN_DIRECTORY()];
       
    72         NSString *imgTimeStr = [NSString stringWithFormat:@"%@/iconTime.png",BTN_DIRECTORY()];
       
    73         NSString *imgBoxStr = [NSString stringWithFormat:@"%@/iconBox.png",BTN_DIRECTORY()];
       
    74 
       
    75         initialImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgAmmoStr]];
    71         initialImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgAmmoStr]];
       
    72         [imgAmmoStr release];
       
    73         NSString *imgDamageStr = [[NSString alloc] initWithFormat:@"%@/iconDamage.png",ICONS_DIRECTORY()];
    76         probabilityImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgDamageStr]];
    74         probabilityImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgDamageStr]];
       
    75         [imgDamageStr release];
       
    76         NSString *imgTimeStr = [[NSString alloc] initWithFormat:@"%@/iconTime.png",ICONS_DIRECTORY()];
    77         delayImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgTimeStr]];
    77         delayImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgTimeStr]];
       
    78         [imgTimeStr release];
       
    79         NSString *imgBoxStr = [[NSString alloc] initWithFormat:@"%@/iconBox.png",ICONS_DIRECTORY()];
    78         crateImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgBoxStr]];
    80         crateImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgBoxStr]];
       
    81         [imgBoxStr release];
    79 
    82 
    80         initialLab = [[UILabel alloc] init];
    83         initialLab = [[UILabel alloc] init];
    81         initialLab.backgroundColor = [UIColor clearColor];
    84         initialLab.backgroundColor = [UIColor clearColor];
    82         initialLab.textColor = [UIColor grayColor];
    85         initialLab.textColor = [UIColor grayColor];
    83         initialLab.textAlignment = UITextAlignmentCenter;
    86         initialLab.textAlignment = UITextAlignmentCenter;