Mercurial > wow > reaction
comparison modules/ModuleTemplate.lua @ 147:901c91dc1bf2
Some refactoring of configmode/keybind handlers
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 07 May 2009 23:55:00 +0000 |
parents | 729e284b2576 |
children | df68b5a40490 |
comparison
equal
deleted
inserted
replaced
146:86564b5cbbff | 147:901c91dc1bf2 |
---|---|
28 ReAction.RegisterCallback(self, "OnCreateBar") | 28 ReAction.RegisterCallback(self, "OnCreateBar") |
29 ReAction.RegisterCallback(self, "OnDestroyBar") | 29 ReAction.RegisterCallback(self, "OnDestroyBar") |
30 ReAction.RegisterCallback(self, "OnRefreshBar") | 30 ReAction.RegisterCallback(self, "OnRefreshBar") |
31 ReAction.RegisterCallback(self, "OnEraseBar") | 31 ReAction.RegisterCallback(self, "OnEraseBar") |
32 ReAction.RegisterCallback(self, "OnRenameBar") | 32 ReAction.RegisterCallback(self, "OnRenameBar") |
33 ReAction.RegisterCallback(self, "OnConfigModeChanged") | |
34 end | 33 end |
35 | 34 |
36 function module:OnEnable() | 35 function module:OnEnable() |
37 | 36 |
38 end | 37 end |
64 -- update any local configuration/option entries with the new bar name index | 63 -- update any local configuration/option entries with the new bar name index |
65 function module:OnRenameBar(event, bar, oldName, newName) | 64 function module:OnRenameBar(event, bar, oldName, newName) |
66 | 65 |
67 end | 66 end |
68 | 67 |
69 -- update any local display/options based on config mode (true/false) | |
70 function module:OnConfigModeChanged(event, mode) | |
71 | 68 |
72 end | |
73 |