project_files/HedgewarsMobile/Classes/SingleTeamViewController.m
changeset 3948 24daa33a3114
parent 3926 668b71f31e51
child 4478 05029b4d8490
equal deleted inserted replaced
3947:709fdb89f76c 3948:24daa33a3114
   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