From 44aa5b664e817eb8ed8e0ca731a3e15da879bb4c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 26 Oct 2012 15:19:47 +0400 Subject: [PATCH] nothing to see --- ElvUI_SLE/ElvUI_SLE.lua | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index 52e81e0..31ed833 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -26,6 +26,20 @@ function SLE:LootShow() end end +function SLE:ChatPos() + if not E:HasMoverBeenMoved("LeftChatMover") and E.db.datatexts.leftChatPanel then + if not E.db.movers then E.db.movers = {}; end + E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021" + E:SetMoversPositions() + end + + if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanel then + if not E.db.movers then E.db.movers = {}; end + E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021" + E:SetMoversPositions() + end +end + E.PopupDialogs["VERSION_MISMATCH"] = { text = L["Your version of ElvUI is older than recommended to use with Shadow & Light Edit. Please, download the latest version from tukui.org."], button1 = CLOSE, @@ -53,18 +67,7 @@ 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 - if not E.db.movers then E.db.movers = {}; end - E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021" - E:SetMoversPositions() - end - - if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanel then - if not E.db.movers then E.db.movers = {}; end - E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021" - E:SetMoversPositions() - end + SLE:ChatPos() end @@ -79,17 +82,7 @@ function SLE:Initialize() E:GetModule('Layout'):EditboxPos() SLE:Tutorials() SLE:ConfigCats() - if not E:HasMoverBeenMoved("LeftChatMover") and E.db.datatexts.leftChatPanel then - if not E.db.movers then E.db.movers = {}; end - E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021" - E:SetMoversPositions() - end - - if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanel then - if not E.db.movers then E.db.movers = {}; end - E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021" - E:SetMoversPositions() - end + SLE:ChatPos() end E:RegisterModule(SLE:GetName()) \ No newline at end of file -- 1.7.9.5