Mercurial > wow > inventory
view AuctionAddons/ZeroAuctions.lua @ 62:fee06221176f
Seperated the config from Core.lua.
Many other code cleaning up for readability.
Added local references for much used globals.
Moved widgets to a different file for readability.
Re-added global function for slash command handling since we do need it for our chat-hyperlinks.
Fixed queueing to properly use the track at property of virtual groups.
Fixed queueing to display the item id instead of the item link if the item link could not be loaded.
Speed slider at the summary now has an interval of 1% down from 5% and rounds rather than ceils it?s value so 101% will become 100% rather than 105%.
Now using the right stock properties at the summary.
Added a help group to the config.
author | Zerotorescue |
---|---|
date | Wed, 22 Dec 2010 19:56:55 +0100 |
parents | 58fb38f0b447 |
children |
line wrap: on
line source
do local ZA; local function GetValue(link) return (ZA and ZA:GetModule("Scan"):GetLowestAuction(ZA:GetSafeLink(link))) or -1; end local function IsEnabled() local isEnabled = (select(6, GetAddOnInfo("ZeroAuctions")) == nil); if isEnabled then ZA = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions"); end return isEnabled and ZA; end local function OnSelect() local addonName = "|r|cfffed000ZeroAuctions|r|cffff6600"; print("|cffff6600Using " .. addonName .. " as pricing addon is not recommended. Items at the auction house above the \"ignore stacks over\" will always be ignored (and thus not affect the displayed price) and if you are the only one posting, " .. addonName .. " will act as if there are no auctions up.|r"); end IMRegisterPricingAddon("ZeroAuctions", GetValue, IsEnabled, OnSelect); end