Make gear appear unstackable in inventories while other items remain stackable. Each individual piece of gear can now have its own stats.

This commit is contained in:
2023-12-29 06:25:54 -06:00
parent f987e51324
commit c528d89b85
17 changed files with 163 additions and 75 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ All rights reserved.
#include "MenuItemItemButton.h"
#include "MenuComponent.h"
#include "PlayerMoneyLabel.h"
#include "ItemMenuLabel.h"
INCLUDE_game
INCLUDE_ITEM_CATEGORIES
@@ -153,7 +154,7 @@ void Menu::InitializeMerchantWindow(){
[](MenuFuncData data){
RowItemDisplay*item=DYNAMIC_CAST<RowItemDisplay*>(data.component);
if(item->GetItem().lock()->CanBeSold()){
Component<MenuLabel>(SELL_ITEM,"Item Sell Header")->S(A::ITEM_NAME)=item->GetItem().lock()->ActualName();
Component<ItemMenuLabel>(SELL_ITEM,"Item Sell Header")->SetItem(item->GetItem());
Component<MenuLabel>(SELL_ITEM,"Price per item Amount Label")->SetLabel(std::to_string(item->GetItem().lock()->SellValue()));
Component<MenuLabel>(SELL_ITEM,"Amount to sell Amount Label")->SetLabel("1");
Component<MenuLabel>(SELL_ITEM,"Total Price Amount Label")->SetLabel(std::to_string(item->GetItem().lock()->SellValue()));