add new robot badge to sources
authorkoda
Tue, 04 Jan 2011 01:21:30 +0100
changeset 4811 3edc0cdcfe03
parent 4810 76315fdfb7a5
child 4812 f924be23ffb4
child 4813 53c2f0f92281
add new robot badge to sources
project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge.png
project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge@2x.png
--- 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];
             
Binary file project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge.png has changed
Binary file project_files/HedgewarsMobile/Resources/Settings/Images/robotBadge@2x.png has changed