Controller compatibility for craft item menu. Release Build 7259.
This commit is contained in:
@@ -79,4 +79,27 @@ void Menu::InitializeCraftItemWindow(){
|
||||
data.component.lock()->SetGrayedOut(!item.lock()->CanEnhanceItem());
|
||||
return true;
|
||||
})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,///////////////////////////////
|
||||
///////////////////////////////////////////////////////////
|
||||
// 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
|
||||
CLASS_INFO, //100% Controller Compatibility
|
||||
CLASS_SELECTION, //100% Controller Compatibility
|
||||
@@ -56,7 +56,7 @@ enum MenuType{
|
||||
BUY_ITEM, //100% Controller Compatibility
|
||||
SELL_ITEM, //100% Controller Compatibility
|
||||
BLACKSMITH, //100% Controller Compatibility
|
||||
CRAFT_ITEM, //0% Controller Compatibility
|
||||
CRAFT_ITEM, //100% Controller Compatibility
|
||||
CRAFT_CONSUMABLE, //0% Controller Compatibility
|
||||
CONSUMABLE_CRAFT_ITEM, //0% Controller Compatibility
|
||||
SAVE_FILE_NAME, //100% Controller Compatibility
|
||||
|
||||
@@ -39,7 +39,7 @@ All rights reserved.
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 3
|
||||
#define VERSION_PATCH 0
|
||||
#define VERSION_BUILD 7258
|
||||
#define VERSION_BUILD 7259
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user