diff -r 3351a017d4ad -r 7c704e69242e project_files/HedgewarsMobile/Classes/TeamConfigViewController.m --- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Sat Aug 28 01:37:21 2010 +0200 +++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Sat Aug 28 02:35:26 2010 +0200 @@ -7,6 +7,7 @@ // #import "TeamConfigViewController.h" +#import #import "CommodityFunctions.h" #import "HogButtonView.h" #import "SquareButtonView.h" @@ -146,17 +147,27 @@ } -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - NSString *fileToLoad; + UILabel *theLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width * 80/100, 30)]; + theLabel.backgroundColor = [UIColor blueColor]; if (section == 0) - fileToLoad = @"PlayingTeamsLabel.png"; + theLabel.text = NSLocalizedString(@"Playing Teams",@""); else - fileToLoad = @"AvailableTeamsLabel.png"; + theLabel.text = NSLocalizedString(@"Available Teams",@""); + theLabel.center = CGPointMake(self.view.frame.size.width/2, 20); + theLabel.textColor = UICOLOR_HW_YELLOW_TEXT; + theLabel.textAlignment = UITextAlignmentCenter; + theLabel.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]*80/100]; + theLabel.backgroundColor = UICOLOR_HW_DARKBLUE; - UIImage *img = [[UIImage alloc] initWithContentsOfFile:fileToLoad]; - UIImageView *imgView = [[[UIImageView alloc] initWithImage:img] autorelease]; - [img release]; + [theLabel.layer setBorderWidth:1.5f]; + [theLabel.layer setBorderColor:[UICOLOR_HW_YELLOW_BODER CGColor]]; + [theLabel.layer setCornerRadius:8.0f]; + [theLabel.layer setMasksToBounds:YES]; - return imgView; + UIView *theView = [[[UIView alloc] init] autorelease]; + [theView addSubview:theLabel]; + [theLabel release]; + return theView; } /*