first draft of new visibility system, works so far, but lacks options

This commit is contained in:
Hendrik Leppkes
2008-09-01 12:42:18 +00:00
parent d7d1d3cd62
commit 959172dbcf
10 changed files with 41 additions and 81 deletions
+3 -5
View File
@@ -13,6 +13,9 @@ local PetBar = setmetatable({}, {__index = ButtonBar})
local defaults = { profile = Bartender4:Merge({
enabled = true,
scale = 1.0,
visibility = {
nopet = true,
},
}, Bartender4.ButtonBar.defaults) }
function PetBarMod:OnInitialize()
@@ -108,11 +111,6 @@ end
function PetBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
self:UpdateButtonLayout()
self:InitVisibilityDriver()
self:RegisterVisibilityCondition("[bonusbar:5]hide")
self:RegisterVisibilityCondition("[pet]show")
self:RegisterVisibilityCondition("hide")
self:ApplyVisibilityDriver()
self:ForAll("Update")
self:ForAll("ApplyStyle", self.config.style)
end