mirror of
https://github.com/ogoguel/activegs-ios.git
synced 2025-04-02 10:29:36 +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 += [segIndex UTF8String];
|
||||
g_savestate.saveState(dir.c_str());
|
||||
[self optionsButton:nil];
|
||||
[pManager setNotificationText:[NSString stringWithFormat:@"Saved State #%@",segIndex]];
|
||||
}
|
||||
|
||||
@ -916,6 +917,7 @@ extern int x_frame_rate ;
|
||||
return;
|
||||
}
|
||||
g_savestate.restoreState(dir.c_str());
|
||||
[self optionsButton:nil];
|
||||
[pManager setNotificationText:[NSString stringWithFormat:@"Loaded State #%@",segIndex]];
|
||||
}
|
||||
|
||||
@ -1067,7 +1069,7 @@ extern int x_frame_rate ;
|
||||
CGColorSpaceRelease(colorSpace);
|
||||
|
||||
const float lb = ho - LINEHEIGHT - OPTIONMARGIN;
|
||||
const float WB = 50 * res;
|
||||
const float WB = 100 * res;
|
||||
|
||||
UIButton* button = [UIButton buttonWithType:(UIButtonType)100];
|
||||
[button addTarget:self action:@selector(optionsButton:) forControlEvents:UIControlEventTouchUpInside];
|
||||
@ -1081,7 +1083,7 @@ extern int x_frame_rate ;
|
||||
|
||||
UIButton* buttonrestore = [UIButton buttonWithType:(UIButtonType)100];
|
||||
[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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user