|
|
|
@ -63,4 +63,35 @@ void Menu::InitializeOverworldMenuWindow(){ |
|
|
|
|
game->ResetGame(); |
|
|
|
|
return true; |
|
|
|
|
})END; |
|
|
|
|
|
|
|
|
|
overworldMenuWindow->SetupKeyboardNavigation( |
|
|
|
|
[](MenuType type,Data&returnData){ //On Open
|
|
|
|
|
returnData="Resume Button"; |
|
|
|
|
}, |
|
|
|
|
{ //Button Key
|
|
|
|
|
{game->KEY_BACK,{"Close Menu",[](MenuType type){ |
|
|
|
|
Menu::CloseMenu(); |
|
|
|
|
}}}, |
|
|
|
|
{game->KEY_MENU,{"Close Menu",[](MenuType type){ |
|
|
|
|
Menu::CloseMenu(); |
|
|
|
|
}}}, |
|
|
|
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}}, |
|
|
|
|
} |
|
|
|
|
,{ //Button Navigation Rules
|
|
|
|
|
{"Resume Button",{ |
|
|
|
|
.up="Quit Button", |
|
|
|
|
.down="Character Button",}}, |
|
|
|
|
{"Character Button",{ |
|
|
|
|
.up="Resume Button", |
|
|
|
|
.down="Inventory Button",}}, |
|
|
|
|
{"Inventory Button",{ |
|
|
|
|
.up="Character Button", |
|
|
|
|
.down="Settings Button",}}, |
|
|
|
|
{"Settings Button",{ |
|
|
|
|
.up="Inventory Button", |
|
|
|
|
.down="Quit Button",}}, |
|
|
|
|
{"Quit Button",{ |
|
|
|
|
.up="Settings Button", |
|
|
|
|
.down="Resume Button",}}, |
|
|
|
|
}); |
|
|
|
|
} |