Mercurial > wow > reaction
comparison modules/ReAction_Action/ReAction_Action.lua @ 59:7430a8dd4e90
Added modular per-bar options
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Mon, 28 Apr 2008 23:34:17 +0000 |
| parents | 88283658fec4 |
| children | 44649a10378d |
comparison
equal
deleted
inserted
replaced
| 58:20003239af0b | 59:7430a8dd4e90 |
|---|---|
| 32 hideEmpty = { | 32 hideEmpty = { |
| 33 type = "toggle", | 33 type = "toggle", |
| 34 name = L["Hide Empty Buttons"], | 34 name = L["Hide Empty Buttons"], |
| 35 get = function() return self.db.profile.hideEmptyButtons end, | 35 get = function() return self.db.profile.hideEmptyButtons end, |
| 36 set = function(info, val) module:SetHideEmptyButtons(val) end, | 36 set = function(info, val) module:SetHideEmptyButtons(val) end, |
| 37 } | |
| 38 }) | |
| 39 | |
| 40 ReAction:RegisterOptions("bar", self, { | |
| 41 type = "group", | |
| 42 name = L["Action Buttons"], | |
| 43 hidden = "BarOptionsHidden", | |
| 44 args = { | |
| 37 } | 45 } |
| 38 }) | 46 }) |
| 39 end | 47 end |
| 40 | 48 |
| 41 function module:OnEnable() | 49 function module:OnEnable() |
| 168 button.actionIDLabel:Hide() | 176 button.actionIDLabel:Hide() |
| 169 end | 177 end |
| 170 end | 178 end |
| 171 | 179 |
| 172 | 180 |
| 181 ---- Options handlers ---- | |
| 182 function module:BarOptionsHidden(bar) | |
| 183 return bar.config.type ~= moduleID | |
| 184 end | |
| 185 | |
| 173 | 186 |
| 174 -- use-count of action IDs | 187 -- use-count of action IDs |
| 175 local nActionIDs = 120 | 188 local nActionIDs = 120 |
| 176 local ActionIDList = setmetatable( {}, { | 189 local ActionIDList = setmetatable( {}, { |
| 177 __index = function(self, idx) | 190 __index = function(self, idx) |
