Add in structures to deal with custom menu navigation setups.
This commit is contained in:
@@ -87,4 +87,20 @@ void Menu::InitializeMainMenuWindow(){
|
||||
}else{
|
||||
mainMenuWindow->SetDefaultButton(newGameButton);
|
||||
}
|
||||
|
||||
mainMenuWindow->SetupKeyboardNavigation(
|
||||
{
|
||||
{game->KEY_BACK,{"",[](MenuType type){}}},
|
||||
}
|
||||
,{
|
||||
{"New Game Button",{
|
||||
.up="Quit Game Button",
|
||||
.down="Load Game Button",}},
|
||||
{"Load Game Button",{
|
||||
.up="New Game Button",
|
||||
.down="Quit Game Button",}},
|
||||
{"Quit Game Button",{
|
||||
.up="Load Game Button",
|
||||
.down="New Game Button",}},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user