"Unsaved progress will be lost. Are you sure?" on Reset or exit game.

This commit is contained in:
Carl.Kenner 2009-04-26 21:08:24 +00:00
parent 8451552bd7
commit 8f6b66091e

View File

@ -1248,15 +1248,20 @@ static int MenuGame()
menu = MENU_GAME_LOAD;
}
else if(resetBtn.GetState() == STATE_CLICKED)
{
if (WindowPrompt("Reset Game", "Usaved progress will be lost. Are you sure?", "OK", "Cancel"))
{
emulator.emuReset();
menu = MENU_EXIT;
}
}
else if(gameSettingsBtn.GetState() == STATE_CLICKED)
{
menu = MENU_GAMESETTINGS;
}
else if(mainmenuBtn.GetState() == STATE_CLICKED)
{
if (WindowPrompt("Exit Game", "Usaved progress will be lost. Are you sure?", "OK", "Cancel"))
{
if(gameScreenImg)
{
@ -1275,6 +1280,7 @@ static int MenuGame()
#endif
menu = MENU_GAMESELECTION;
}
}
else if(closeBtn.GetState() == STATE_CLICKED)
{
menu = MENU_EXIT;