project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 3792 dd9345e74b66
parent 3791 98072b3871c1
child 3829 81db3c85784b
equal deleted inserted replaced
3791:98072b3871c1 3792:dd9345e74b66
   299 
   299 
   300     UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier];
   300     UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier];
   301     if (cell == nil)
   301     if (cell == nil)
   302         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
   302         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
   303 
   303 
   304     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   304     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
   305         cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
   305         cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
   306     }
       
   307 
   306 
   308     if (self.segmentedControl.selectedSegmentIndex != 1) {
   307     if (self.segmentedControl.selectedSegmentIndex != 1) {
   309         // the % prevents a strange bug that occurs sporadically
   308         // the % prevents a strange bug that occurs sporadically
   310         NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]];
   309         NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]];
   311         cell.textLabel.text = themeName;
   310         cell.textLabel.text = themeName;
   546     self.templateFilterCommand = @"e$template_filter 0";
   545     self.templateFilterCommand = @"e$template_filter 0";
   547     self.mazeSizeCommand = @"e$maze_size 0";
   546     self.mazeSizeCommand = @"e$maze_size 0";
   548     self.mapGenCommand = @"e$mapgen 0";
   547     self.mapGenCommand = @"e$mapgen 0";
   549     self.staticMapCommand = @"";
   548     self.staticMapCommand = @"";
   550 
   549 
   551     self.lastIndexPath = [NSIndexPath indexPathForRow:0 inSection:0];
   550     self.lastIndexPath = [NSIndexPath indexPathForRow:-1 inSection:0];
   552 
   551 
   553     oldValue = 5;
   552     oldValue = 5;
   554     oldPage = 0;
   553     oldPage = 0;
   555     
   554     
   556     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   555     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {