Mercurial > wow > reaction
diff modules/ReAction_ModuleTemplate/ReAction_ModuleName.lua @ 28:21bcaf8215ff
- converted to Ace3
- rearranged file layout
- configGUI menus not working right now
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 17 Mar 2008 18:24:53 +0000 |
parents | bf997ea151ca |
children | 768be7eb22a0 |
line wrap: on
line diff
--- a/modules/ReAction_ModuleTemplate/ReAction_ModuleName.lua Tue Mar 11 21:39:34 2008 +0000 +++ b/modules/ReAction_ModuleTemplate/ReAction_ModuleName.lua Mon Mar 17 18:24:53 2008 +0000 @@ -16,12 +16,15 @@ -- module methods function module:OnInitialize() - self.db = ReAction:AcquireDBNamespace(moduleID) - ReAction:RegisterDefaults(moduleID,"profile", + self.db = ReAction.db:RegisterNamespace( moduleID { - + profile = { + -- default profile goes here + } } ) + + end end function module:OnEnable() @@ -32,11 +35,40 @@ end -function module:OnProfileEnable() + +---- ReAction module API ---- + +-- apply module features and settings to a bar object (see Bar.lua for Bar API) +function module:ApplyToBar(bar) end -function module:OnProfileDisable() +-- remove module features and settings from a bar object +function module:RemoveFromBar(bar) end +-- refresh module features and settings on a bar object +function module:RefreshBar(bar) + +end + +-- notification of config mode (true/false) on the list of bars +function module:ApplyConfigMode(mode,listOfBars) + +end + +-- return a name-modifier (suffix) for the bar name display. This can reflect a dynamic state. +function module:GetBarNameModifier(bar) + return nil +end + +-- erase any local configuration entries for the supplied bar name +function module:EraseBarConfig(barName) + +end + +-- update any local configuration entries with the new bar name index +function module:RenameBarConfig(oldName, newName) + +end