# HG changeset patch # User koda # Date 1294100490 -3600 # Node ID 3edc0cdcfe03abf1143ddbdabf92d37258a2605f # Parent 76315fdfb7a5779045b6cb7d5ffb3ab72498044a add new robot badge to sources diff -r 76315fdfb7a5 -r 3edc0cdcfe03 project_files/HedgewarsMobile/Classes/TeamConfigViewController.m --- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Mon Jan 03 10:45:50 2011 -0500 +++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Tue Jan 04 01:21:30 2011 +0100 @@ -183,8 +183,8 @@ NSString *teamPath = [NSString stringWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),cell.textLabel.text]; NSDictionary *firstHog = [[[NSDictionary dictionaryWithContentsOfFile:teamPath] objectForKey:@"hedgehogs"] objectAtIndex:0]; if ([[firstHog objectForKey:@"level"] intValue] != 0) { - NSString *filePath = [NSString stringWithFormat:@"%@/cyborg.png",HATS_DIRECTORY()]; - UIImage *sprite = [[UIImage alloc] initWithContentsOfFile:filePath andCutAt:CGRectMake(0, 2, 32, 32)]; + NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Settings/Images/robotBadge.png"]; + UIImage *sprite = [[UIImage alloc] initWithContentsOfFile:filePath]; UIImageView *spriteView = [[UIImageView alloc] initWithImage:sprite]; [sprite release]; diff -r 76315fdfb7a5 -r 3edc0cdcfe03 project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge.png Binary file project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge.png has changed diff -r 76315fdfb7a5 -r 3edc0cdcfe03 project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge@2x.png Binary file project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge@2x.png has changed