comparison Modules/Options.lua @ 39:003de902ae64

Implemented COD mail. This loses the ability to track postage, but that will be restored next.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Mon, 19 Jul 2010 20:16:40 -0700
parents e27d13095b49
children 234896be4087
comparison
equal deleted inserted replaced
38:e27d13095b49 39:003de902ae64
1 local addonName, addonTable = ...; 1 local addonName, addonTable = ...;
2 local addon = _G[addonName] 2 local addon = _G[addonName]
3
4 local utils = addonTable.utils
5 3
6 local currentFaction = UnitFactionGroup("player") 4 local currentFaction = UnitFactionGroup("player")
7 local AHFactions = { currentFaction, 'Neutral' } 5 local AHFactions = { currentFaction, 'Neutral' }
8 6
9 local craftingThresholds = {5000, 10000, 50000} 7 local craftingThresholds = {5000, 10000, 50000}
225 223
226 function addon:GetAHFaction() 224 function addon:GetAHFaction()
227 return AHFactions[ItemAuditor.db.char.ah] 225 return AHFactions[ItemAuditor.db.char.ah]
228 end 226 end
229 227
230 function addon:DumpInfo()
231 for itemName, value in pairsByKeys(self.db.factionrealm.item_account) do
232 self:Print(itemName .. ": " .. self:FormatMoney(value))
233 end
234 end
235
236
237 function addon:ShowOptionsGUI() 228 function addon:ShowOptionsGUI()
238 InterfaceOptionsFrame_OpenToCategory(self.optionsFrame) 229 InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
239 end 230 end
240 231
241 232