Added click-through plumbing and click-through support to Rep/XP Bars

This commit is contained in:
Hendrik Leppkes
2009-01-20 13:10:51 +01:00
parent 6d9c184d97
commit ef9968ce8e
12 changed files with 59 additions and 2 deletions
+10 -1
View File
@@ -58,6 +58,12 @@ function RepBar:PerformLayout()
bar:SetPoint("TOPLEFT", self, "TOPLEFT", 5, -3)
end
RepBar.ClickThroughSupport = true
function RepBar:ControlClickThrough()
self.content:EnableMouse(not self.config.clickthrough)
end
-- register module
local XPBarMod = Bartender4:NewModule("XPBar")
@@ -72,7 +78,7 @@ end
function XPBarMod:OnEnable()
if not self.bar then
self.bar = setmetatable(Bartender4.Bar:Create("XP", self.db.profile, L["XP Bar"]), {__index = XPBar})
self.bar.content= MainMenuExpBar
self.bar.content = MainMenuExpBar
self.bar.content:SetParent(self.bar)
self.bar.content:Show()
@@ -86,3 +92,6 @@ end
XPBarMod.ApplyConfig = RepBarMod.ApplyConfig
XPBar.ApplyConfig = RepBar.ApplyConfig
XPBar.PerformLayout = RepBar.PerformLayout
XPBar.ClickThroughSupport = true
XPBar.ControlClickThrough = RepBar.ControlClickThrough