equal
deleted
inserted
replaced
219 |
219 |
220 // draw the hat on top of the hog |
220 // draw the hat on top of the hog |
221 NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/%@.png", HATS_DIRECTORY(), [[hogArray objectAtIndex:row] objectForKey:@"hat"]]; |
221 NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/%@.png", HATS_DIRECTORY(), [[hogArray objectAtIndex:row] objectForKey:@"hat"]]; |
222 UIImage *hatSprite = [[UIImage alloc] initWithContentsOfFile: hatFile andCutAt:CGRectMake(0, 0, 32, 32)]; |
222 UIImage *hatSprite = [[UIImage alloc] initWithContentsOfFile: hatFile andCutAt:CGRectMake(0, 0, 32, 32)]; |
223 [hatFile release]; |
223 [hatFile release]; |
224 editableCell.imageView.image = [self.normalHogSprite mergeWith:hatSprite atPoint:CGPointMake(0, -5)]; |
224 editableCell.imageView.image = [self.normalHogSprite mergeWith:hatSprite atPoint:CGPointMake(0, 5)]; |
225 [hatSprite release]; |
225 [hatSprite release]; |
226 |
226 |
227 editableCell.textField.text = [[hogArray objectAtIndex:row] objectForKey:@"hogname"]; |
227 editableCell.textField.text = [[hogArray objectAtIndex:row] objectForKey:@"hogname"]; |
228 editableCell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; |
228 editableCell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; |
229 |
229 |