From 60313072db350199b44fd0d2b33211a6e8273513 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 20 Jan 2009 13:14:43 +0100 Subject: [PATCH] Added Click-Through support to all ButtonBar based bars --- ButtonBar.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ButtonBar.lua b/ButtonBar.lua index e3889ea..b003167 100644 --- a/ButtonBar.lua +++ b/ButtonBar.lua @@ -119,6 +119,14 @@ function ButtonBar:GetHideHotkey() return self.config.hidehotkey end +ButtonBar.ClickThroughSupport = true +function ButtonBar:SetClickThrough(click) + if click ~= nil then + self.config.clickthrough = click + end + self:ForAll("EnableMouse", not self.config.clickthrough) +end + local math_floor = math.floor local math_ceil = math.ceil -- align the buttons and correct the size of the bar overlay frame