mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-14 09:10:49 +00:00
api: pass init to next movable function
This commit is contained in:
+3
-2
@@ -525,7 +525,8 @@ end
|
|||||||
-- [ Load Movable ]
|
-- [ Load Movable ]
|
||||||
-- Loads the positions of a Frame.
|
-- Loads the positions of a Frame.
|
||||||
-- 'frame' [frame] the frame that should be positioned.
|
-- 'frame' [frame] the frame that should be positioned.
|
||||||
function pfUI.api.LoadMovable(frame)
|
-- 'init' [bool] treats the current position as initial data
|
||||||
|
function pfUI.api.LoadMovable(frame, init)
|
||||||
-- update position data
|
-- update position data
|
||||||
if not frame.posdata or init then
|
if not frame.posdata or init then
|
||||||
frame.posdata = { scale = frame:GetScale(), pos = {} }
|
frame.posdata = { scale = frame:GetScale(), pos = {} }
|
||||||
@@ -584,7 +585,7 @@ function pfUI.api.UpdateMovable(frame, init)
|
|||||||
pfUI.movables[name] = frame
|
pfUI.movables[name] = frame
|
||||||
end
|
end
|
||||||
|
|
||||||
LoadMovable(frame)
|
LoadMovable(frame, init)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- [ Remove Movable ]
|
-- [ Remove Movable ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
## Title: |cff33ffccpf|cffffffffUI
|
## Title: |cff33ffccpf|cffffffffUI
|
||||||
## Author: Shagu
|
## Author: Shagu
|
||||||
## Notes: A complete user interface replacement.
|
## Notes: A complete user interface replacement.
|
||||||
## Version: 4.0
|
## Version: 4.0.1
|
||||||
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache
|
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache
|
||||||
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user