mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
unlock: trigger move actions on reset
This commit is contained in:
@@ -348,6 +348,8 @@ pfUI:RegisterModule("unlock", function ()
|
|||||||
pfUI_config["position"][frame:GetName()] = nil
|
pfUI_config["position"][frame:GetName()] = nil
|
||||||
frame:ClearAllPoints()
|
frame:ClearAllPoints()
|
||||||
UpdateMovable(frame)
|
UpdateMovable(frame)
|
||||||
|
|
||||||
|
if frame.OnMove then frame:OnMove() end
|
||||||
end
|
end
|
||||||
UpdateDockValues()
|
UpdateDockValues()
|
||||||
end
|
end
|
||||||
@@ -557,6 +559,9 @@ pfUI:RegisterModule("unlock", function ()
|
|||||||
frame:StopMovingOrSizing()
|
frame:StopMovingOrSizing()
|
||||||
SavePosition(frame)
|
SavePosition(frame)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if frame.OnMove then frame:OnMove() end
|
||||||
|
|
||||||
QueueFunction(SetDockToFrame, pfUI.unlock.dock.parent)
|
QueueFunction(SetDockToFrame, pfUI.unlock.dock.parent)
|
||||||
end)
|
end)
|
||||||
SkinButton(pfUI.unlock.dock.reset,.2,1,.8)
|
SkinButton(pfUI.unlock.dock.reset,.2,1,.8)
|
||||||
|
|||||||
Reference in New Issue
Block a user