mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 16:16:56 +00:00
save position of frames and load them on login
This commit is contained in:
@@ -103,8 +103,19 @@ pfUI_config = {
|
||||
["tooltip"] = {
|
||||
position = "bottom"
|
||||
},
|
||||
["position"] = {
|
||||
}
|
||||
}
|
||||
|
||||
pfUI.utils = CreateFrame("Frame",nil,UIParent)
|
||||
|
||||
function pfUI.utils:loadPosition(frame)
|
||||
if pfUI_config["position"][frame:GetName()] then
|
||||
frame:ClearAllPoints()
|
||||
frame:SetPoint("TOPLEFT", pfUI_config["position"][frame:GetName()].xpos, pfUI_config["position"][frame:GetName()].ypos)
|
||||
end
|
||||
end
|
||||
|
||||
message = function (msg)
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffcccc33INFO: |cffffff55"..msg)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user