mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 01:30:50 +00:00
movables: new approach to handle movable frames
This commit is contained in:
@@ -26,6 +26,7 @@ pfUI.cache = {}
|
||||
pfUI.module = {}
|
||||
pfUI.modules = {}
|
||||
pfUI.environment = {}
|
||||
pfUI.movables = {}
|
||||
|
||||
pfLocaleClass = {}
|
||||
pfLocaleBagtypes = {}
|
||||
@@ -90,7 +91,14 @@ pfUI.backdrop_underline = {
|
||||
|
||||
pfUI.utils = CreateFrame("Frame",nil,UIParent)
|
||||
|
||||
function pfUI.utils:loadPosition(frame)
|
||||
function pfUI.utils:UpdateMovable(frame)
|
||||
local name = frame:GetName()
|
||||
|
||||
if not pfUI.movables[name] then
|
||||
pfUI.movables[name] = true
|
||||
table.insert(pfUI.movables, name)
|
||||
end
|
||||
|
||||
if pfUI_config["position"][frame:GetName()] then
|
||||
if pfUI_config["position"][frame:GetName()]["scale"] then
|
||||
frame:SetScale(pfUI_config["position"][frame:GetName()].scale)
|
||||
|
||||
Reference in New Issue
Block a user