From 14fd12266bfed80aaf0d6dc8353e3d5c31337604 Mon Sep 17 00:00:00 2001 From: Repooc Date: Tue, 16 Oct 2012 23:44:31 -0500 Subject: [PATCH] Updated some more of the install.lua Signed-off-by: Repooc --- ElvUI_SLE/modules/install.lua | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/ElvUI_SLE/modules/install.lua b/ElvUI_SLE/modules/install.lua index 97d15f1..ef3c57e 100644 --- a/ElvUI_SLE/modules/install.lua +++ b/ElvUI_SLE/modules/install.lua @@ -362,10 +362,15 @@ function E:SetupResolution(noDataReset) E.db.unitframe.units.arena.castbar.width = 200; end - E.db.movers.ElvUF_PlayerMover = "BOTTOMElvUIParentBOTTOM-106135" - E.db.movers.ElvUF_TargetTargetMover = "BOTTOMElvUIParentBOTTOM10680" - E.db.movers.ElvUF_TargetMover = "BOTTOMElvUIParentBOTTOM106135" - E.db.movers.ElvUF_PetMover = "BOTTOMElvUIParentBOTTOM-10680" + local isPixel = E.private.general.pixelPerfect + local xOffset = isPixel and 103 or 106; + local yOffset = isPixel and 125 or 135; + local yOffsetSmall = isPixel and 76 or 80; + + E.db.movers.ElvUF_PlayerMover = "BOTTOMElvUIParentBOTTOM"..-xOffset..""..yOffset + E.db.movers.ElvUF_TargetTargetMover = "BOTTOMElvUIParentBOTTOM"..xOffset..""..yOffsetSmall + E.db.movers.ElvUF_TargetMover = "BOTTOMElvUIParentBOTTOM"..xOffset..""..yOffset + E.db.movers.ElvUF_PetMover = "BOTTOMElvUIParentBOTTOM"..-xOffset..""..yOffsetSmall E.db.movers.ElvUF_FocusMover = "BOTTOMElvUIParentBOTTOM310332" E.db.lowresolutionset = true; @@ -376,10 +381,20 @@ function E:SetupResolution(noDataReset) E:CopyTable(E.db.actionbar, P.actionbar) E:CopyTable(E.db.unitframe.units, P.unitframe.units) + if E.private.general.pixelPerfect then + if not E.db.movers then E.db.movers = {}; end + + E.db.movers["ElvUF_PetMover"] = "BOTTOMElvUIParentBOTTOM0104" + E.db.movers["AurasMover"] = "TOPRIGHTElvUIParentTOPRIGHT-221-5" + E.db.movers["ElvUF_TargetTargetMover"] = "BOTTOMElvUIParentBOTTOM064" + E.db.movers["ElvUF_PlayerMover"] = "BOTTOMElvUIParentBOTTOM-27865" + E.db.movers["ElvUF_TargetMover"] = "BOTTOMElvUIParentBOTTOM27864" + end + E.db.auras.wrapAfter = P.auras.wrapAfter; E.db.general.reputation.width = P.general.reputation.width E.db.general.experience.width = P.general.experience.width - + E.db.lowresolutionset = nil; end -- 1.7.9.5