Show sell value in tooltip when merchant hidden

When the MerchantFrame is not shown, display the item's total vendor sell value on the tooltip. Adds a guard to call SetTooltipMoney(frame, sell * count) if sell > 0 so stacked items show their combined sell price.
This commit is contained in:
Brues
2026-07-10 13:23:52 -05:00
parent 13a08b0ea3
commit 23d1ab840c
+2
View File
@@ -23,6 +23,8 @@ pfUI:RegisterModule("sellvalue", function ()
frame:AddDoubleLine(T["Buy"] .. ":", CreateGoldString(buy), 1, 1, 1)
end
end
elseif not MerchantFrame:IsShown() and sell > 0 then
SetTooltipMoney(frame, sell * count)
end
frame:Show()
end