project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 6108 7a8da11a6144
parent 6107 0741c0f0203e
child 6109 f6726ec81e64
equal deleted inserted replaced
6107:0741c0f0203e 6108:7a8da11a6144
    18  * File created on 22/04/2010.
    18  * File created on 22/04/2010.
    19  */
    19  */
    20 
    20 
    21 
    21 
    22 #import "MapConfigViewController.h"
    22 #import "MapConfigViewController.h"
       
    23 #import <QuartzCore/QuartzCore.h>
    23 #import "SchemeWeaponConfigViewController.h"
    24 #import "SchemeWeaponConfigViewController.h"
    24 #import "GameConfigViewController.h"
    25 #import "GameConfigViewController.h"
    25 
    26 
    26 
    27 
    27 #define scIndex         self.segmentedControl.selectedSegmentIndex
    28 #define scIndex         self.segmentedControl.selectedSegmentIndex
   431     // select a map at first because it's faster - done in IB
   432     // select a map at first because it's faster - done in IB
   432     oldPage = 1;
   433     oldPage = 1;
   433     if (self.segmentedControl.selectedSegmentIndex == 1) {
   434     if (self.segmentedControl.selectedSegmentIndex == 1) {
   434         self.slider.enabled = NO;
   435         self.slider.enabled = NO;
   435         self.sizeLabel.text = NSLocalizedString(@"No filter",@"");
   436         self.sizeLabel.text = NSLocalizedString(@"No filter",@"");
   436         self.sizeLabel.textColor = [UIColor lightYellowColor];
       
   437     }
   437     }
   438 
   438 
   439     self.templateFilterCommand = @"e$template_filter 0";
   439     self.templateFilterCommand = @"e$template_filter 0";
   440     self.mazeSizeCommand = @"e$maze_size 0";
   440     self.mazeSizeCommand = @"e$maze_size 0";
   441     self.mapGenCommand = @"e$mapgen 0";
   441     self.mapGenCommand = @"e$mapgen 0";
   442     self.staticMapCommand = @"";
   442     self.staticMapCommand = @"";
   443     self.missionCommand = @"";
   443     self.missionCommand = @"";
   444 
   444 
   445     if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
   445     if (IS_IPAD()) {
   446         [self.tableView setBackgroundView:nil];
   446         [self.tableView setBackgroundColorForAnyTable:[UIColor darkBlueColorTransparent]];
   447     self.tableView.backgroundColor = [UIColor clearColor];
   447         self.tableView.layer.borderColor = [[UIColor darkYellowColor] CGColor];
   448     self.tableView.separatorColor = [UIColor darkYellowColor];
   448         self.tableView.layer.borderWidth = 2.7f;
       
   449         self.tableView.layer.cornerRadius = 8;
       
   450         self.tableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0);
       
   451     }
       
   452     self.tableView.separatorColor = [UIColor whiteColor];
   449     self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
   453     self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
   450 }
   454 }
   451 
   455 
   452 -(void) viewWillAppear:(BOOL)animated {
   456 -(void) viewWillAppear:(BOOL)animated {
   453     [super viewWillAppear:animated];
   457     [super viewWillAppear:animated];