project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6078 8c0cc07731e5
parent 5455 df05cdb998ed
child 6107 0741c0f0203e
equal deleted inserted replaced
6077:d8fa5a85d24f 6078:8c0cc07731e5
    18  * File created on 13/06/2010.
    18  * File created on 13/06/2010.
    19  */
    19  */
    20 
    20 
    21 
    21 
    22 #import "SchemeWeaponConfigViewController.h"
    22 #import "SchemeWeaponConfigViewController.h"
    23 #import "CommodityFunctions.h"
    23 
    24 
    24 
    25 #define LABEL_TAG 57423
    25 #define LABEL_TAG 57423
    26 
    26 
    27 @implementation SchemeWeaponConfigViewController
    27 @implementation SchemeWeaponConfigViewController
    28 @synthesize listOfSchemes, listOfWeapons, listOfScripts, lastIndexPath_sc, lastIndexPath_we, lastIndexPath_lu,
    28 @synthesize listOfSchemes, listOfWeapons, listOfScripts, lastIndexPath_sc, lastIndexPath_we, lastIndexPath_lu,
    57         }
    57         }
    58     } else {
    58     } else {
    59         self.view.backgroundColor = [UIColor blackColor];
    59         self.view.backgroundColor = [UIColor blackColor];
    60     }
    60     }
    61 
    61 
    62     self.tableView.separatorColor = UICOLOR_HW_YELLOW_BODER;
    62     self.tableView.separatorColor = [UIColor darkYellowColor];
    63     self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    63     self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    64 }
    64 }
    65 
    65 
    66 -(void) viewWillAppear:(BOOL) animated {
    66 -(void) viewWillAppear:(BOOL) animated {
    67     [super viewWillAppear:animated];
    67     [super viewWillAppear:animated];
   152             [checkbox release];
   152             [checkbox release];
   153             self.lastIndexPath_lu = indexPath;
   153             self.lastIndexPath_lu = indexPath;
   154         }
   154         }
   155     }
   155     }
   156 
   156 
   157     cell.backgroundColor = UICOLOR_HW_ALMOSTBLACK;
   157     cell.backgroundColor = [UIColor blackColorTransparent];
   158     cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
   158     cell.textLabel.textColor = [UIColor lightYellowColor];
   159     cell.detailTextLabel.textColor = [UIColor whiteColor];
   159     cell.detailTextLabel.textColor = [UIColor whiteColor];
   160     cell.textLabel.adjustsFontSizeToFitWidth = YES;
   160     cell.textLabel.adjustsFontSizeToFitWidth = YES;
   161     cell.detailTextLabel.adjustsFontSizeToFitWidth = YES;
   161     cell.detailTextLabel.adjustsFontSizeToFitWidth = YES;
   162     return cell;
   162     return cell;
   163 }
   163 }
   292     self.selectedScript = @"Normal.plist";
   292     self.selectedScript = @"Normal.plist";
   293 
   293 
   294     self.tableView.scrollEnabled = NO;
   294     self.tableView.scrollEnabled = NO;
   295 
   295 
   296     CGRect frame = CGRectMake(0, 0, self.view.frame.size.width * 80/100, 60);
   296     CGRect frame = CGRectMake(0, 0, self.view.frame.size.width * 80/100, 60);
   297     UILabel *theLabel = createBlueLabel(NSLocalizedString(@"Missions don't need further configuration",@""), frame);
   297     UILabel *theLabel = [[UILabel alloc] initWithFrame:frame
       
   298                                               andTitle:NSLocalizedString(@"Missions don't need further configuration",@"")];
   298     theLabel.center = CGPointMake(self.view.frame.size.width/2, self.view.frame.size.height/2);
   299     theLabel.center = CGPointMake(self.view.frame.size.width/2, self.view.frame.size.height/2);
   299     theLabel.numberOfLines = 2;
   300     theLabel.numberOfLines = 2;
   300     theLabel.tag = LABEL_TAG;
   301     theLabel.tag = LABEL_TAG;
   301 
   302 
   302     [self.view addSubview:theLabel];
   303     [self.view addSubview:theLabel];