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
+14
View File
@@ -178,6 +178,7 @@ function Bar:ApplyConfig(config)
self:LoadPosition()
self:SetConfigScale()
self:SetConfigAlpha()
self:SetClickThrough()
self:InitVisibilityDriver()
end
@@ -252,6 +253,19 @@ function Bar:SetConfigScale(scale)
self:LoadPosition()
end
function Bar:GetClickThrough()
return self.config.clickthrough
end
function Bar:SetClickThrough(click)
if click ~= nil then
self.config.clickthrough = click
end
if self.ControlClickThrough then
self:ControlClickThrough()
end
end
function Bar:GetFadeOut()
return self.config.fadeout
end