mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-14 11:39:07 +01:00
This commit is contained in:
parent
05206863e1
commit
4829178f04
@ -2392,6 +2392,27 @@ static int MenuSettingsMappingsMap()
|
|||||||
{
|
{
|
||||||
usleep(THREAD_SLEEP);
|
usleep(THREAD_SLEEP);
|
||||||
|
|
||||||
|
if(backBtn.GetState() == STATE_CLICKED)
|
||||||
|
{
|
||||||
|
menu = MENU_GAMESETTINGS_MAPPINGS;
|
||||||
|
}
|
||||||
|
else if(resetBtn.GetState() == STATE_CLICKED)
|
||||||
|
{
|
||||||
|
resetBtn.ResetState();
|
||||||
|
|
||||||
|
int choice = WindowPrompt(
|
||||||
|
"Reset Mappings",
|
||||||
|
"Are you sure that you want to reset your mappings?",
|
||||||
|
"Yes",
|
||||||
|
"No");
|
||||||
|
|
||||||
|
if(choice == 1)
|
||||||
|
{
|
||||||
|
ResetControls(mapMenuCtrl);
|
||||||
|
firstRun = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ret = optionBrowser.GetClickedOption();
|
ret = optionBrowser.GetClickedOption();
|
||||||
|
|
||||||
if(ret >= 0)
|
if(ret >= 0)
|
||||||
@ -2423,24 +2444,6 @@ static int MenuSettingsMappingsMap()
|
|||||||
}
|
}
|
||||||
optionBrowser.TriggerUpdate();
|
optionBrowser.TriggerUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(backBtn.GetState() == STATE_CLICKED)
|
|
||||||
{
|
|
||||||
menu = MENU_GAMESETTINGS_MAPPINGS;
|
|
||||||
}
|
|
||||||
else if(resetBtn.GetState() == STATE_CLICKED)
|
|
||||||
{
|
|
||||||
resetBtn.ResetState();
|
|
||||||
|
|
||||||
int choice = WindowPrompt(
|
|
||||||
"Reset Mappings",
|
|
||||||
"Are you sure that you want to reset your mappings?",
|
|
||||||
"Yes",
|
|
||||||
"No");
|
|
||||||
|
|
||||||
if(choice == 1)
|
|
||||||
ResetControls(mapMenuCtrl);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
HaltGui();
|
HaltGui();
|
||||||
mainWindow->Remove(&optionBrowser);
|
mainWindow->Remove(&optionBrowser);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user