project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 3625 9f1d79e01a60
parent 3551 d4de36b3801a
child 3659 f8d5ac50e307
equal deleted inserted replaced
3624:304c6d32383a 3625:9f1d79e01a60
   122         numberButton.ownerDictionary = selectedRow;
   122         numberButton.ownerDictionary = selectedRow;
   123         
   123         
   124         SquareButtonView *squareButton = (SquareButtonView *)[cell viewWithTag:SQUAREBUTTON_TAG];
   124         SquareButtonView *squareButton = (SquareButtonView *)[cell viewWithTag:SQUAREBUTTON_TAG];
   125         [squareButton selectColor:[[selectedRow objectForKey:@"color"] intValue]];
   125         [squareButton selectColor:[[selectedRow objectForKey:@"color"] intValue]];
   126         squareButton.ownerDictionary = selectedRow;
   126         squareButton.ownerDictionary = selectedRow;
       
   127         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
       
   128             cellLabel.textColor = [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xCB/255 blue:0 alpha:1 ];
       
   129         }
   127     } else {
   130     } else {
   128         cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier1];
   131         cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier1];
   129         if (cell == nil) 
   132         if (cell == nil) 
   130             cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier1] autorelease];
   133             cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier1] autorelease];
   131         
   134         
   132         cell.textLabel.text = [[[listOfTeams objectAtIndex:[indexPath row]] objectForKey:@"team"] stringByDeletingPathExtension];
   135         cell.textLabel.text = [[[listOfTeams objectAtIndex:[indexPath row]] objectForKey:@"team"] stringByDeletingPathExtension];
       
   136         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
       
   137             cell.textLabel.textColor = [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xCB/255 blue:0 alpha:1 ];
       
   138         }
   133     }
   139     }
   134 
   140     
   135     return cell;
   141     return cell;
   136 }
   142 }
   137 
   143 
   138 
   144 
   139 #pragma mark -
   145 #pragma mark -