diff --git a/ElvUI_SLE/modules/screensaver.lua b/ElvUI_SLE/modules/screensaver.lua index 3579ffc..f34e6a5 100644 --- a/ElvUI_SLE/modules/screensaver.lua +++ b/ElvUI_SLE/modules/screensaver.lua @@ -136,8 +136,13 @@ function S:Setup() SS.Top:SetSize(Width, Height) SS.Bottom:SetSize(Width, Height) SS.model:SetWidth(E.db.sle.media.screensaver.playermodel.width) - SS.model:SetPoint("TOP"..point, SS.Top,"BOTTOM"..point, 0,0) - SS.model:SetPoint("BOTTOM"..point, SS.Bottom, "TOP"..point, 0, 0) + if point ~= "CENTER" then + SS.model:SetPoint("TOP"..point, SS.Top,"BOTTOM"..point, 0,0) + SS.model:SetPoint("BOTTOM"..point, SS.Bottom, "TOP"..point, 0, 0) + else + SS.model:SetPoint("TOP", SS.Top,"BOTTOM", 0,0) + SS.model:SetPoint("BOTTOM", SS.Bottom, "TOP", 0, 0) + end end local AnimTime, testM @@ -193,8 +198,13 @@ function S:Shown() --Positioning model SS.model:ClearAllPoints() SS.model:SetWidth(E.db.sle.media.screensaver.playermodel.width) - SS.model:SetPoint("TOP"..point, SS.Top,"BOTTOM"..point, 0,0) - SS.model:SetPoint("BOTTOM"..point, SS.Bottom, "TOP"..point, 0, 0) + if point ~= "CENTER" then + SS.model:SetPoint("TOP"..point, SS.Top,"BOTTOM"..point, 0,0) + SS.model:SetPoint("BOTTOM"..point, SS.Bottom, "TOP"..point, 0, 0) + else + SS.model:SetPoint("TOP", SS.Top,"BOTTOM", 0,0) + SS.model:SetPoint("BOTTOM", SS.Bottom, "TOP", 0, 0) + end self.Top.Quote:SetText(L["Take care of yourself, Master!"]) diff --git a/ElvUI_SLE/options/media_c.lua b/ElvUI_SLE/options/media_c.lua index 96da61d..b66eb98 100644 --- a/ElvUI_SLE/options/media_c.lua +++ b/ElvUI_SLE/options/media_c.lua @@ -502,6 +502,7 @@ local function configTable() values = { ["RIGHT"] = L['Right'], ["LEFT"] = L['Left'], + ["CENTER"] = L['Center'] }, }, height = {