Controller compatibility for craft item menu. Release Build 7259.

pull/35/head
sigonasr2 9 months ago
parent 138e194246
commit fd994c580d
  1. 23
      Adventures in Lestoria/CraftItemWindow.cpp
  2. 4
      Adventures in Lestoria/MenuType.h
  3. 2
      Adventures in Lestoria/Version.h
  4. BIN
      x64/Release/Adventures in Lestoria.exe

@ -79,4 +79,27 @@ void Menu::InitializeCraftItemWindow(){
data.component.lock()->SetGrayedOut(!item.lock()->CanEnhanceItem()); data.component.lock()->SetGrayedOut(!item.lock()->CanEnhanceItem());
return true; return true;
})END; })END;
craftItemWindow->SetupKeyboardNavigation(
[](MenuType type,Data&returnData){ //On Open
if(!Component<MenuComponent>(type,"Craft Button")->IsGreyedOut()){
returnData="Craft Button";
}else{
returnData="Back Button";
}
},
{ //Button Key
{game->KEY_BACK,{"Back",[](MenuType type){
Menu::CloseMenu();
}}},
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
}
,{ //Button Navigation Rules
{"Back Button",{
.left="Craft Button",
.right="Craft Button",}},
{"Craft Button",{
.left="Back Button",
.right="Back Button",}},
});
} }

@ -41,7 +41,7 @@ enum MenuType{
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
/*DO NOT REMOVE!!*/ENUM_START,/////////////////////////////// /*DO NOT REMOVE!!*/ENUM_START,///////////////////////////////
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
// 56% Controller Compatibility. (100 total items, 4 items per menu * 25 menus) // 60% Controller Compatibility. (100 total items, 4 items per menu * 25 menus)
INVENTORY_CONSUMABLES, //100% Controller Compatibility INVENTORY_CONSUMABLES, //100% Controller Compatibility
CLASS_INFO, //100% Controller Compatibility CLASS_INFO, //100% Controller Compatibility
CLASS_SELECTION, //100% Controller Compatibility CLASS_SELECTION, //100% Controller Compatibility
@ -56,7 +56,7 @@ enum MenuType{
BUY_ITEM, //100% Controller Compatibility BUY_ITEM, //100% Controller Compatibility
SELL_ITEM, //100% Controller Compatibility SELL_ITEM, //100% Controller Compatibility
BLACKSMITH, //100% Controller Compatibility BLACKSMITH, //100% Controller Compatibility
CRAFT_ITEM, //0% Controller Compatibility CRAFT_ITEM, //100% Controller Compatibility
CRAFT_CONSUMABLE, //0% Controller Compatibility CRAFT_CONSUMABLE, //0% Controller Compatibility
CONSUMABLE_CRAFT_ITEM, //0% Controller Compatibility CONSUMABLE_CRAFT_ITEM, //0% Controller Compatibility
SAVE_FILE_NAME, //100% Controller Compatibility SAVE_FILE_NAME, //100% Controller Compatibility

@ -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 7258 #define VERSION_BUILD 7259
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

Loading…
Cancel
Save