comparison Modules/Options.lua @ 28:34daa46b644a

Added an interface to view how much you have invested in each item.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Fri, 16 Jul 2010 01:32:08 -0700
parents 66b7c3f5937e
children e27d13095b49
comparison
equal deleted inserted replaced
27:5da5d85cd714 28:34daa46b644a
1 local addonName, addonTable = ...; 1 local addonName, addonTable = ...;
2 local addon = _G[addonName] 2 local addon = _G[addonName]
3 3
4 local utils = addonTable.utils 4 local utils = addonTable.utils
5 5
6 local currentFaction = UnitFactionGroup("player") 6 local currentFaction = UnitFactionGroup("player")
146 type = "execute", 146 type = "execute",
147 name = "debug", 147 name = "debug",
148 desc = "Shows the debug frame", 148 desc = "Shows the debug frame",
149 func = function() ItemAuditor_DebugFrame:Show() end, 149 func = function() ItemAuditor_DebugFrame:Show() end,
150 guiHidden = true, 150 guiHidden = true,
151 } 151 },
152 invested = {
153 type = "execute",
154 name = "invested",
155 desc = "Shows what you have invested in",
156 func = "CreateFrames",
157 guiHidden = false,
158 },
152 }, 159 },
153 } 160 }
154 161
155 function addon:RegisterOptions() 162 function addon:RegisterOptions()
156 self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("ItemAuditor", "ItemAuditor") 163 self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("ItemAuditor", "ItemAuditor")