mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 16:46:04 +00:00
api: pass init to next movable function
This commit is contained in:
+3
-2
@@ -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 ]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user