view 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 source
--[[
  ReAction module template

--]]

-- local imports
local ReAction = ReAction
local L = ReAction.L
local _G = _G

-- module declaration
local moduleID = "MyModuleName"
local module = ReAction:NewModule( moduleID,
  -- mixins go here
)

-- module methods
function module:OnInitialize()
  self.db = ReAction.db:RegisterNamespace( moduleID
    {
      profile = {
        -- default profile goes here
      }
    }
  )

  end
end

function module:OnEnable()

end

function module:OnDisable()

end


---- ReAction module API ----

-- apply module features and settings to a bar object (see Bar.lua for Bar API)
function module:ApplyToBar(bar)

end

-- 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