From 618af1eb768caef2c4d7e124756674f9bdb832fe Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 24 Oct 2012 16:55:18 +0400 Subject: [PATCH] I hope this will do the trick. In update function for the profile change, in initialize for first load with this profile --- ElvUI_SLE/ElvUI_SLE.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index 077c757..7fa6686 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -53,6 +53,16 @@ function E:UpdateAll() E.db.datatexts.panels.Top_Center = 'Version' E:GetModule('DataTexts'):LoadDataTexts() --Prevents datatexts from not changing on profile switch (Elv's issue) E:GetModule('RaidUtility'):MoveButton() + + if not E:HasMoverBeenMoved("LeftChatMover") and E.db.datatexts.leftChatPanel then + E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021" + E:SetMoversPositions() + end + + if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanelthen then + E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021" + E:SetMoversPositions() + end end @@ -67,6 +77,15 @@ function SLE:Initialize() E:GetModule('Layout'):EditboxPos() SLE:Tutorials() SLE:ConfigCats() + if not E:HasMoverBeenMoved("LeftChatMover") and E.db.datatexts.leftChatPanel then + E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021" + E:SetMoversPositions() + end + + if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanelthen then + E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021" + E:SetMoversPositions() + end end E:RegisterModule(SLE:GetName()) \ No newline at end of file -- 1.7.9.5