flickerstreak@25: --[[ flickerstreak@25: ReAction module template flickerstreak@25: flickerstreak@25: --]] flickerstreak@25: flickerstreak@25: -- local imports flickerstreak@25: local ReAction = ReAction flickerstreak@25: local L = ReAction.L flickerstreak@25: local _G = _G flickerstreak@25: flickerstreak@25: -- module declaration flickerstreak@25: local moduleID = "MyModuleName" flickerstreak@25: local module = ReAction:NewModule( moduleID, flickerstreak@25: -- mixins go here flickerstreak@25: ) flickerstreak@25: flickerstreak@25: -- module methods flickerstreak@25: function module:OnInitialize() flickerstreak@28: self.db = ReAction.db:RegisterNamespace( moduleID flickerstreak@25: { flickerstreak@28: profile = { flickerstreak@28: -- default profile goes here flickerstreak@28: } flickerstreak@25: } flickerstreak@25: ) flickerstreak@28: flickerstreak@28: end flickerstreak@25: end flickerstreak@25: flickerstreak@25: function module:OnEnable() flickerstreak@25: flickerstreak@25: end flickerstreak@25: flickerstreak@25: function module:OnDisable() flickerstreak@25: flickerstreak@25: end flickerstreak@25: flickerstreak@28: flickerstreak@28: ---- ReAction module API ---- flickerstreak@28: flickerstreak@28: -- apply module features and settings to a bar object (see Bar.lua for Bar API) flickerstreak@28: function module:ApplyToBar(bar) flickerstreak@25: flickerstreak@25: end flickerstreak@25: flickerstreak@28: -- remove module features and settings from a bar object flickerstreak@28: function module:RemoveFromBar(bar) flickerstreak@25: flickerstreak@25: end flickerstreak@25: flickerstreak@28: -- refresh module features and settings on a bar object flickerstreak@28: function module:RefreshBar(bar) flickerstreak@28: flickerstreak@28: end flickerstreak@28: flickerstreak@28: -- notification of config mode (true/false) on the list of bars flickerstreak@28: function module:ApplyConfigMode(mode,listOfBars) flickerstreak@28: flickerstreak@28: end flickerstreak@28: flickerstreak@28: -- return a name-modifier (suffix) for the bar name display. This can reflect a dynamic state. flickerstreak@28: function module:GetBarNameModifier(bar) flickerstreak@28: return nil flickerstreak@28: end flickerstreak@28: flickerstreak@28: -- erase any local configuration entries for the supplied bar name flickerstreak@28: function module:EraseBarConfig(barName) flickerstreak@28: flickerstreak@28: end flickerstreak@28: flickerstreak@28: -- update any local configuration entries with the new bar name index flickerstreak@28: function module:RenameBarConfig(oldName, newName) flickerstreak@28: flickerstreak@28: end