Mercurial > wow > inventory
view AuctionAddons/AuctionLite.lua @ 72:7ca83ad9d67a
Color coding for item quantities in the summary now defaults to white when none of the selected colors in the config fall within range.
author | Zerotorescue |
---|---|
date | Thu, 23 Dec 2010 18:33:05 +0100 |
parents | ac1189599769 |
children |
line wrap: on
line source
do local function GetValue(link) local history = AuctionLite:GetHistoricalPriceById(itemID); return (history and hist.items > 0 and math.floor(hist.price)) or -1; end local function IsEnabled() return (AuctionLite and AuctionLite.GetHistoricalPriceById); end local function OnSelect() local addonName = "|r|cfffed000AuctionLite|r|cffff6600"; print("|cffff6600" .. addonName .. " appears to not be working properly at this time. Please try another addon. This will be corrected in the future, sorry for the inconvenience.|r"); end IMRegisterPricingAddon("AuctionLite", GetValue, IsEnabled, OnSelect); end