stub for a petbar - not worky yet

This commit is contained in:
Hendrik Leppkes
2008-02-21 13:28:43 +00:00
parent 299783383a
commit aa66d37a95
3 changed files with 64 additions and 1 deletions
+6 -1
View File
@@ -1,8 +1,13 @@
--[[ $Id$ ]]
-- register module
local StanceBarMod = Bartender4:NewModule("StanceBar")
-- fetch upvalues
local ActionBars = Bartender4:GetModule("ActionBars")
local ButtonBar = Bartender4.ButtonBar.prototype
-- create prototype information
local StanceBar = setmetatable({}, {__index = ButtonBar})
local StanceButtonPrototype = CreateFrame("CheckButton")
local StanceButton_MT = {__index = StanceButtonPrototype}
@@ -20,7 +25,7 @@ end
function StanceBarMod:OnEnable()
if not self.bar then
self.bar = setmetatable(Bartender4.ButtonBar:Create("stance", nil, self.db.profile), {__index = StanceBar})
self.bar = setmetatable(Bartender4.ButtonBar:Create("Stance", nil, self.db.profile), {__index = StanceBar})
self.bar:ClearSetPoint("CENTER")
self.bar:ApplyConfig()