comparison modules/LBF.lua @ 183:1696ff2c80cc

minor library rename/storage/cleanup
author Flick <flickerstreak@gmail.com>
date Fri, 22 Oct 2010 15:56:08 +0000
parents df68b5a40490
children
comparison
equal deleted inserted replaced
182:55c2fc0c8d55 183:1696ff2c80cc
16 -- default profile goes here 16 -- default profile goes here
17 } 17 }
18 } 18 }
19 ) 19 )
20 20
21 local LBF = LibStub("LibButtonFacade",true) 21 self.groups = { }
22 22
23 if not LBF then -- no more initialization 23 self.LBF = LibStub("LibButtonFacade",true)
24
25 if not self.LBF then -- no more initialization
24 return 26 return
25 end 27 end
26
27 self.LBF = LBF
28 self.groups = { }
29 28
30 -- override a method of ReAction.Bar 29 -- override a method of ReAction.Bar
31 -- note that 'self' in this context refers to the bar 30 -- note that 'self' in this context refers to the bar
32 function ReAction.Bar:SkinButton( button, data ) 31 function ReAction.Bar:SkinButton( button, data )
33 module:GetGroup(self:GetName()):AddButton(button:GetFrame(), data) 32 module:GetGroup(self:GetName()):AddButton(button:GetFrame(), data)