Mercurial > wow > reaction
comparison modules/Totem.lua @ 218:e63aefb8a555
Demodularization of buttons
- register class instead of config
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 19 Nov 2010 23:06:24 -0800 |
parents | c8777ae7d460 |
children | d08a74e86c96 |
comparison
equal
deleted
inserted
replaced
217:9c0691e91488 | 218:e63aefb8a555 |
---|---|
39 | 39 |
40 self:RegisterEvent("UPDATE_MULTI_CAST_ACTIONBAR","PLAYER_ENTERING_WORLD") | 40 self:RegisterEvent("UPDATE_MULTI_CAST_ACTIONBAR","PLAYER_ENTERING_WORLD") |
41 end | 41 end |
42 | 42 |
43 function module:OnEnable() | 43 function module:OnEnable() |
44 ReAction:RegisterBarType(L["Totem Bar"], | 44 ReAction:RegisterBarType(Button) |
45 { | |
46 type = moduleID , | |
47 defaultButtonSize = 36, | |
48 defaultBarRows = 1, | |
49 defaultBarCols = 6, | |
50 defaultBarSpacing = 3 | |
51 }) | |
52 | |
53 end | 45 end |
54 | 46 |
55 function module:OnDisable() | 47 function module:OnDisable() |
56 ReAction:UnregisterBarType(L["Totem Bar"]) | 48 ReAction:UnregisterBarType(Button) |
57 end | 49 end |
58 | 50 |
59 function module:OnDestroyBar(event, bar, name) | 51 function module:OnDestroyBar(event, bar, name) |
60 local btns = self.buttons[bar] | 52 local btns = self.buttons[bar] |
61 if btns then | 53 if btns then |