project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 4476 4bf74e158f44
parent 4362 8dae325dc625
child 4505 4a8f87eb67cb
equal deleted inserted replaced
4474:499748f6e80f 4476:4bf74e158f44
   137     NSString *labelString = [source objectAtIndex:row];
   137     NSString *labelString = [source objectAtIndex:row];
   138     cell.textLabel.text = labelString;
   138     cell.textLabel.text = labelString;
   139     cell.textLabel.adjustsFontSizeToFitWidth = YES;
   139     cell.textLabel.adjustsFontSizeToFitWidth = YES;
   140     cell.textLabel.minimumFontSize = 7;
   140     cell.textLabel.minimumFontSize = 7;
   141     cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
   141     cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
       
   142     cell.textLabel.backgroundColor = [UIColor clearColor];
   142 
   143 
   143     if (isRandomness()) {
   144     if (isRandomness()) {
   144         UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),labelString]];
   145         UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),labelString]];
   145         cell.imageView.image = image;
   146         cell.imageView.image = image;
   146         [image release];
   147         [image release];
   152         cell.accessoryView = checkbox;
   153         cell.accessoryView = checkbox;
   153         [checkbox release];
   154         [checkbox release];
   154     } else
   155     } else
   155         cell.accessoryView = nil;
   156         cell.accessoryView = nil;
   156 
   157 
   157     cell.backgroundColor = [UIColor blackColor];
   158     cell.backgroundColor = UICOLOR_HW_ALMOSTBLACK;
   158     return cell;
   159     return cell;
   159 }
   160 }
   160 
   161 
   161 // this set details for a static map (called by didSelectRowAtIndexPath)
   162 // this set details for a static map (called by didSelectRowAtIndexPath)
   162 -(void) setDetailsForStaticMap:(NSInteger) index {
   163 -(void) setDetailsForStaticMap:(NSInteger) index {