mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 08:06:55 +00:00
hide gui while moving frames
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user