Mercurial > wow > itemauditor
view Modules/Utils.lua @ 4:c940b527ccab
Fixed Milling. Disenchating will probably have to be fixed the same way
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 22 May 2010 15:23:11 -0700 |
parents | bbcf81868171 |
children | 5dddd73b2220 |
line wrap: on
line source
local addonName, addonTable = ...; local addon = {} local AceConsole = LibStub("AceConsole-3.0") AceConsole:Embed(addon) addonTable.utils = addon function addon:FormatMoney(money) return Altoholic:GetMoneyString(money, WHITE, false) end function addon:tcount(tab) local n = #tab if (n == 0) then for _ in pairs(tab) do n = n + 1 end end return n end function addon:GetDebug(info) return true -- return self.db.char.debug end function addon:SetDebug(info, input) self:Print("Debugging is now: " .. value) self.db.char.debug = input local value = "off" if input then value = "on" end end