save position of frames and load them on login

This commit is contained in:
Eric Mauser
2016-06-19 00:01:11 +02:00
parent 7fd8d44289
commit d47f74a4f6
11 changed files with 95 additions and 0 deletions
+11
View File
@@ -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