Mercurial > wow > reaction
diff ReAction.lua @ 46:aa0b7fd68462
rearranged options table initialization a little
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 10 Apr 2008 23:27:58 +0000 |
parents | dc898780fea8 |
children | e12b736c23c3 |
line wrap: on
line diff
--- a/ReAction.lua Thu Apr 03 23:18:45 2008 +0000 +++ b/ReAction.lua Thu Apr 10 23:27:58 2008 +0000 @@ -149,6 +149,21 @@ self:RegisterEvent("PLAYER_REGEN_DISABLED") self.bars = {} + self.options = {} + + self:RegisterOptions("global", self, { + unlock = { + type = "toggle", + handler = module, + name = L["Unlock Bars"], + desc = L["Unlock bars for dragging and resizing with the mouse"], + get = function() return self.configMode end, + set = function(info, value) self:SetConfigMode(value) end, + disabled = InCombatLockdown, + order = 1 + }, + }) + end function ReAction:OnEnable() @@ -286,7 +301,6 @@ end end -ReAction.options = {} -- See modules/ReAction_ConfigUI for valid options contexts. function ReAction:RegisterOptions(context, module, opts) if module == nil or context == nil then