Implemented controller compatibility for Sherman menu. Release Build 7393.

pull/35/head
sigonasr2 1 year ago
parent 4dc9505cbd
commit 0d295021b6
  1. 2
      Adventures in Lestoria/MenuType.h
  2. 26
      Adventures in Lestoria/ShermanWindow.cpp
  3. 2
      Adventures in Lestoria/Version.h
  4. BIN
      x64/Release/Adventures in Lestoria.exe

@ -63,7 +63,7 @@ enum MenuType{
LOAD_GAME, //100% Controller Compatibility - Online Mode Tab switching LOAD_GAME, //100% Controller Compatibility - Online Mode Tab switching
USER_ID, //100% Controller Compatibility USER_ID, //100% Controller Compatibility
SETTINGS, //100% Controller Compatibility SETTINGS, //100% Controller Compatibility
SHERMAN, //0% Controller Compatibility SHERMAN, //100% Controller Compatibility
INPUT_KEY_DISPLAY, //25% Controller Compatibility INPUT_KEY_DISPLAY, //25% Controller Compatibility
NEW_INPUT, //100% Controller Compatibility NEW_INPUT, //100% Controller Compatibility
PAUSE, //0% Controller Compatibility PAUSE, //0% Controller Compatibility

@ -39,6 +39,9 @@ All rights reserved.
#include "Menu.h" #include "Menu.h"
#include "MenuComponent.h" #include "MenuComponent.h"
#include "GameState.h" #include "GameState.h"
#include "AdventuresInLestoria.h"
INCLUDE_game
void Menu::InitializeShermanWindow(){ void Menu::InitializeShermanWindow(){
Menu*shermanWindow=CreateMenu(SHERMAN,CENTERED,vi2d{144,88}); Menu*shermanWindow=CreateMenu(SHERMAN,CENTERED,vi2d{144,88});
@ -56,4 +59,27 @@ void Menu::InitializeShermanWindow(){
Menu::CloseMenu(); Menu::CloseMenu();
return true; return true;
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END; },vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
shermanWindow->SetupKeyboardNavigation(
[](MenuType type,Data&returnData){ //On Open
returnData="Leave Button";
},
{ //Button Key
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
{game->KEY_BACK,{"Stay",[](MenuType type){
Menu::CloseMenu();
}}},
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
}
,{ //Button Navigation Rules
{"Leave Button",{
.up="Stay Button",
.down="Consumable Crafting Button",}},
{"Consumable Crafting Button",{
.up="Leave Button",
.down="Stay Button",}},
{"Stay Button",{
.up="Consumable Crafting Button",
.down="Leave Button",}},
});
} }

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_PATCH 0 #define VERSION_PATCH 0
#define VERSION_BUILD 7391 #define VERSION_BUILD 7393
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

Loading…
Cancel
Save