comparison modules/ReAction_PetAction/ReAction_PetAction.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
27 } 27 }
28 ) 28 )
29 self.buttons = { } 29 self.buttons = { }
30 30
31 ReAction:RegisterOptions("global", self, { 31 ReAction:RegisterOptions("global", self, {
32 })
33
34 ReAction:RegisterOptions("bar", self, {
35 type = "group",
36 name = L["Pet Buttons"],
37 hidden = "BarOptionsHidden",
38 args = {
39 }
32 }) 40 })
33 end 41 end
34 42
35 function module:OnEnable() 43 function module:OnEnable()
36 ReAction:RegisterBarType(L["Pet Action Bar"], 44 ReAction:RegisterBarType(L["Pet Action Bar"],
159 if button:GetFrame().actionIDLabel then 167 if button:GetFrame().actionIDLabel then
160 button:GetFrame().actionIDLabel:Hide() 168 button:GetFrame().actionIDLabel:Hide()
161 else 169 else
162 ReAction:Print("actionIDLabel not found") 170 ReAction:Print("actionIDLabel not found")
163 end 171 end
172 end
173
174 ---- Options handlers ----
175 function module:BarOptionsHidden(bar)
176 return bar.config.type ~= moduleID
164 end 177 end
165 178
166 179
167 180
168 -- use-count of action IDs 181 -- use-count of action IDs