api: pass init to next movable function

This commit is contained in:
shagu
2019-04-08 21:57:48 +02:00
parent 7bc60e723d
commit 747b895db2
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -525,7 +525,8 @@ end
-- [ Load Movable ]
-- Loads the positions of a Frame.
-- '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
if not frame.posdata or init then
frame.posdata = { scale = frame:GetScale(), pos = {} }
@@ -584,7 +585,7 @@ function pfUI.api.UpdateMovable(frame, init)
pfUI.movables[name] = frame
end
LoadMovable(frame)
LoadMovable(frame, init)
end
-- [ Remove Movable ]
+1 -1
View File
@@ -2,7 +2,7 @@
## Title: |cff33ffccpf|cffffffffUI
## Author: Shagu
## Notes: A complete user interface replacement.
## Version: 4.0
## Version: 4.0.1
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB