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 -3
View File
@@ -91,12 +91,10 @@ void Menu::InitializeInventoryWindow(){
auto inventoryDisplay=inventoryWindow->ADD("Inventory Display - "+category,RowInventoryScrollableWindowComponent)({{72,28},{150,inventoryWindow->size.y-44}},"Item Name Label","Item Description Label",DO_NOTHING,
[](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,
@@ -109,7 +107,7 @@ void Menu::InitializeInventoryWindow(){
Menu::AddInventoryListener(inventoryDisplay,category);
inventoryDisplay->Enable(first);
inventoryDisplay->SetCompactDescriptions(false);
inventoryDisplay->SetCompactDescriptions(NON_COMPACT);
yOffset+=20;
first=false;