Implement Crafting requirements display on equipment crafting window. Add in crafting requirement sample data for non-equipment items.

This commit is contained in:
2023-12-28 02:55:59 -06:00
parent 3410b5b92b
commit 8f41870b46
16 changed files with 103 additions and 43 deletions
+1 -5
View File
@@ -111,12 +111,10 @@ void Menu::InitializeMerchantWindow(){
},
[](MenuFuncData data){
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->SetItem(DYNAMIC_CAST<RowItemDisplay*>(data.component)->GetItem());
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->UpdateIcon();
return true;
},
[](MenuFuncData data){
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->SetItem(Item::BLANK);
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->UpdateIcon();
return true;
},
InventoryCreator::RowMerchant_InventoryUpdate,
@@ -173,12 +171,10 @@ void Menu::InitializeMerchantWindow(){
},
[](MenuFuncData data){
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->SetItem(DYNAMIC_CAST<RowItemDisplay*>(data.component)->GetItem());
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->UpdateIcon();
return true;
},
[](MenuFuncData data){
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->SetItem(Item::BLANK);
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->UpdateIcon();
return true;
},
InventoryCreator::RowPlayer_InventoryUpdate,
@@ -192,7 +188,7 @@ void Menu::InitializeMerchantWindow(){
Menu::AddInventoryListener(inventoryDisplay,category);
inventoryDisplay->Enable(first);
inventoryDisplay->SetCompactDescriptions(false);
inventoryDisplay->SetCompactDescriptions(NON_COMPACT);
yOffset+=20;
first=false;