--[[ |
|
Sigma |
by Ailae of Emeriss-EU |
|
Sum upp all current auctions |
|
]] |
|
local f = CreateFrame("Frame", nil, AuctionFrameAuctions) |
f:SetSize(200, 20) |
f:SetPoint("LEFT", AuctionFrameMoneyFrame, "RIGHT", 10, 0) |
|
local text = f:CreateFontString(nil, "OVERLAY", "GameFontHighlightMedium") |
text:SetPoint("LEFT") |
|
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)) |
end |
|
if total > 0 then |
text:SetFormattedText("%s %s", "\124TInterface\\AddOns\\Sigma\\Sigma:0:0:0:0\124t", GetCoinTextureString(total)) |
else |
text:SetText("") |
end |
end) |