Mercurial > wow > reaction
comparison modules/ReAction_PossessBar/ReAction_PossessBar.lua @ 59:7430a8dd4e90
Added modular per-bar options
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Mon, 28 Apr 2008 23:34:17 +0000 |
| parents | b85118b61564 |
| children | 44649a10378d |
comparison
equal
deleted
inserted
replaced
| 58:20003239af0b | 59:7430a8dd4e90 |
|---|---|
| 31 hideEmptyPossess = { | 31 hideEmptyPossess = { |
| 32 type = "toggle", | 32 type = "toggle", |
| 33 name = L["Hide Empty Possess Bar Buttons"], | 33 name = L["Hide Empty Possess Bar Buttons"], |
| 34 get = function() return self.db.profile.hideEmptyButtons end, | 34 get = function() return self.db.profile.hideEmptyButtons end, |
| 35 set = function(info, val) module:SetHideEmptyButtons(val) end, | 35 set = function(info, val) module:SetHideEmptyButtons(val) end, |
| 36 } | |
| 37 }) | |
| 38 | |
| 39 ReAction:RegisterOptions("bar", self, { | |
| 40 type = "group", | |
| 41 name = L["Possess Buttons"], | |
| 42 hidden = "BarOptionsHidden", | |
| 43 args = { | |
| 36 } | 44 } |
| 37 }) | 45 }) |
| 38 end | 46 end |
| 39 | 47 |
| 40 function module:OnEnable() | 48 function module:OnEnable() |
| 246 previous = f | 254 previous = f |
| 247 end | 255 end |
| 248 end | 256 end |
| 249 end | 257 end |
| 250 | 258 |
| 259 ---- Options handlers ---- | |
| 260 function module:BarOptionsHidden(bar) | |
| 261 return bar.config.type ~= moduleID | |
| 262 end | |
| 251 | 263 |
| 252 | 264 |
| 253 -- use-count of action IDs | 265 -- use-count of action IDs |
| 254 local minActionID = 121 | 266 local minActionID = 121 |
| 255 local maxActionID = 132 | 267 local maxActionID = 132 |
