mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 10:26:02 +00:00
panel: add total line to gold info panel
This commit is contained in:
@@ -277,13 +277,16 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
|
||||
GameTooltip:AddDoubleLine(T["Login"] .. ":", CreateGoldString(pfUI.panel.initMoney))
|
||||
GameTooltip:AddDoubleLine(T["Now"] .. ":", CreateGoldString(GetMoney()))
|
||||
GameTooltip:AddDoubleLine("|cffffffff","")
|
||||
local totalgold = 0
|
||||
for name, gold in pairs(pfUI_cache["gold"][GetRealmName()]) do
|
||||
totalgold = totalgold + gold
|
||||
if name ~= UnitName("player") then
|
||||
GameTooltip:AddDoubleLine(name .. ":", CreateGoldString(gold))
|
||||
end
|
||||
end
|
||||
GameTooltip:AddDoubleLine("|cffffffff","")
|
||||
GameTooltip:AddDoubleLine(T["This Session"] .. ":", dmod .. CreateGoldString(math.abs(pfUI.panel.diffMoney)))
|
||||
GameTooltip:AddDoubleLine(T["Total Gold"] .. ":", CreateGoldString(totalgold))
|
||||
GameTooltip:Show()
|
||||
end
|
||||
widget:SetScript("OnEvent", function()
|
||||
|
||||
Reference in New Issue
Block a user