mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +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
|
if not pfUI.gitter then
|
||||||
pfUI.gitter = CreateFrame("Frame", nil, UIParent)
|
pfUI.gitter = CreateFrame("Button", nil, UIParent)
|
||||||
pfUI.gitter:SetAllPoints(WorldFrame)
|
pfUI.gitter:SetAllPoints(WorldFrame)
|
||||||
pfUI.gitter:SetFrameStrata("BACKGROUND")
|
pfUI.gitter:SetFrameStrata("BACKGROUND")
|
||||||
|
pfUI.gitter:SetScript("OnClick", function()
|
||||||
|
pfUI.gui.UnlockFrames()
|
||||||
|
end)
|
||||||
|
|
||||||
local size = 1
|
local size = 1
|
||||||
local width = GetScreenWidth()
|
local width = GetScreenWidth()
|
||||||
@@ -124,8 +127,10 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
|
|
||||||
if pfUI.gitter:IsShown() then
|
if pfUI.gitter:IsShown() then
|
||||||
pfUI.gitter:Hide()
|
pfUI.gitter:Hide()
|
||||||
|
pfUI.gui:Show()
|
||||||
else
|
else
|
||||||
pfUI.gitter:Show()
|
pfUI.gitter:Show()
|
||||||
|
pfUI.gui:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
for _,frame in pairs(movable) do
|
for _,frame in pairs(movable) do
|
||||||
|
|||||||
Reference in New Issue
Block a user