|
local text = f:CreateFontString(nil, "OVERLAY", "GameFontHighlightMedium") |
text:SetPoint("LEFT") |
|
f:RegisterEvent("AUCTION_OWNED_LIST_UPDATE") |
|
f:RegisterEvent("AUCTION_OWNED_LIST_UPDATE") |
f:SetScript("OnEvent", function(self, event, ...) |
local total = 0 |
for i=1, GetNumAuctionItems("owner") do |
total = total + select(9, GetAuctionItemInfo("owner", i)) |
total = total + select(10, GetAuctionItemInfo("owner", i)) |
end |
|
|
if total > 0 then |
text:SetFormattedText("%s %s", "\124TInterface\\AddOns\\Sigma\\Sigma:0:0:0:0\124t", GetCoinTextureString(total)) |
else |