From 196e9be0090001bbdee7feb62b0d15b2b00fd9f7 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 18 Oct 2016 00:28:19 +0200 Subject: [PATCH] hide gui while moving frames --- modules/gui.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/gui.lua b/modules/gui.lua index 929c93e1..7fad5fe9 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -73,9 +73,12 @@ pfUI:RegisterModule("gui", function () } if not pfUI.gitter then - pfUI.gitter = CreateFrame("Frame", nil, UIParent) + pfUI.gitter = CreateFrame("Button", nil, UIParent) pfUI.gitter:SetAllPoints(WorldFrame) pfUI.gitter:SetFrameStrata("BACKGROUND") + pfUI.gitter:SetScript("OnClick", function() + pfUI.gui.UnlockFrames() + end) local size = 1 local width = GetScreenWidth() @@ -124,8 +127,10 @@ pfUI:RegisterModule("gui", function () if pfUI.gitter:IsShown() then pfUI.gitter:Hide() + pfUI.gui:Show() else pfUI.gitter:Show() + pfUI.gui:Hide() end for _,frame in pairs(movable) do