mirror of
https://github.com/ogoguel/activegs-ios.git
synced 2024-05-29 05:41:28 +00:00
Dismissing options menu after successfully saving or loading state; increased size of defaults and done button
This commit is contained in:
parent
1d420f51e7
commit
9d3737bf1a
|
@ -897,6 +897,7 @@ extern int x_frame_rate ;
|
||||||
dir += "save";
|
dir += "save";
|
||||||
dir += [segIndex UTF8String];
|
dir += [segIndex UTF8String];
|
||||||
g_savestate.saveState(dir.c_str());
|
g_savestate.saveState(dir.c_str());
|
||||||
|
[self optionsButton:nil];
|
||||||
[pManager setNotificationText:[NSString stringWithFormat:@"Saved State #%@",segIndex]];
|
[pManager setNotificationText:[NSString stringWithFormat:@"Saved State #%@",segIndex]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -916,6 +917,7 @@ extern int x_frame_rate ;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_savestate.restoreState(dir.c_str());
|
g_savestate.restoreState(dir.c_str());
|
||||||
|
[self optionsButton:nil];
|
||||||
[pManager setNotificationText:[NSString stringWithFormat:@"Loaded State #%@",segIndex]];
|
[pManager setNotificationText:[NSString stringWithFormat:@"Loaded State #%@",segIndex]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1067,7 +1069,7 @@ extern int x_frame_rate ;
|
||||||
CGColorSpaceRelease(colorSpace);
|
CGColorSpaceRelease(colorSpace);
|
||||||
|
|
||||||
const float lb = ho - LINEHEIGHT - OPTIONMARGIN;
|
const float lb = ho - LINEHEIGHT - OPTIONMARGIN;
|
||||||
const float WB = 50 * res;
|
const float WB = 100 * res;
|
||||||
|
|
||||||
UIButton* button = [UIButton buttonWithType:(UIButtonType)100];
|
UIButton* button = [UIButton buttonWithType:(UIButtonType)100];
|
||||||
[button addTarget:self action:@selector(optionsButton:) forControlEvents:UIControlEventTouchUpInside];
|
[button addTarget:self action:@selector(optionsButton:) forControlEvents:UIControlEventTouchUpInside];
|
||||||
|
@ -1081,7 +1083,7 @@ extern int x_frame_rate ;
|
||||||
|
|
||||||
UIButton* buttonrestore = [UIButton buttonWithType:(UIButtonType)100];
|
UIButton* buttonrestore = [UIButton buttonWithType:(UIButtonType)100];
|
||||||
[buttonrestore addTarget:self action:@selector(restoreButton:) forControlEvents:UIControlEventTouchUpInside];
|
[buttonrestore addTarget:self action:@selector(restoreButton:) forControlEvents:UIControlEventTouchUpInside];
|
||||||
[buttonrestore setTitle:@"Default" forState:UIControlStateNormal];
|
[buttonrestore setTitle:@"Defaults" forState:UIControlStateNormal];
|
||||||
|
|
||||||
buttonrestore.frame = CGRectMake(OPTIONMARGIN,lb,WB,LINEHEIGHT);
|
buttonrestore.frame = CGRectMake(OPTIONMARGIN,lb,WB,LINEHEIGHT);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user