Implement Crafting requirements display on equipment crafting window. Add in crafting requirement sample data for non-equipment items.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user