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:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user