diff --git a/ElvUI_SLE/modules/actionbars/actionbars.lua b/ElvUI_SLE/modules/actionbars/actionbars.lua index 21eca1d..dfc055b 100644 --- a/ElvUI_SLE/modules/actionbars/actionbars.lua +++ b/ElvUI_SLE/modules/actionbars/actionbars.lua @@ -35,7 +35,7 @@ function AB:UpdatePet() end --DPE. Enable/disable autocast square around buttons - if E.db.dpe.petbar.autocast then + if E.db.sle.petbar.autocast then if autoCastAllowed then autoCast:Show(); else diff --git a/ElvUI_SLE/modules/auras/auras.lua b/ElvUI_SLE/modules/auras/auras.lua index 5a3787f..5946ec4 100644 --- a/ElvUI_SLE/modules/auras/auras.lua +++ b/ElvUI_SLE/modules/auras/auras.lua @@ -13,7 +13,7 @@ function A:StyleBuffs(buttonName, index, debuff) icon:Point("TOPLEFT", buff, 2, -2) icon:Point("BOTTOMRIGHT", buff, -2, 2) - buff:Size(E.private.dpe.auras.size) + buff:Size(E.private.sle.auras.size) --buff:Size(35) duration:ClearAllPoints() @@ -57,9 +57,9 @@ function addAuraSource(self, func, unit, index, filter) end end -A.InitializeDPE = A.Initialize +A.InitializeSLE = A.Initialize function A:Initialize() - A.InitializeDPE(self) + A.InitializeSLE(self) local funcs = { SetUnitAura = UnitAura, diff --git a/ElvUI_SLE/modules/autorelease/autorelease.lua b/ElvUI_SLE/modules/autorelease/autorelease.lua index f22c780..1d928df 100644 --- a/ElvUI_SLE/modules/autorelease/autorelease.lua +++ b/ElvUI_SLE/modules/autorelease/autorelease.lua @@ -6,7 +6,7 @@ local AR = E:NewModule('AutoRelease', 'AceHook-3.0', 'AceEvent-3.0'); function AR:Releasing() local inInstance, instanceType = IsInInstance() if (inInstance and (instanceType == "pvp")) then - if E.db.dpe.pvpautorelease then + if E.db.sle.pvpautorelease then local soulstone = GetSpellInfo(20707) if ((E.myclass ~= "SHAMAN") and not (soulstone and UnitBuff("player", soulstone))) then RepopMe() @@ -15,7 +15,7 @@ function AR:Releasing() end -- auto resurrection for world PvP area...when active - if E.db.dpe.pvpautorelease then + if E.db.sle.pvpautorelease then for index = 1, GetNumWorldPVPAreas() do local pvpID, localizedName, isActive, canQueue, startTime, canEnter = GetWorldPVPAreaInfo(index) diff --git a/ElvUI_SLE/modules/autorelease/options.lua b/ElvUI_SLE/modules/autorelease/options.lua index befcf46..be9610f 100644 --- a/ElvUI_SLE/modules/autorelease/options.lua +++ b/ElvUI_SLE/modules/autorelease/options.lua @@ -1,11 +1,11 @@ local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, ProfileDB, GlobalDB --Main options group -E.Options.args.dpe.args.general.args.pvpautorelease = { +E.Options.args.sle.args.general.args.pvpautorelease = { order = 2, type = "toggle", name = L["PvP Auto Release"], desc = L["Automatically release body when killed inside a battleground."], - get = function(info) return E.db.dpe.pvpautorelease end, - set = function(info, value) E.db.dpe.pvpautorelease = value; end + get = function(info) return E.db.sle.pvpautorelease end, + set = function(info, value) E.db.sle.pvpautorelease = value; end } diff --git a/ElvUI_SLE/modules/backgrounds/backgrounds.lua b/ElvUI_SLE/modules/backgrounds/backgrounds.lua index 2a51830..603182e 100644 --- a/ElvUI_SLE/modules/backgrounds/backgrounds.lua +++ b/ElvUI_SLE/modules/backgrounds/backgrounds.lua @@ -56,67 +56,67 @@ end --Frames Size function BG:FramesSize() - BGbottom:SetWidth(E.db.dpe.backgrounds.bottom.width) - BGbottom:SetHeight(E.db.dpe.backgrounds.bottom.height) + BGbottom:SetWidth(E.db.sle.backgrounds.bottom.width) + BGbottom:SetHeight(E.db.sle.backgrounds.bottom.height) - BGleft:SetWidth(E.db.dpe.backgrounds.left.width) - BGleft:SetHeight(E.db.dpe.backgrounds.left.height) + BGleft:SetWidth(E.db.sle.backgrounds.left.width) + BGleft:SetHeight(E.db.sle.backgrounds.left.height) - BGright:SetWidth(E.db.dpe.backgrounds.right.width) - BGright:SetHeight(E.db.dpe.backgrounds.right.height) + BGright:SetWidth(E.db.sle.backgrounds.right.width) + BGright:SetHeight(E.db.sle.backgrounds.right.height) - BGaction:SetWidth(E.db.dpe.backgrounds.action.width) - BGaction:SetHeight(E.db.dpe.backgrounds.action.height) + BGaction:SetWidth(E.db.sle.backgrounds.action.width) + BGaction:SetHeight(E.db.sle.backgrounds.action.height) end --Frames points function BG:FramesPositions() - BGbottom:Point("BOTTOM", E.UIParent, "BOTTOM", 0 + E.db.dpe.backgrounds.bottom.xoffset, 21 + E.db.dpe.backgrounds.bottom.yoffset); - BGleft:Point("BOTTOMRIGHT", E.UIParent, "BOTTOM", -(E.screenwidth/4 + 32)/2 - 1 + E.db.dpe.backgrounds.left.xoffset, 21 + E.db.dpe.backgrounds.left.yoffset); - BGright:Point("BOTTOMLEFT", E.UIParent, "BOTTOM", (E.screenwidth/4 + 32)/2 + 1 + E.db.dpe.backgrounds.right.xoffset, 21 + E.db.dpe.backgrounds.right.yoffset); - BGaction:Point("BOTTOM", E.UIParent, "BOTTOM", 0 + E.db.dpe.backgrounds.action.xoffset, E.screenheight/6 + 9 + E.db.dpe.backgrounds.action.yoffset); + BGbottom:Point("BOTTOM", E.UIParent, "BOTTOM", 0 + E.db.sle.backgrounds.bottom.xoffset, 21 + E.db.sle.backgrounds.bottom.yoffset); + BGleft:Point("BOTTOMRIGHT", E.UIParent, "BOTTOM", -(E.screenwidth/4 + 32)/2 - 1 + E.db.sle.backgrounds.left.xoffset, 21 + E.db.sle.backgrounds.left.yoffset); + BGright:Point("BOTTOMLEFT", E.UIParent, "BOTTOM", (E.screenwidth/4 + 32)/2 + 1 + E.db.sle.backgrounds.right.xoffset, 21 + E.db.sle.backgrounds.right.yoffset); + BGaction:Point("BOTTOM", E.UIParent, "BOTTOM", 0 + E.db.sle.backgrounds.action.xoffset, E.screenheight/6 + 9 + E.db.sle.backgrounds.action.yoffset); end --Updating textures function BG:UpdateTex() BGbottom.tex:Point('TOPLEFT', BGbottom, 'TOPLEFT', 2, -2) BGbottom.tex:Point('BOTTOMRIGHT', BGbottom, 'BOTTOMRIGHT', -2, 2) - BGbottom.tex:SetTexture(E.db.dpe.backgrounds.bottom.texture) + BGbottom.tex:SetTexture(E.db.sle.backgrounds.bottom.texture) BGright.tex:Point('TOPLEFT', BGright, 'TOPLEFT', 2, -2) BGright.tex:Point('BOTTOMRIGHT', BGright, 'BOTTOMRIGHT', -2, 2) - BGright.tex:SetTexture(E.db.dpe.backgrounds.right.texture) + BGright.tex:SetTexture(E.db.sle.backgrounds.right.texture) BGleft.tex:Point('TOPLEFT', BGleft, 'TOPLEFT', 2, -2) BGleft.tex:Point('BOTTOMRIGHT', BGleft, 'BOTTOMRIGHT', -2, 2) - BGleft.tex:SetTexture(E.db.dpe.backgrounds.left.texture) + BGleft.tex:SetTexture(E.db.sle.backgrounds.left.texture) BGaction.tex:Point('TOPLEFT', BGaction, 'TOPLEFT', 2, -2) BGaction.tex:Point('BOTTOMRIGHT', BGaction, 'BOTTOMRIGHT', -2, 2) - BGaction.tex:SetTexture(E.db.dpe.backgrounds.action.texture) + BGaction.tex:SetTexture(E.db.sle.backgrounds.action.texture) end --Visibility / Enable check function BG:FramesVisibility() - if E.db.dpe.backgrounds.bottom.enabled then + if E.db.sle.backgrounds.bottom.enabled then BGbottom:Show() else BGbottom:Hide() end - if E.db.dpe.backgrounds.left.enabled then + if E.db.sle.backgrounds.left.enabled then BGleft:Show() else BGleft:Hide() end - if E.db.dpe.backgrounds.right.enabled then + if E.db.sle.backgrounds.right.enabled then BGright:Show() else BGright:Hide() end - if E.db.dpe.backgrounds.action.enabled then + if E.db.sle.backgrounds.action.enabled then BGaction:Show() else BGaction:Hide() diff --git a/ElvUI_SLE/modules/backgrounds/options.lua b/ElvUI_SLE/modules/backgrounds/options.lua index c83e883..28088f1 100644 --- a/ElvUI_SLE/modules/backgrounds/options.lua +++ b/ElvUI_SLE/modules/backgrounds/options.lua @@ -2,7 +2,7 @@ local BG = E:GetModule('BackGrounds') --Options for additional background frames. Main group -E.Options.args.dpe.args.backgrounds = { +E.Options.args.sle.args.backgrounds = { type = "group", name = L["Backgrounds"], order = 9, @@ -23,16 +23,16 @@ E.Options.args.dpe.args.backgrounds = { type = "toggle", name = L["Bottom BG"], desc = L["Show/Hide this frame."], - get = function(info) return E.db.dpe.backgrounds.bottom.enabled end, - set = function(info, value) E.db.dpe.backgrounds.bottom.enabled = value; BG:FramesVisibility() end + get = function(info) return E.db.sle.backgrounds.bottom.enabled end, + set = function(info, value) E.db.sle.backgrounds.bottom.enabled = value; BG:FramesVisibility() end }, left_enabled = { order = 4, type = "toggle", name = L["Left BG"], desc = L["Show/Hide this frame."], - get = function(info) return E.db.dpe.backgrounds.left.enabled end, - set = function(info, value) E.db.dpe.backgrounds.left.enabled = value; BG:FramesVisibility() end + get = function(info) return E.db.sle.backgrounds.left.enabled end, + set = function(info, value) E.db.sle.backgrounds.left.enabled = value; BG:FramesVisibility() end }, spacer = { order = 5, @@ -44,25 +44,25 @@ E.Options.args.dpe.args.backgrounds = { type = "toggle", name = L["Right BG"], desc = L["Show/Hide this frame."], - get = function(info) return E.db.dpe.backgrounds.right.enabled end, - set = function(info, value) E.db.dpe.backgrounds.right.enabled = value; BG:FramesVisibility() end + get = function(info) return E.db.sle.backgrounds.right.enabled end, + set = function(info, value) E.db.sle.backgrounds.right.enabled = value; BG:FramesVisibility() end }, action_enabled = { order = 7, type = "toggle", name = L["Actionbar BG"], desc = L["Show/Hide this frame."], - get = function(info) return E.db.dpe.backgrounds.action.enabled end, - set = function(info, value) E.db.dpe.backgrounds.action.enabled = value; BG:FramesVisibility() end + get = function(info) return E.db.sle.backgrounds.action.enabled end, + set = function(info, value) E.db.sle.backgrounds.action.enabled = value; BG:FramesVisibility() end }, } } --Subgroup for 1st frame. They are based on the same pattern -E.Options.args.dpe.args.backgrounds.args.bottom = { +E.Options.args.sle.args.backgrounds.args.bottom = { type = "group", name = L["Bottom BG"], order = 1, - disabled = function() return not E.db.dpe.backgrounds.bottom.enabled end, + disabled = function() return not E.db.sle.backgrounds.bottom.enabled end, args = { width = { --setting width (obviously) order = 3, @@ -70,8 +70,8 @@ E.Options.args.dpe.args.backgrounds.args.bottom = { name = L['Width'], desc = L["Sets width of the frame"], min = 200, max = E.screenwidth, step = 1, - get = function(info) return E.db.dpe.backgrounds.bottom.width end, - set = function(info, value) E.db.dpe.backgrounds.bottom.width = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.bottom.width end, + set = function(info, value) E.db.sle.backgrounds.bottom.width = value; BG:FramesSize() end, }, height = { order = 4, @@ -79,8 +79,8 @@ E.Options.args.dpe.args.backgrounds.args.bottom = { name = L['Height'], desc = L["Sets height of the frame"], min = 50, max = E.screenheight/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.bottom.height end, - set = function(info, value) E.db.dpe.backgrounds.bottom.height = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.bottom.height end, + set = function(info, value) E.db.sle.backgrounds.bottom.height = value; BG:FramesSize() end, }, spacer = { --Empty slot for making sliders move to next line order = 5, @@ -94,8 +94,8 @@ E.Options.args.dpe.args.backgrounds.args.bottom = { name = L['X Offset'], desc = L["Sets X offset of the frame"], min = -E.screenwidth/2, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.bottom.xoffset end, - set = function(info, value) E.db.dpe.backgrounds.bottom.xoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.bottom.xoffset end, + set = function(info, value) E.db.sle.backgrounds.bottom.xoffset = value; BG:FramesPositions() end, }, yoffset = { order = 7, @@ -103,8 +103,8 @@ E.Options.args.dpe.args.backgrounds.args.bottom = { name = L['Y Offset'], desc = L["Sets Y offset of the frame"], min = -21, max = E.screenheight, step = 1, - get = function(info) return E.db.dpe.backgrounds.bottom.yoffset end, - set = function(info, value) E.db.dpe.backgrounds.bottom.yoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.bottom.yoffset end, + set = function(info, value) E.db.sle.backgrounds.bottom.yoffset = value; BG:FramesPositions() end, }, --Setting custom texture for those who like it texture = { @@ -113,9 +113,9 @@ E.Options.args.dpe.args.backgrounds.args.bottom = { width = 'full', name = L["Texture"], desc = L["Set the texture to use in this frame. Requirements are the same as the chat textures."], - get = function(info) return E.db.dpe.backgrounds.bottom.texture end, + get = function(info) return E.db.sle.backgrounds.bottom.texture end, set = function(info, value) - E.db.dpe.backgrounds.bottom.texture = value + E.db.sle.backgrounds.bottom.texture = value E:UpdateMedia() BG:UpdateTex() end, @@ -123,11 +123,11 @@ E.Options.args.dpe.args.backgrounds.args.bottom = { }, } --Subgroup for 2nd frame -E.Options.args.dpe.args.backgrounds.args.left = { +E.Options.args.sle.args.backgrounds.args.left = { order = 2, type = "group", name = L["Left BG"], - disabled = function() return not E.db.dpe.backgrounds.left.enabled end, + disabled = function() return not E.db.sle.backgrounds.left.enabled end, args = { width = { order = 3, @@ -135,8 +135,8 @@ E.Options.args.dpe.args.backgrounds.args.left = { name = L['Width'], desc = L["Sets width of the frame"], min = 150, max = E.screenwidth, step = 1, - get = function(info) return E.db.dpe.backgrounds.left.width end, - set = function(info, value) E.db.dpe.backgrounds.left.width = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.left.width end, + set = function(info, value) E.db.sle.backgrounds.left.width = value; BG:FramesSize() end, }, height = { order = 4, @@ -144,8 +144,8 @@ E.Options.args.dpe.args.backgrounds.args.left = { name = L['Height'], desc = L["Sets height of the frame"], min = 50, max = E.screenheight/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.left.height end, - set = function(info, value) E.db.dpe.backgrounds.left.height = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.left.height end, + set = function(info, value) E.db.sle.backgrounds.left.height = value; BG:FramesSize() end, }, spacer = { order = 5, @@ -158,8 +158,8 @@ E.Options.args.dpe.args.backgrounds.args.left = { name = L['X Offset'], desc = L["Sets X offset of the frame"], min = -E.screenwidth/2, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.left.xoffset end, - set = function(info, value) E.db.dpe.backgrounds.left.xoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.left.xoffset end, + set = function(info, value) E.db.sle.backgrounds.left.xoffset = value; BG:FramesPositions() end, }, yoffset = { order = 7, @@ -167,8 +167,8 @@ E.Options.args.dpe.args.backgrounds.args.left = { name = L['Y Offset'], desc = L["Sets Y offset of the frame"], min = -21, max = E.screenheight, step = 1, - get = function(info) return E.db.dpe.backgrounds.left.yoffset end, - set = function(info, value) E.db.dpe.backgrounds.left.yoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.left.yoffset end, + set = function(info, value) E.db.sle.backgrounds.left.yoffset = value; BG:FramesPositions() end, }, texture = { order = 8, @@ -176,9 +176,9 @@ E.Options.args.dpe.args.backgrounds.args.left = { width = 'full', name = L["Texture"], desc = L["Set the texture to use in this frame. Requirements are the same as the chat textures."], - get = function(info) return E.db.dpe.backgrounds.left.texture end, + get = function(info) return E.db.sle.backgrounds.left.texture end, set = function(info, value) - E.db.dpe.backgrounds.left.texture = value + E.db.sle.backgrounds.left.texture = value E:UpdateMedia() BG:UpdateTex() end, @@ -186,11 +186,11 @@ E.Options.args.dpe.args.backgrounds.args.left = { }, } --Subgroup for 3rd frame -E.Options.args.dpe.args.backgrounds.args.right = { +E.Options.args.sle.args.backgrounds.args.right = { order = 2, type = "group", name = L["Right BG"], - disabled = function() return not E.db.dpe.backgrounds.right.enabled end, + disabled = function() return not E.db.sle.backgrounds.right.enabled end, args = { width = { order = 3, @@ -198,8 +198,8 @@ E.Options.args.dpe.args.backgrounds.args.right = { name = L['Width'], desc = L["Sets width of the frame"], min = 150, max = E.screenwidth, step = 1, - get = function(info) return E.db.dpe.backgrounds.right.width end, - set = function(info, value) E.db.dpe.backgrounds.right.width = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.right.width end, + set = function(info, value) E.db.sle.backgrounds.right.width = value; BG:FramesSize() end, }, height = { order = 4, @@ -207,8 +207,8 @@ E.Options.args.dpe.args.backgrounds.args.right = { name = L['Height'], desc = L["Sets height of the frame"], min = 50, max = E.screenheight/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.right.height end, - set = function(info, value) E.db.dpe.backgrounds.right.height = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.right.height end, + set = function(info, value) E.db.sle.backgrounds.right.height = value; BG:FramesSize() end, }, spacer = { order = 5, @@ -221,8 +221,8 @@ E.Options.args.dpe.args.backgrounds.args.right = { name = L['X Offset'], desc = L["Sets X offset of the frame"], min = -E.screenwidth/2, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.right.xoffset end, - set = function(info, value) E.db.dpe.backgrounds.right.xoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.right.xoffset end, + set = function(info, value) E.db.sle.backgrounds.right.xoffset = value; BG:FramesPositions() end, }, yoffset = { order = 7, @@ -230,8 +230,8 @@ E.Options.args.dpe.args.backgrounds.args.right = { name = L['Y Offset'], desc = L["Sets Y offset of the frame"], min = -21, max = E.screenheight, step = 1, - get = function(info) return E.db.dpe.backgrounds.right.yoffset end, - set = function(info, value) E.db.dpe.backgrounds.right.yoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.right.yoffset end, + set = function(info, value) E.db.sle.backgrounds.right.yoffset = value; BG:FramesPositions() end, }, texture = { order = 8, @@ -239,9 +239,9 @@ E.Options.args.dpe.args.backgrounds.args.right = { width = 'full', name = L["Texture"], desc = L["Set the texture to use in this frame. Requirements are the same as the chat textures."], - get = function(info) return E.db.dpe.backgrounds.right.texture end, + get = function(info) return E.db.sle.backgrounds.right.texture end, set = function(info, value) - E.db.dpe.backgrounds.right.texture = value + E.db.sle.backgrounds.right.texture = value E:UpdateMedia() BG:UpdateTex() end, @@ -249,11 +249,11 @@ E.Options.args.dpe.args.backgrounds.args.right = { }, } --Subgroup for 4th frame -E.Options.args.dpe.args.backgrounds.args.action = { +E.Options.args.sle.args.backgrounds.args.action = { order = 4, type = "group", name = L["Actionbar BG"], - disabled = function() return not E.db.dpe.backgrounds.action.enabled end, + disabled = function() return not E.db.sle.backgrounds.action.enabled end, args = { width = { order = 3, @@ -261,8 +261,8 @@ E.Options.args.dpe.args.backgrounds.args.action = { name = L['Width'], desc = L["Sets width of the frame"], min = 200, max = E.screenwidth, step = 1, - get = function(info) return E.db.dpe.backgrounds.action.width end, - set = function(info, value) E.db.dpe.backgrounds.action.width = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.action.width end, + set = function(info, value) E.db.sle.backgrounds.action.width = value; BG:FramesSize() end, }, height = { order = 4, @@ -270,8 +270,8 @@ E.Options.args.dpe.args.backgrounds.args.action = { name = L['Height'], desc = L["Sets height of the frame"], min = 50, max = E.screenheight/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.action.height end, - set = function(info, value) E.db.dpe.backgrounds.action.height = value; BG:FramesSize() end, + get = function(info) return E.db.sle.backgrounds.action.height end, + set = function(info, value) E.db.sle.backgrounds.action.height = value; BG:FramesSize() end, }, spacer = { order = 5, @@ -284,8 +284,8 @@ E.Options.args.dpe.args.backgrounds.args.action = { name = L['X Offset'], desc = L["Sets X offset of the frame"], min = -E.screenwidth/2, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.backgrounds.action.xoffset end, - set = function(info, value) E.db.dpe.backgrounds.action.xoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.action.xoffset end, + set = function(info, value) E.db.sle.backgrounds.action.xoffset = value; BG:FramesPositions() end, }, yoffset = { order = 7, @@ -293,8 +293,8 @@ E.Options.args.dpe.args.backgrounds.args.action = { name = L['Y Offset'], desc = L["Sets Y offset of the frame"], min = -21, max = E.screenheight, step = 1, - get = function(info) return E.db.dpe.backgrounds.action.yoffset end, - set = function(info, value) E.db.dpe.backgrounds.action.yoffset = value; BG:FramesPositions() end, + get = function(info) return E.db.sle.backgrounds.action.yoffset end, + set = function(info, value) E.db.sle.backgrounds.action.yoffset = value; BG:FramesPositions() end, }, texture = { order = 8, @@ -302,9 +302,9 @@ E.Options.args.dpe.args.backgrounds.args.action = { width = 'full', name = L["Texture"], desc = L["Set the texture to use in this frame. Requirements are the same as the chat textures."], - get = function(info) return E.db.dpe.backgrounds.action.texture end, + get = function(info) return E.db.sle.backgrounds.action.texture end, set = function(info, value) - E.db.dpe.backgrounds.action.texture = value + E.db.sle.backgrounds.action.texture = value E:UpdateMedia() BG:UpdateTex() end, diff --git a/ElvUI_SLE/modules/balancepower/balancepower.lua b/ElvUI_SLE/modules/balancepower/balancepower.lua index 8735b9d..a4206ef 100644 --- a/ElvUI_SLE/modules/balancepower/balancepower.lua +++ b/ElvUI_SLE/modules/balancepower/balancepower.lua @@ -1,7 +1,7 @@ --Module to create frame with sol/lun energy value. At least untill the time i find the way to place text on actual energy bar local E, L, V, P, G = unpack(ElvUI); --Engine local M = E:GetModule('Misc'); -local DPE = E:GetModule('DPE'); +local SLE = E:GetModule('SLE'); --Defaults P['general'] = { @@ -30,11 +30,11 @@ function M:CreateBalancePower() bpower:Hide() - DPE:BPUpdate() + SLE:BPUpdate() end --Visibility/enable check -function DPE:BPUpdate() +function SLE:BPUpdate() if E.db.general.bpenable then bpower:Show() else diff --git a/ElvUI_SLE/modules/balancepower/options.lua b/ElvUI_SLE/modules/balancepower/options.lua index 63289db..284c2e2 100644 --- a/ElvUI_SLE/modules/balancepower/options.lua +++ b/ElvUI_SLE/modules/balancepower/options.lua @@ -2,7 +2,7 @@ --Adds a new option group is character is a druid. if E.myclass == "DRUID" then -E.Options.args.dpe.args.druid = { +E.Options.args.sle.args.druid = { order = 15, type = 'group', name = L["Druid"], @@ -24,7 +24,7 @@ E.Options.args.dpe.args.druid = { name = L["Balance Power Frame"], desc = L["Show/hide the frame with exact number of your Solar/Lunar energy."], get = function(info) return E.db.general.bpenable end, - set = function(info, value) E.db.general.bpenable = value; E:GetModule('DPE'):BPUpdate() end + set = function(info, value) E.db.general.bpenable = value; E:GetModule('SLE'):BPUpdate() end }, }, }, diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua index 70cfde4..f99f7b1 100644 --- a/ElvUI_SLE/modules/chat/chat.lua +++ b/ElvUI_SLE/modules/chat/chat.lua @@ -13,7 +13,7 @@ CH.StyleChatRE = CH.StyleChat function CH:StyleChat(frame) self:StyleChatRE(frame) local name = frame:GetName() - if E.db.dpe.chat.fade then + if E.db.sle.chat.fade then _G[name]:SetFading(true) --Enable chat text fading after some time else _G[name]:SetFading(false) --Disable chat text fading after some time @@ -105,7 +105,7 @@ end --For finding names in regular channels local FindMyName = function(self, event, message, author, ...) - if not E.db.dpe.chat.namehighlight then return end + if not E.db.sle.chat.namehighlight then return end local msg = strlower(message) for i = 1, #NameList do @@ -116,9 +116,9 @@ local FindMyName = function(self, event, message, author, ...) local Link = FindURL(message) if (not Link) or (Link and not strfind(Link, Name)) then - if E.db.dpe.chat.sound then + if E.db.sle.chat.sound then if SoundPalyed == 0 then --Check for sound played - PlaySoundFile(LSM:Fetch("sound", E.db.dpe.chat.warningsound)); + PlaySoundFile(LSM:Fetch("sound", E.db.sle.chat.warningsound)); SoundPalyed = 1 --Setting sound as played frame.SoundTimer = CH:ScheduleTimer('EnableSound', E.private.channelcheck.time) --Starting Timer end @@ -131,7 +131,7 @@ end --For finding names in custom channels local CustomFindMyName = function(self, event, message, author, arg1, arg2, arg3, arg4, arg5, channelNum, channelName, ...) - if not E.db.dpe.chat.namehighlight then return end + if not E.db.sle.chat.namehighlight then return end local msg = strlower(message) --Checking if the custom channel is one of Blizz's @@ -144,9 +144,9 @@ local CustomFindMyName = function(self, event, message, author, arg1, arg2, arg3 local Link = FindURL(message) if (not Link) or (Link and not strfind(Link, Name)) then - if E.db.dpe.chat.sound then + if E.db.sle.chat.sound then if SoundPalyed == 0 then - PlaySoundFile(LSM:Fetch("sound", E.db.dpe.chat.warningsound)); + PlaySoundFile(LSM:Fetch("sound", E.db.sle.chat.warningsound)); SoundPalyed = 1 frame.SoundTimer = CH:ScheduleTimer('EnableSound', E.private.channelcheck.time) end @@ -174,9 +174,9 @@ local CustomFindMyName = function(self, event, message, author, arg1, arg2, arg3 local Link = FindURL(message) if (not Link) or (Link and not strfind(Link, Name)) then - if E.db.dpe.chat.sound then + if E.db.sle.chat.sound then if SoundPalyed == 0 then - PlaySoundFile(LSM:Fetch("sound", E.db.dpe.chat.warningsound)); + PlaySoundFile(LSM:Fetch("sound", E.db.sle.chat.warningsound)); SoundPalyed = 1 frame.SoundTimer = CH:ScheduleTimer('EnableSound', E.private.channelcheck.time) end diff --git a/ElvUI_SLE/modules/chat/options.lua b/ElvUI_SLE/modules/chat/options.lua index 1ef9f0c..52bae50 100644 --- a/ElvUI_SLE/modules/chat/options.lua +++ b/ElvUI_SLE/modules/chat/options.lua @@ -15,7 +15,7 @@ local function UpdateName(reset) end end - E.Options.args.dpe.args.chat.args.nameGroup = { + E.Options.args.sle.args.chat.args.nameGroup = { type = 'group', name = selectedName, guiInline = true, @@ -23,13 +23,13 @@ local function UpdateName(reset) args = {}, } - E.Options.args.dpe.args.chat.args.nameGroup.args.info = { + E.Options.args.sle.args.chat.args.nameGroup.args.info = { order = 1, type = "description", name = L["You can delete selected name from the list here by clicking the button below"], } - E.Options.args.dpe.args.chat.args.nameGroup.args.delete = { + E.Options.args.sle.args.chat.args.nameGroup.args.delete = { order = 2, type = "execute", name = L["Remove Name"], @@ -47,7 +47,7 @@ local function UpdateChannel(reset) end end - E.Options.args.dpe.args.chat.args.channelGroup = { + E.Options.args.sle.args.chat.args.channelGroup = { type = 'group', name = selectedChannel, guiInline = true, @@ -55,13 +55,13 @@ local function UpdateChannel(reset) args = {}, } - E.Options.args.dpe.args.chat.args.channelGroup.args.info = { + E.Options.args.sle.args.chat.args.channelGroup.args.info = { order = 1, type = "description", name = L["You can delete selected channel from the list here by clicking the button below"], } - E.Options.args.dpe.args.chat.args.channelGroup.args.delete = { + E.Options.args.sle.args.chat.args.channelGroup.args.delete = { order = 2, type = "execute", name = L["Remove Channel"], @@ -73,7 +73,7 @@ end function CH:DeleteName() E.private['namelist'][selectedName] = nil selectedName = nil; - E.Options.args.dpe.args.chat.args.nameGroup = nil + E.Options.args.sle.args.chat.args.nameGroup = nil UpdateName() CH:NamesListUpdate() end @@ -81,12 +81,12 @@ end function CH:DeleteChannel() E.private['channellist'][selectedChannel] = nil selectedChannel = nil; - E.Options.args.dpe.args.chat.args.channelGroup = nil + E.Options.args.sle.args.chat.args.channelGroup = nil UpdateChannel() CH:ChannelListUpdate() end -E.Options.args.dpe.args.chat = { +E.Options.args.sle.args.chat = { order = 8, type = "group", name = L["Chat"], @@ -107,8 +107,8 @@ E.Options.args.dpe.args.chat = { type = "toggle", name = L["Chat Fade"], desc = L["Enable/Disable the text fading in the chat window."], - get = function(info) return E.db.dpe.chat.fade end, - set = function(info, value) E.db.dpe.chat.fade = value; CH:FadeUpdate() end, + get = function(info) return E.db.sle.chat.fade end, + set = function(info, value) E.db.sle.chat.fade = value; CH:FadeUpdate() end, }, editboxhistory = { order = 2, @@ -136,27 +136,27 @@ E.Options.args.dpe.args.chat = { order = 2, type = "toggle", name = L["Enable"], - get = function(info) return E.db.dpe.chat.namehighlight end, - set = function(info, value) E.db.dpe.chat.namehighlight = value; end + get = function(info) return E.db.sle.chat.namehighlight end, + set = function(info, value) E.db.sle.chat.namehighlight = value; end }, soundenable = { order = 3, type = "toggle", name = L["Enable Sound"], desc = L["Play sound when your name is mentioned in chat."], - disabled = function() return not E.db.dpe.chat.namehighlight end, - get = function(info) return E.db.dpe.chat.sound end, - set = function(info, value) E.db.dpe.chat.sound = value; end + disabled = function() return not E.db.sle.chat.namehighlight end, + get = function(info) return E.db.sle.chat.sound end, + set = function(info, value) E.db.sle.chat.sound = value; end }, sound = { type = "select", dialogControl = 'LSM30_Sound', order = 4, name = L["Sound"], desc = L["Sound that will play when your name is mentioned in chat."], - disabled = function() return not E.db.dpe.chat.sound or not E.db.dpe.chat.namehighlight end, + disabled = function() return not E.db.sle.chat.sound or not E.db.sle.chat.namehighlight end, values = AceGUIWidgetLSMlists.sound, - get = function(info) return E.db.dpe.chat.warningsound end, - set = function(info, value) E.db.dpe.chat.warningsound = value; end + get = function(info) return E.db.sle.chat.warningsound end, + set = function(info, value) E.db.sle.chat.warningsound = value; end }, timer = { order = 5, @@ -164,7 +164,7 @@ E.Options.args.dpe.args.chat = { name = L["Timer"], desc = L["Sound will be played only once in this number of seconds."], min = 1, max = 20, step = 1, - disabled = function() return not E.db.dpe.chat.sound or not E.db.dpe.chat.namehighlight end, + disabled = function() return not E.db.sle.chat.sound or not E.db.sle.chat.namehighlight end, get = function(info) return E.private.channelcheck.time end, set = function(info, value) E.private.channelcheck.time = value; end, }, @@ -183,7 +183,7 @@ E.Options.args.dpe.args.chat = { order = 8, name = L["Add Name"], desc = L["Add a name different from your current character's to be looked for"], - disabled = function() return not E.db.dpe.chat.namehighlight end, + disabled = function() return not E.db.sle.chat.namehighlight end, get = function(info) return "" end, set = function(info, value) if value:match("^%s*$") then @@ -193,7 +193,7 @@ E.Options.args.dpe.args.chat = { E:Print(L["Name already exists!"]) return end - E.Options.args.dpe.args.chat.args.nameGroup = nil + E.Options.args.sle.args.chat.args.nameGroup = nil E.private['namelist'][value] = {}; E.private['namelist'][value].enable = true UpdateName() @@ -206,7 +206,7 @@ E.Options.args.dpe.args.chat = { name = L['Names list'], get = function(info) return selectedName end, set = function(info, value) selectedName = value; UpdateName(true) end, - disabled = function() return not E.db.dpe.chat.namehighlight end, + disabled = function() return not E.db.sle.chat.namehighlight end, values = function() names = {} for name in pairs(E.private.namelist) do @@ -220,7 +220,7 @@ E.Options.args.dpe.args.chat = { type = "group", name = L["Channels"], guiInline = true, - disabled = function() return not E.db.dpe.chat.namehighlight end, + disabled = function() return not E.db.sle.chat.namehighlight end, args = { say = { order = 1, @@ -329,7 +329,7 @@ E.Options.args.dpe.args.chat = { E:Print(L["Channel already exists!"]) return end - E.Options.args.dpe.args.chat.args.channelGroup = nil + E.Options.args.sle.args.chat.args.channelGroup = nil E.private['channellist'][value] = {}; E.private['channellist'][value].enable = true UpdateChannel() diff --git a/ElvUI_SLE/modules/datatexts/add_panels.lua b/ElvUI_SLE/modules/datatexts/add_panels.lua index 146f72f..88c881a 100644 --- a/ElvUI_SLE/modules/datatexts/add_panels.lua +++ b/ElvUI_SLE/modules/datatexts/add_panels.lua @@ -3,9 +3,9 @@ local DTP = E:NewModule('DTPanels', 'AceHook-3.0', 'AceEvent-3.0'); local LO = E:GetModule('Layout'); --Added function to create new panels -LO.InitializeDPE = LO.Initialize +LO.InitializeSLE = LO.Initialize function LO:Initialize() - LO.InitializeDPE(self) + LO.InitializeSLE(self) DTP:CreateDataPanels() DTP:Resize() @@ -86,61 +86,61 @@ function DTP:CreateDataPanels() end function DTP:Resize() - DP_5:Size(E.db.dpe.datatext.dp5.width, 20) - DP_6:Size(E.db.dpe.datatext.dp6.width, 20) - Bottom_Panel:Size(E.db.dpe.datatext.bottom.width, 20) - DP_1:Size(E.db.dpe.datatext.dp1.width, 20) - DP_4:Size(E.db.dpe.datatext.dp4.width, 20) - DP_3:Size(E.db.dpe.datatext.dp3.width, 20) - DP_2:Size(E.db.dpe.datatext.dp2.width, 20) - Top_Center:Size(E.db.dpe.datatext.top.width, 20) + DP_5:Size(E.db.sle.datatext.dp5.width, 20) + DP_6:Size(E.db.sle.datatext.dp6.width, 20) + Bottom_Panel:Size(E.db.sle.datatext.bottom.width, 20) + DP_1:Size(E.db.sle.datatext.dp1.width, 20) + DP_4:Size(E.db.sle.datatext.dp4.width, 20) + DP_3:Size(E.db.sle.datatext.dp3.width, 20) + DP_2:Size(E.db.sle.datatext.dp2.width, 20) + Top_Center:Size(E.db.sle.datatext.top.width, 20) E:GetModule('DataTexts'):UpdateAllDimensions() end function DTP:ChatResize() - LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.dpe.datatext.chatleft.width, -1) - RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.dpe.datatext.chatright.width - 16, -21) + LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.sle.datatext.chatleft.width, -1) + RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.sle.datatext.chatright.width - 16, -21) end --Showing panels function DTP:ExtraDataBarSetup() - if E.db.dpe.datatext.dp1.enabled then + if E.db.sle.datatext.dp1.enabled then DP_1:Show() else DP_1:Hide() end - if E.db.dpe.datatext.dp2.enabled then + if E.db.sle.datatext.dp2.enabled then DP_2:Show() else DP_2:Hide() end - if E.db.dpe.datatext.dp3.enabled then + if E.db.sle.datatext.dp3.enabled then DP_3:Show() else DP_3:Hide() end - if E.db.dpe.datatext.dp4.enabled then + if E.db.sle.datatext.dp4.enabled then DP_4:Show() else DP_4:Hide() end - if E.db.dpe.datatext.dp5.enabled then + if E.db.sle.datatext.dp5.enabled then DP_5:Show() else DP_5:Hide() end - if E.db.dpe.datatext.dp6.enabled then + if E.db.sle.datatext.dp6.enabled then DP_6:Show() else DP_6:Hide() end - if E.db.dpe.datatext.bottom.enabled then + if E.db.sle.datatext.bottom.enabled then Bottom_Panel:Show() else Bottom_Panel:Hide() diff --git a/ElvUI_SLE/modules/datatexts/options.lua b/ElvUI_SLE/modules/datatexts/options.lua index 654dc8b..c060f76 100644 --- a/ElvUI_SLE/modules/datatexts/options.lua +++ b/ElvUI_SLE/modules/datatexts/options.lua @@ -2,7 +2,7 @@ local DTP = E:GetModule('DTPanels') --Datatext panels -E.Options.args.dpe.args.datatext = { +E.Options.args.sle.args.datatext = { type = "group", name = L["Datatext Panels"], order = 6, @@ -28,18 +28,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.dp1.enabled end, - set = function(info, value) E.db.dpe.datatext.dp1.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.dp1.enabled end, + set = function(info, value) E.db.sle.datatext.dp1.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.dp1.enabled end, + disabled = function() return not E.db.sle.datatext.dp1.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.dp1.width end, - set = function(info, value) E.db.dpe.datatext.dp1.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.dp1.width end, + set = function(info, value) E.db.sle.datatext.dp1.width = value; DTP:Resize() end, }, }, }, @@ -54,18 +54,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.dp2.enabled end, - set = function(info, value) E.db.dpe.datatext.dp2.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.dp2.enabled end, + set = function(info, value) E.db.sle.datatext.dp2.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.dp2.enabled end, + disabled = function() return not E.db.sle.datatext.dp2.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.dp2.width end, - set = function(info, value) E.db.dpe.datatext.dp2.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.dp2.width end, + set = function(info, value) E.db.sle.datatext.dp2.width = value; DTP:Resize() end, }, }, }, @@ -81,8 +81,8 @@ E.Options.args.dpe.args.datatext = { name = L["Enable"], desc = L["Show/Hide this panel."], disabled = true, - get = function(info) return E.db.dpe.datatext.top.enabled end, - set = function(info, value) E.db.dpe.datatext.top.enabled = value; end + get = function(info) return E.db.sle.datatext.top.enabled end, + set = function(info, value) E.db.sle.datatext.top.enabled = value; end }, width = { order = 2, @@ -90,8 +90,8 @@ E.Options.args.dpe.args.datatext = { name = L['Width'], desc = L["Sets size of this panel"], min = 100, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.top.width end, - set = function(info, value) E.db.dpe.datatext.top.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.top.width end, + set = function(info, value) E.db.sle.datatext.top.width = value; DTP:Resize() end, }, }, }, @@ -106,18 +106,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.dp3.enabled end, - set = function(info, value) E.db.dpe.datatext.dp3.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.dp3.enabled end, + set = function(info, value) E.db.sle.datatext.dp3.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.dp3.enabled end, + disabled = function() return not E.db.sle.datatext.dp3.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.dp3.width end, - set = function(info, value) E.db.dpe.datatext.dp3.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.dp3.width end, + set = function(info, value) E.db.sle.datatext.dp3.width = value; DTP:Resize() end, }, }, }, @@ -132,18 +132,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.dp4.enabled end, - set = function(info, value) E.db.dpe.datatext.dp4.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.dp4.enabled end, + set = function(info, value) E.db.sle.datatext.dp4.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.dp4.enabled end, + disabled = function() return not E.db.sle.datatext.dp4.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.dp4.width end, - set = function(info, value) E.db.dpe.datatext.dp4.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.dp4.width end, + set = function(info, value) E.db.sle.datatext.dp4.width = value; DTP:Resize() end, }, }, }, @@ -158,18 +158,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.dp5.enabled end, - set = function(info, value) E.db.dpe.datatext.dp5.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.dp5.enabled end, + set = function(info, value) E.db.sle.datatext.dp5.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.dp5.enabled end, + disabled = function() return not E.db.sle.datatext.dp5.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.dp5.width end, - set = function(info, value) E.db.dpe.datatext.dp5.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.dp5.width end, + set = function(info, value) E.db.sle.datatext.dp5.width = value; DTP:Resize() end, }, }, }, @@ -184,18 +184,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.bottom.enabled end, - set = function(info, value) E.db.dpe.datatext.bottom.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.bottom.enabled end, + set = function(info, value) E.db.sle.datatext.bottom.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.bottom.enabled end, + disabled = function() return not E.db.sle.datatext.bottom.enabled end, min = 100, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.bottom.width end, - set = function(info, value) E.db.dpe.datatext.bottom.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.bottom.width end, + set = function(info, value) E.db.sle.datatext.bottom.width = value; DTP:Resize() end, }, }, }, @@ -210,18 +210,18 @@ E.Options.args.dpe.args.datatext = { type = "toggle", name = L["Enable"], desc = L["Show/Hide this panel."], - get = function(info) return E.db.dpe.datatext.dp6.enabled end, - set = function(info, value) E.db.dpe.datatext.dp6.enabled = value; DTP:ExtraDataBarSetup() end + get = function(info) return E.db.sle.datatext.dp6.enabled end, + set = function(info, value) E.db.sle.datatext.dp6.enabled = value; DTP:ExtraDataBarSetup() end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.dp6.enabled end, + disabled = function() return not E.db.sle.datatext.dp6.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.dp6.width end, - set = function(info, value) E.db.dpe.datatext.dp6.width = value; DTP:Resize() end, + get = function(info) return E.db.sle.datatext.dp6.width end, + set = function(info, value) E.db.sle.datatext.dp6.width = value; DTP:Resize() end, }, }, }, @@ -237,18 +237,18 @@ E.Options.args.dpe.args.datatext = { name = L["Enable"], desc = L["Show/Hide this panel."], disabled = true, - get = function(info) return E.db.dpe.datatext.chatleft.enabled end, - set = function(info, value) E.db.dpe.datatext.chatleft.enabled = value; end + get = function(info) return E.db.sle.datatext.chatleft.enabled end, + set = function(info, value) E.db.sle.datatext.chatleft.enabled = value; end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.chatleft.enabled end, + disabled = function() return not E.db.sle.datatext.chatleft.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.chatleft.width end, - set = function(info, value) E.db.dpe.datatext.chatleft.width = value; DTP:ChatResize() end, + get = function(info) return E.db.sle.datatext.chatleft.width end, + set = function(info, value) E.db.sle.datatext.chatleft.width = value; DTP:ChatResize() end, }, }, }, @@ -264,18 +264,18 @@ E.Options.args.dpe.args.datatext = { name = L["Enable"], desc = L["Show/Hide this panel."], disabled = true, - get = function(info) return E.db.dpe.datatext.chatright.enabled end, - set = function(info, value) E.db.dpe.datatext.chatright.enabled = value; end + get = function(info) return E.db.sle.datatext.chatright.enabled end, + set = function(info, value) E.db.sle.datatext.chatright.enabled = value; end }, width = { order = 2, type = "range", name = L['Width'], desc = L["Sets size of this panel"], - disabled = function() return not E.db.dpe.datatext.chatright.enabled end, + disabled = function() return not E.db.sle.datatext.chatright.enabled end, min = 300, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.dpe.datatext.chatright.width end, - set = function(info, value) E.db.dpe.datatext.chatright.width = value; DTP:ChatResize() end, + get = function(info) return E.db.sle.datatext.chatright.width end, + set = function(info, value) E.db.sle.datatext.chatright.width = value; DTP:ChatResize() end, }, }, }, diff --git a/ElvUI_SLE/modules/exprepbar/exprepbar.lua b/ElvUI_SLE/modules/exprepbar/exprepbar.lua index b2a9394..8784c2e 100644 --- a/ElvUI_SLE/modules/exprepbar/exprepbar.lua +++ b/ElvUI_SLE/modules/exprepbar/exprepbar.lua @@ -174,7 +174,7 @@ function M:UpdateExpBar(event) bar:SetValue(cur - 1 >= 0 and cur - 1 or 0) bar:SetValue(cur) -- enable text - if E.db.dpe.xprepinfo.enabled then + if E.db.sle.xprepinfo.enabled then M:CreateExpTextString() end end @@ -234,7 +234,7 @@ function M:UpdateRepBar(event) bar:SetMinMaxValues(min, max) bar:SetValue(value) -- enable text - if E.db.dpe.xprepinfo.enabled then + if E.db.sle.xprepinfo.enabled then M:CreateRepTextString() end end @@ -260,7 +260,7 @@ function M:UpdateExpRepBarAnchor() if UpperReputationBar then UpperReputationBar:Size(BAR_WIDTH + RBRWidth, BAR_HEIGHT) - if E.db.dpe.xprepinfo.enabled then + if E.db.sle.xprepinfo.enabled then M:CreateRepTextString() else UpperReputationBar.txt:SetText('') @@ -269,7 +269,7 @@ function M:UpdateExpRepBarAnchor() if UpperExperienceBar then UpperExperienceBar:Size(BAR_WIDTH + RBRWidth, BAR_HEIGHT) - if E.db.dpe.xprepinfo.enabled then + if E.db.sle.xprepinfo.enabled then M:CreateExpTextString() else UpperExperienceBar.txt:SetText('') @@ -293,8 +293,8 @@ function M:CreateExpTextString() UpperExperienceBar.rested:SetValue(0) end - if E.db.general.expRepPos == "TOP_SCREEN" and E.db.dpe.xprepinfo.xprepdet then - if E.db.dpe.xprepinfo.xprest and rested and rested > 0 then + if E.db.general.expRepPos == "TOP_SCREEN" and E.db.sle.xprepinfo.xprepdet then + if E.db.sle.xprepinfo.xprest and rested and rested > 0 then UpperExperienceBar.txt:SetText(LEVEL_ABBR..' '..string.format('%s XP: %d / %d (%d%%)', UnitLevel('player'), cur, max, cur/max * 100)..' + '..L['Rested:']..xprest) else UpperExperienceBar.txt:SetText(LEVEL_ABBR..' '..string.format('%s XP: %d / %d (%d%%)', UnitLevel('player'), cur, max, cur/max * 100)) @@ -310,8 +310,8 @@ function M:CreateRepTextString() if not name then return else - if E.db.general.expRepPos == "TOP_SCREEN" and E.db.dpe.xprepinfo.xprepdet then - if E.db.dpe.xprepinfo.repreact then + if E.db.general.expRepPos == "TOP_SCREEN" and E.db.sle.xprepinfo.xprepdet then + if E.db.sle.xprepinfo.repreact then UpperReputationBar.txt:SetText(name..': '..format('%d / %d ('.._G['FACTION_STANDING_LABEL'..reaction]..' '..'%d%%)', value - min, max - min, (value - min) / (max - min) * 100)) else UpperReputationBar.txt:SetText(name..': '..format('%d / %d (%d%%)', value - min, max - min, (value - min) / (max - min) * 100)) diff --git a/ElvUI_SLE/modules/exprepbar/options.lua b/ElvUI_SLE/modules/exprepbar/options.lua index 44162bb..26f04ea 100644 --- a/ElvUI_SLE/modules/exprepbar/options.lua +++ b/ElvUI_SLE/modules/exprepbar/options.lua @@ -2,7 +2,7 @@ local M = E:GetModule('Misc') --Options for Exp/Rep text -E.Options.args.dpe.args.exprep = { +E.Options.args.sle.args.exprep = { type = "group", name = L["Xp-Rep Text"], order = 2, @@ -23,16 +23,16 @@ E.Options.args.dpe.args.exprep = { type = "toggle", name = L["Enable"], desc = L["Show/Hide XP-Rep Info."], - get = function(info) return E.db.dpe.xprepinfo.enabled end, - set = function(info, value) E.db.dpe.xprepinfo.enabled = value; M:UpdateExpRepBarAnchor() end + get = function(info) return E.db.sle.xprepinfo.enabled end, + set = function(info, value) E.db.sle.xprepinfo.enabled = value; M:UpdateExpRepBarAnchor() end }, xprepdet = { order = 2, type = "toggle", name = L["Detailed"], desc = L["More XP-Rep Info. Shown only when bars are on top."], - get = function(info) return E.db.dpe.xprepinfo.xprepdet end, - set = function(info, value) E.db.dpe.xprepinfo.xprepdet = value; M:UpdateExpRepBarAnchor() end + get = function(info) return E.db.sle.xprepinfo.xprepdet end, + set = function(info, value) E.db.sle.xprepinfo.xprepdet = value; M:UpdateExpRepBarAnchor() end }, }, }, @@ -41,23 +41,23 @@ E.Options.args.dpe.args.exprep = { type = "group", name = L["Detailed Options"], guiInline = true, - disabled = function() return not E.db.dpe.xprepinfo.xprepdet end, + disabled = function() return not E.db.sle.xprepinfo.xprepdet end, args = { repreact = { order = 1, type = "toggle", name = L["Reaction Name"], desc = L["Show/Hide Reaction status on bar."], - get = function(info) return E.db.dpe.xprepinfo.repreact end, - set = function(info, value) E.db.dpe.xprepinfo.repreact = value; M:UpdateExpRepBarAnchor() end + get = function(info) return E.db.sle.xprepinfo.repreact end, + set = function(info, value) E.db.sle.xprepinfo.repreact = value; M:UpdateExpRepBarAnchor() end }, xprest = { order = 2, type = "toggle", name = L["Rested Value"], desc = L["Show/Hide Rested value."], - get = function(info) return E.db.dpe.xprepinfo.xprest end, - set = function(info, value) E.db.dpe.xprepinfo.xprest = value; M:UpdateExpRepBarAnchor() end + get = function(info) return E.db.sle.xprepinfo.xprest end, + set = function(info, value) E.db.sle.xprepinfo.xprest = value; M:UpdateExpRepBarAnchor() end }, }, }, diff --git a/ElvUI_SLE/modules/marks/marks.lua b/ElvUI_SLE/modules/marks/marks.lua index 05d99d1..b5b1ea6 100644 --- a/ElvUI_SLE/modules/marks/marks.lua +++ b/ElvUI_SLE/modules/marks/marks.lua @@ -115,14 +115,14 @@ end --Setting/updating buttons' size function RM:FrameButtonsSize() - m1:Size(E.db.dpe.marks.size) - m2:Size(E.db.dpe.marks.size) - m3:Size(E.db.dpe.marks.size) - m4:Size(E.db.dpe.marks.size) - m5:Size(E.db.dpe.marks.size) - m6:Size(E.db.dpe.marks.size) - m7:Size(E.db.dpe.marks.size) - m8:Size(E.db.dpe.marks.size) + m1:Size(E.db.sle.marks.size) + m2:Size(E.db.sle.marks.size) + m3:Size(E.db.sle.marks.size) + m4:Size(E.db.sle.marks.size) + m5:Size(E.db.sle.marks.size) + m6:Size(E.db.sle.marks.size) + m7:Size(E.db.sle.marks.size) + m8:Size(E.db.sle.marks.size) end --Setting growth direction for buttons @@ -136,9 +136,9 @@ function RM:FrameButtonsGrowth() m7:ClearAllPoints() m8:ClearAllPoints() - if E.db.dpe.marks.growth == "RIGHT" then - mark_menu:SetWidth(8 * E.db.dpe.marks.size + 11) - mark_menu:SetHeight(E.db.dpe.marks.size + 4) + if E.db.sle.marks.growth == "RIGHT" then + mark_menu:SetWidth(8 * E.db.sle.marks.size + 11) + mark_menu:SetHeight(E.db.sle.marks.size + 4) m1:Point('LEFT', Mark_Menu, 'LEFT', 2, 0) m2:Point('LEFT', m1, 'RIGHT', 1, 0) m3:Point('LEFT', m2, 'RIGHT', 1, 0) @@ -147,9 +147,9 @@ function RM:FrameButtonsGrowth() m6:Point('LEFT', m5, 'RIGHT', 1, 0) m7:Point('LEFT', m6, 'RIGHT', 1, 0) m8:Point('LEFT', m7, 'RIGHT', 1, 0) - elseif E.db.dpe.marks.growth == "LEFT" then - mark_menu:SetWidth(8 * E.db.dpe.marks.size + 11) - mark_menu:SetHeight(E.db.dpe.marks.size + 4) + elseif E.db.sle.marks.growth == "LEFT" then + mark_menu:SetWidth(8 * E.db.sle.marks.size + 11) + mark_menu:SetHeight(E.db.sle.marks.size + 4) m1:Point('RIGHT', Mark_Menu, 'RIGHT', -2, 0) m2:Point('RIGHT', m1, 'LEFT', -1, 0) m3:Point('RIGHT', m2, 'LEFT', -1, 0) @@ -158,9 +158,9 @@ function RM:FrameButtonsGrowth() m6:Point('RIGHT', m5, 'LEFT', -1, 0) m7:Point('RIGHT', m6, 'LEFT', -1, 0) m8:Point('RIGHT', m7, 'LEFT', -1, 0) - elseif E.db.dpe.marks.growth == "UP" then - mark_menu:SetHeight(8 * E.db.dpe.marks.size + 11) - mark_menu:SetWidth(E.db.dpe.marks.size + 4) + elseif E.db.sle.marks.growth == "UP" then + mark_menu:SetHeight(8 * E.db.sle.marks.size + 11) + mark_menu:SetWidth(E.db.sle.marks.size + 4) m1:Point('BOTTOM', Mark_Menu, 'BOTTOM', 0, 2) m2:Point('BOTTOM', m1, 'TOP', 0, 1) m3:Point('BOTTOM', m2, 'TOP', 0, 1) @@ -169,9 +169,9 @@ function RM:FrameButtonsGrowth() m6:Point('BOTTOM', m5, 'TOP', 0, 1) m7:Point('BOTTOM', m6, 'TOP', 0, 1) m8:Point('BOTTOM', m7, 'TOP', 0, 1) - elseif E.db.dpe.marks.growth == "DOWN" then - mark_menu:SetHeight(8 * E.db.dpe.marks.size + 11) - mark_menu:SetWidth(E.db.dpe.marks.size + 4) + elseif E.db.sle.marks.growth == "DOWN" then + mark_menu:SetHeight(8 * E.db.sle.marks.size + 11) + mark_menu:SetWidth(E.db.sle.marks.size + 4) m1:Point('TOP', Mark_Menu, 'TOP', 0, -2) m2:Point('TOP', m1, 'BOTTOM', 0, -1) m3:Point('TOP', m2, 'BOTTOM', 0, -1) @@ -185,7 +185,7 @@ end --Visibility/enable check function RM:UpdateVisibility() - if E.db.dpe.marks.enabled then + if E.db.sle.marks.enabled then mark_menu:Show() else mark_menu:Hide() diff --git a/ElvUI_SLE/modules/marks/options.lua b/ElvUI_SLE/modules/marks/options.lua index abeb9a6..f359f6b 100644 --- a/ElvUI_SLE/modules/marks/options.lua +++ b/ElvUI_SLE/modules/marks/options.lua @@ -2,7 +2,7 @@ local RM = E:GetModule('RaidMarks') --Main options group -E.Options.args.dpe.args.marks = { +E.Options.args.sle.args.marks = { order = 5, type = "group", name = L["Raid Marks"], @@ -18,8 +18,8 @@ E.Options.args.dpe.args.marks = { type = "toggle", name = L["Enable"], desc = L["Show/Hide raid marks."], - get = function(info) return E.db.dpe.marks.enabled end, - set = function(info, value) E.db.dpe.marks.enabled = value; RM:UpdateVisibility() end + get = function(info) return E.db.sle.marks.enabled end, + set = function(info, value) E.db.sle.marks.enabled = value; RM:UpdateVisibility() end }, size = { order = 3, @@ -27,16 +27,16 @@ E.Options.args.dpe.args.marks = { name = L['Size'], desc = L["Sets size of buttons"], min = 15, max = 30, step = 1, - get = function(info) return E.db.dpe.marks.size end, - set = function(info, value) E.db.dpe.marks.size = value; RM:FrameButtonsGrowth(); RM:FrameButtonsSize() end, + get = function(info) return E.db.sle.marks.size end, + set = function(info, value) E.db.sle.marks.size = value; RM:FrameButtonsGrowth(); RM:FrameButtonsSize() end, }, growth = { order = 4, type = "select", name = L["Direction"], desc = L["Change the direction of buttons growth from the skull marker"], - get = function(info) return E.db.dpe.marks.growth end, - set = function(info, value) E.db.dpe.marks.growth = value; RM:FrameButtonsGrowth() end, + get = function(info) return E.db.sle.marks.growth end, + set = function(info, value) E.db.sle.marks.growth = value; RM:FrameButtonsGrowth() end, values = { ['RIGHT'] = L["Right"], ['LEFT'] = L["Left"], diff --git a/ElvUI_SLE/modules/microbar/options.lua b/ElvUI_SLE/modules/microbar/options.lua index bb2d76b..494469c 100644 --- a/ElvUI_SLE/modules/microbar/options.lua +++ b/ElvUI_SLE/modules/microbar/options.lua @@ -2,7 +2,7 @@ local MB = E:GetModule('Microbar') --Microbar -E.Options.args.dpe.args.microbar = { +E.Options.args.sle.args.microbar = { type = "group", name = L["Microbar"], get = function(info) return E.db.microbar[ info[#info] ] end, diff --git a/ElvUI_SLE/modules/raidutility/options.lua b/ElvUI_SLE/modules/raidutility/options.lua index 6df752f..0d20429 100644 --- a/ElvUI_SLE/modules/raidutility/options.lua +++ b/ElvUI_SLE/modules/raidutility/options.lua @@ -2,7 +2,7 @@ local RU = E:GetModule('RaidUtility') --Raid Utility -E.Options.args.dpe.args.raidutil = { +E.Options.args.sle.args.raidutil = { order = 10, type = 'group', name = L["Raid Utility"], @@ -23,8 +23,8 @@ E.Options.args.dpe.args.raidutil = { name = L["X Position"], desc = L["Sets X position of Raid Utility button."], min = 0, max = E.screenwidth, step = 1, - get = function(info) return E.db.dpe.raidutil.xpos end, - set = function(info, value) E.db.dpe.raidutil.xpos = value; RU:MoveButton() end, + get = function(info) return E.db.sle.raidutil.xpos end, + set = function(info, value) E.db.sle.raidutil.xpos = value; RU:MoveButton() end, }, ypos = { order = 4, @@ -32,8 +32,8 @@ E.Options.args.dpe.args.raidutil = { name = L["Y Position"], desc = L["Sets Y position of Raid Utility button."], min = 0, max = E.screenheight, step = 1, - get = function(info) return E.db.dpe.raidutil.ypos end, - set = function(info, value) E.db.dpe.raidutil.ypos = value; RU:MoveButton() end, + get = function(info) return E.db.sle.raidutil.ypos end, + set = function(info, value) E.db.sle.raidutil.ypos = value; RU:MoveButton() end, }, }, } \ No newline at end of file diff --git a/ElvUI_SLE/modules/raidutility/raidutility.lua b/ElvUI_SLE/modules/raidutility/raidutility.lua index b192248..ac8de03 100644 --- a/ElvUI_SLE/modules/raidutility/raidutility.lua +++ b/ElvUI_SLE/modules/raidutility/raidutility.lua @@ -7,13 +7,13 @@ E.RaidUtility = RU --Moved RU down cause of top datatext panels function RU:MoveButton() ShowButton:ClearAllPoints() - ShowButton:Point("CENTER", E.UIParent, "BOTTOMLEFT", E.db.dpe.raidutil.xpos, E.db.dpe.raidutil.ypos) + ShowButton:Point("CENTER", E.UIParent, "BOTTOMLEFT", E.db.sle.raidutil.xpos, E.db.sle.raidutil.ypos) end --For moving raid utility button -M.InitializeDPE = M.Initialize +M.InitializeSLE = M.Initialize function M:Initialize() - M.InitializeDPE(self) + M.InitializeSLE(self) RU:MoveButton() end diff --git a/ElvUI_SLE/modules/skins/addons/dbm.lua b/ElvUI_SLE/modules/skins/addons/dbm.lua index 3bf5e09..b727ea3 100644 --- a/ElvUI_SLE/modules/skins/addons/dbm.lua +++ b/ElvUI_SLE/modules/skins/addons/dbm.lua @@ -104,7 +104,7 @@ local function SkinBars(self) name:Point("LEFT", frame, "LEFT", 4, 0) name:SetWidth(165) name:SetHeight(8) - name:FontTemplate(nil, E.private.dpe.dbm.size, 'OUTLINE') + name:FontTemplate(nil, E.private.sle.dbm.size, 'OUTLINE') name:SetJustifyH("LEFT") name.SetFont = E.noop name.styled=true @@ -113,7 +113,7 @@ local function SkinBars(self) if not timer.styled then timer:ClearAllPoints() timer:Point("RIGHT", frame, "RIGHT", -4, 0) - timer:FontTemplate(nil, E.private.dpe.dbm.size, 'OUTLINE') + timer:FontTemplate(nil, E.private.sle.dbm.size, 'OUTLINE') timer:SetJustifyH("RIGHT") timer.SetFont = E.noop timer.styled=true @@ -194,7 +194,7 @@ local SkinBoss=function() if not name.styled then name:ClearAllPoints() name:Point("LEFT", bar, "LEFT", 4, 0) - name:FontTemplate(nil, E.private.dpe.dbm.size, 'OUTLINE') + name:FontTemplate(nil, E.private.sle.dbm.size, 'OUTLINE') name:SetJustifyH("LEFT") name:SetShadowColor(0, 0, 0, 0) name.styled=true @@ -203,7 +203,7 @@ local SkinBoss=function() if not timer.styled then timer:ClearAllPoints() timer:Point("RIGHT", bar, "RIGHT", -4, 0) - timer:FontTemplate(nil, E.private.dpe.dbm.size, 'OUTLINE') + timer:FontTemplate(nil, E.private.sle.dbm.size, 'OUTLINE') timer:SetJustifyH("RIGHT") timer:SetShadowColor(0, 0, 0, 0) timer.styled=true diff --git a/ElvUI_SLE/modules/skins/addons/skada.lua b/ElvUI_SLE/modules/skins/addons/skada.lua index ce7b6c4..61cc9a7 100644 --- a/ElvUI_SLE/modules/skins/addons/skada.lua +++ b/ElvUI_SLE/modules/skins/addons/skada.lua @@ -56,7 +56,7 @@ local function LoadSkin() win.bargroup.button:SetBackdropColor(unpack(E["media"].backdropcolor)) skada:SetBackdrop(nil) - if E.private.dpe.skadaback then + if E.private.sle.skadaback then if not skada.backdrop then skada:CreateBackdrop('Default') end diff --git a/ElvUI_SLE/modules/skins/options.lua b/ElvUI_SLE/modules/skins/options.lua index 1217481..15311e0 100644 --- a/ElvUI_SLE/modules/skins/options.lua +++ b/ElvUI_SLE/modules/skins/options.lua @@ -1,6 +1,6 @@ local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, ProfileDB, GlobalDB -E.Options.args.dpe.args.skins = { +E.Options.args.sle.args.skins = { order = 7, type = "group", name = L["Skins"], @@ -17,8 +17,8 @@ E.Options.args.dpe.args.skins = { name = L['Font Size'], desc = L["Sets font size on DBM bars"], min = 8, max = 14, step = 1, - get = function(info) return E.private.dpe.dbm.size end, - set = function(info, value) E.private.dpe.dbm.size = value; StaticPopup_Show("PRIVATE_RL") end, + get = function(info) return E.private.sle.dbm.size end, + set = function(info, value) E.private.sle.dbm.size = value; StaticPopup_Show("PRIVATE_RL") end, }, }, }, @@ -33,8 +33,8 @@ E.Options.args.dpe.args.skins = { type = "toggle", name = L["Skada Backdrop"], desc = L["Show/Hide Skada backdrop."], - get = function(info) return E.private.dpe.skadaback end, - set = function(info, value) E.private.dpe.skadaback = value; StaticPopup_Show("PRIVATE_RL") end + get = function(info) return E.private.sle.skadaback end, + set = function(info, value) E.private.sle.skadaback = value; StaticPopup_Show("PRIVATE_RL") end }, }, }, diff --git a/ElvUI_SLE/modules/uibuttons/options.lua b/ElvUI_SLE/modules/uibuttons/options.lua index f5ef8a6..e38b42d 100644 --- a/ElvUI_SLE/modules/uibuttons/options.lua +++ b/ElvUI_SLE/modules/uibuttons/options.lua @@ -2,7 +2,7 @@ local UB = E:GetModule('UIButtons') --UI Buttons -E.Options.args.dpe.args.uibuttons = { +E.Options.args.sle.args.uibuttons = { type = "group", name = L["UI Buttons"], order = 3, @@ -17,15 +17,15 @@ E.Options.args.dpe.args.uibuttons = { type = "toggle", name = L["Enable"], desc = L["Show/Hide UI buttons."], - get = function(info) return E.db.dpe.uibuttons.enable end, - set = function(info, value) E.db.dpe.uibuttons.enable = value; UB:Start() end + get = function(info) return E.db.sle.uibuttons.enable end, + set = function(info, value) E.db.sle.uibuttons.enable = value; UB:Start() end }, options = { type = "group", name = L["General"], order = 4, guiInline = true, - disabled = function() return not E.db.dpe.uibuttons.enable end, + disabled = function() return not E.db.sle.uibuttons.enable end, args = { size = { order = 1, @@ -33,16 +33,16 @@ E.Options.args.dpe.args.uibuttons = { name = L['Size'], desc = L["Sets size of buttons"], min = 12, max = 25, step = 1, - get = function(info) return E.db.dpe.uibuttons.size end, - set = function(info, value) E.db.dpe.uibuttons.size = value; UB:FrameSize() end, + get = function(info) return E.db.sle.uibuttons.size end, + set = function(info, value) E.db.sle.uibuttons.size = value; UB:FrameSize() end, }, mouse = { order = 2, type = "toggle", name = L["Mouse over"], desc = L["Show on mouse over."], - get = function(info) return E.db.dpe.uibuttons.mouse end, - set = function(info, value) E.db.dpe.uibuttons.mouse = value; end + get = function(info) return E.db.sle.uibuttons.mouse end, + set = function(info, value) E.db.sle.uibuttons.mouse = value; end }, position = { order = 10, @@ -53,8 +53,8 @@ E.Options.args.dpe.args.uibuttons = { ["uib_hor"] = L['Horizontal'], ["uib_vert"] = L['Vertical'], }, - get = function(info) return E.db.dpe.uibuttons.position end, - set = function(info, value) E.db.dpe.uibuttons.position = value; UB:Positioning(); UB:MoverSize() end, + get = function(info) return E.db.sle.uibuttons.position end, + set = function(info, value) E.db.sle.uibuttons.position = value; UB:Positioning(); UB:MoverSize() end, }, }, }, diff --git a/ElvUI_SLE/modules/uibuttons/uibuttons.lua b/ElvUI_SLE/modules/uibuttons/uibuttons.lua index 824ede7..ebeb105 100644 --- a/ElvUI_SLE/modules/uibuttons/uibuttons.lua +++ b/ElvUI_SLE/modules/uibuttons/uibuttons.lua @@ -139,19 +139,19 @@ function UB:CreateButtons() end function UB:FrameSize() - if E.db.dpe.uibuttons.position == "uib_vert" then - UIBFrame:SetWidth(E.db.dpe.uibuttons.size + 8) - UIBFrame:SetHeight((E.db.dpe.uibuttons.size + 5) * 5 + 3) + if E.db.sle.uibuttons.position == "uib_vert" then + UIBFrame:SetWidth(E.db.sle.uibuttons.size + 8) + UIBFrame:SetHeight((E.db.sle.uibuttons.size + 5) * 5 + 3) else - UIBFrame:SetWidth((E.db.dpe.uibuttons.size + 5) * 5 + 3) - UIBFrame:SetHeight(E.db.dpe.uibuttons.size + 8) + UIBFrame:SetWidth((E.db.sle.uibuttons.size + 5) * 5 + 3) + UIBFrame:SetHeight(E.db.sle.uibuttons.size + 8) end - Cbutton:Size(E.db.dpe.uibuttons.size) - Rbutton:Size(E.db.dpe.uibuttons.size) - Mbutton:Size(E.db.dpe.uibuttons.size) - Bbutton:Size(E.db.dpe.uibuttons.size) - Abutton:Size(E.db.dpe.uibuttons.size) + Cbutton:Size(E.db.sle.uibuttons.size) + Rbutton:Size(E.db.sle.uibuttons.size) + Mbutton:Size(E.db.sle.uibuttons.size) + Bbutton:Size(E.db.sle.uibuttons.size) + Abutton:Size(E.db.sle.uibuttons.size) UB:Positioning() end @@ -163,7 +163,7 @@ function UB:Positioning() Bbutton:ClearAllPoints() Abutton:ClearAllPoints() --position check - if E.db.dpe.uibuttons.position == "uib_vert" then + if E.db.sle.uibuttons.position == "uib_vert" then Cbutton:Point("TOP", UIBFrame, "TOP", 0, -4) Rbutton:Point("TOP", Cbutton, "BOTTOM", 0, -5) Mbutton:Point("TOP", Rbutton, "BOTTOM", 0, -5) @@ -179,17 +179,17 @@ function UB:Positioning() end function UB:MoverSize() - if E.db.dpe.uibuttons.position == "uib_vert" then - UIBFrame.mover:SetWidth(E.db.dpe.uibuttons.size + 8) - UIBFrame.mover:SetHeight((E.db.dpe.uibuttons.size + 5) * 5 + 3) + if E.db.sle.uibuttons.position == "uib_vert" then + UIBFrame.mover:SetWidth(E.db.sle.uibuttons.size + 8) + UIBFrame.mover:SetHeight((E.db.sle.uibuttons.size + 5) * 5 + 3) else - UIBFrame.mover:SetWidth((E.db.dpe.uibuttons.size + 5) * 5 + 3) - UIBFrame.mover:SetHeight(E.db.dpe.uibuttons.size + 8) + UIBFrame.mover:SetWidth((E.db.sle.uibuttons.size + 5) * 5 + 3) + UIBFrame.mover:SetHeight(E.db.sle.uibuttons.size + 8) end end function UB:Start() - if E.db.dpe.uibuttons.enable then + if E.db.sle.uibuttons.enable then UIBFrame:Show() else UIBFrame:Hide() @@ -197,7 +197,7 @@ function UB:Start() end function UB:Mouseover() - if E.db.dpe.uibuttons.mouse then + if E.db.sle.uibuttons.mouse then if (MouseIsOver(UIBFrame)) then UIBFrame:SetAlpha(1) else diff --git a/ElvUI_SLE/modules/unitframes/options.lua b/ElvUI_SLE/modules/unitframes/options.lua index be5ed61..48dcebe 100644 --- a/ElvUI_SLE/modules/unitframes/options.lua +++ b/ElvUI_SLE/modules/unitframes/options.lua @@ -13,7 +13,7 @@ local positionValues = { BOTTOM = 'BOTTOM', }; -E.Options.args.dpe.args.unitframes = { +E.Options.args.sle.args.unitframes = { type = "group", name = L["UnitFrames"], order = 1, @@ -39,16 +39,16 @@ E.Options.args.dpe.args.unitframes = { type = "toggle", name = L["Full value"], desc = L["Enabling this will show exact hp numbers on player, focus, focus target, target of target, party, boss, arena and raid frames."], - get = function(info) return E.db.dpe.unitframes.normal.health end, - set = function(info, value) E.db.dpe.unitframes.normal.health = value; UF:Update_AllFrames() end + get = function(info) return E.db.sle.unitframes.normal.health end, + set = function(info, value) E.db.sle.unitframes.normal.health = value; UF:Update_AllFrames() end }, reverse = { order = 2, type = "toggle", name = L["Target full value"], desc = L["Enabling this will show exact hp numbers on target frame."], - get = function(info) return E.db.dpe.unitframes.reverse.health end, - set = function(info, value) E.db.dpe.unitframes.reverse.health = value; UF:Update_AllFrames() end + get = function(info) return E.db.sle.unitframes.reverse.health end, + set = function(info, value) E.db.sle.unitframes.reverse.health = value; UF:Update_AllFrames() end }, }, }, @@ -63,16 +63,16 @@ E.Options.args.dpe.args.unitframes = { type = "toggle", name = L["Normal Frames"], desc = L["Enabling this will show exact power numbers on target of target, focus and focus target frames."], - get = function(info) return E.db.dpe.unitframes.normal.mana end, - set = function(info, value) E.db.dpe.unitframes.normal.mana = value; UF:Update_AllFrames() end + get = function(info) return E.db.sle.unitframes.normal.mana end, + set = function(info, value) E.db.sle.unitframes.normal.mana = value; UF:Update_AllFrames() end }, reverse = { order = 2, type = "toggle", name = L["Reversed Frames"], desc = L["Enabling this will show exact power numbers on player, boss, arena, party and raid frames."], - get = function(info) return E.db.dpe.unitframes.reverse.mana end, - set = function(info, value) E.db.dpe.unitframes.reverse.mana = value; UF:Update_AllFrames() end + get = function(info) return E.db.sle.unitframes.reverse.mana end, + set = function(info, value) E.db.sle.unitframes.reverse.mana = value; UF:Update_AllFrames() end }, }, }, @@ -87,16 +87,16 @@ E.Options.args.dpe.args.unitframes = { type = "toggle", name = L["PvP text on mouse over"], desc = L["Show PvP text on mouse over player frame."], - get = function(info) return E.db.dpe.pvp.mouse end, - set = function(info, value) E.db.dpe.pvp.mouse = value; end, + get = function(info) return E.db.sle.pvp.mouse end, + set = function(info, value) E.db.sle.pvp.mouse = value; end, }, pvp = { order = 3, type = "select", name = L["PvP Position"], desc = L["Set the point to show pvp text"], - get = function(info) return E.db.dpe.pvp.pos end, - set = function(info, value) E.db.dpe.pvp.pos = value; end, + get = function(info) return E.db.sle.pvp.pos end, + set = function(info, value) E.db.sle.pvp.pos = value; end, values = positionValues }, combatico = { @@ -104,8 +104,8 @@ E.Options.args.dpe.args.unitframes = { type = "select", name = L["Combat Position"], desc = L["Set the point to show combat icon"], - get = function(info) return E.db.dpe.combatico.pos end, - set = function(info, value) E.db.dpe.combatico.pos = value; UF:Update_CombatIndicator() end, + get = function(info) return E.db.sle.combatico.pos end, + set = function(info, value) E.db.sle.combatico.pos = value; UF:Update_CombatIndicator() end, values = positionValues }, }, @@ -114,7 +114,7 @@ E.Options.args.dpe.args.unitframes = { } if E.myclass == "PALADIN" or E.myclass == "WARLOCK" or E.myclass == "DEATHKNIGHT" or E.myclass == "SHAMAN" or E.myclass == "DRUID" then -E.Options.args.dpe.args.unitframes.args.classbar = { +E.Options.args.sle.args.unitframes.args.classbar = { order = 6, type = "group", name = L["Classbar Offset"], diff --git a/ElvUI_SLE/modules/unitframes/units/arena.lua b/ElvUI_SLE/modules/unitframes/units/arena.lua index 04c5bf3..e900ab0 100644 --- a/ElvUI_SLE/modules/unitframes/units/arena.lua +++ b/ElvUI_SLE/modules/unitframes/units/arena.lua @@ -7,9 +7,9 @@ local _, ns = ... local ElvUF = ns.oUF --Here and in other units, moving power text to power bar -UF.Update_ArenaFramesDPE = UF.Update_ArenaFrames +UF.Update_ArenaFramesSLE = UF.Update_ArenaFrames function UF:Update_ArenaFrames(frame, db) - self:Update_ArenaFramesDPE(frame, db) + self:Update_ArenaFramesSLE(frame, db) local power = frame.Power --Text diff --git a/ElvUI_SLE/modules/unitframes/units/boss.lua b/ElvUI_SLE/modules/unitframes/units/boss.lua index 6f64d68..0dfbc99 100644 --- a/ElvUI_SLE/modules/unitframes/units/boss.lua +++ b/ElvUI_SLE/modules/unitframes/units/boss.lua @@ -6,9 +6,9 @@ local abs = math.abs local _, ns = ... local ElvUF = ns.oUF -UF.Update_BossFramesDPE = UF.Update_BossFrames +UF.Update_BossFramesSLE = UF.Update_BossFrames function UF:Update_BossFrames(frame, db) - self:Update_BossFramesDPE(frame, db) + self:Update_BossFramesSLE(frame, db) local power = frame.Power --Text diff --git a/ElvUI_SLE/modules/unitframes/units/focus.lua b/ElvUI_SLE/modules/unitframes/units/focus.lua index ce33d06..7af73dc 100644 --- a/ElvUI_SLE/modules/unitframes/units/focus.lua +++ b/ElvUI_SLE/modules/unitframes/units/focus.lua @@ -6,9 +6,9 @@ local abs = math.abs local _, ns = ... local ElvUF = ns.oUF -UF.Update_FocusFrameDPE = UF.Update_FocusFrame +UF.Update_FocusFrameSLE = UF.Update_FocusFrame function UF:Update_FocusFrame(frame, db) - self:Update_FocusFrameDPE(frame, db) + self:Update_FocusFrameSLE(frame, db) local power = frame.Power --Text diff --git a/ElvUI_SLE/modules/unitframes/units/player.lua b/ElvUI_SLE/modules/unitframes/units/player.lua index 1d57a81..9688d74 100644 --- a/ElvUI_SLE/modules/unitframes/units/player.lua +++ b/ElvUI_SLE/modules/unitframes/units/player.lua @@ -23,14 +23,14 @@ local CAN_HAVE_CLASSBAR = (E.myclass == "PALADIN" or E.myclass == "SHAMAN" or E. function UF:Update_CombatIndicator() local CombatText = ElvUF_Player.Combat - local x, y = self:GetPositionOffset(E.db.dpe.combatico.pos) + local x, y = self:GetPositionOffset(E.db.sle.combatico.pos) CombatText:ClearAllPoints() - CombatText:Point(E.db.dpe.combatico.pos, ElvUF_Player.Health, E.db.dpe.combatico.pos, x, x) + CombatText:Point(E.db.sle.combatico.pos, ElvUF_Player.Health, E.db.sle.combatico.pos, x, x) end -UF.Update_PlayerFrameDPE = UF.Update_PlayerFrame +UF.Update_PlayerFrameSLE = UF.Update_PlayerFrame function UF:Update_PlayerFrame(frame, db) - UF:Update_PlayerFrameDPE(frame, db) + UF:Update_PlayerFrameSLE(frame, db) local health = frame.Health local power = frame.Power diff --git a/ElvUI_SLE/modules/unitframes/units/target.lua b/ElvUI_SLE/modules/unitframes/units/target.lua index 77e7a9c..7174300 100644 --- a/ElvUI_SLE/modules/unitframes/units/target.lua +++ b/ElvUI_SLE/modules/unitframes/units/target.lua @@ -6,9 +6,9 @@ local abs = math.abs local _, ns = ... local ElvUF = ns.oUF -UF.Update_TargetFrameDPE = UF.Update_TargetFrame +UF.Update_TargetFrameSLE = UF.Update_TargetFrame function UF:Update_TargetFrame(frame, db) - self:Update_TargetFrameDPE(frame, db) + self:Update_TargetFrameSLE(frame, db) local power = frame.Power --Text diff --git a/ElvUI_SLE/modules/unitframes/units/targettarget.lua b/ElvUI_SLE/modules/unitframes/units/targettarget.lua index 5b02031..852dfa0 100644 --- a/ElvUI_SLE/modules/unitframes/units/targettarget.lua +++ b/ElvUI_SLE/modules/unitframes/units/targettarget.lua @@ -6,9 +6,9 @@ local abs = math.abs local _, ns = ... local ElvUF = ns.oUF -UF.Update_TargetTargetFrameDPE = UF.Update_TargetTargetFrame +UF.Update_TargetTargetFrameSLE = UF.Update_TargetTargetFrame function UF:Update_TargetTargetFrame(frame, db) - self:Update_TargetTargetFrameDPE(frame, db) + self:Update_TargetTargetFrameSLE(frame, db) local power = frame.Power --Text diff --git a/ElvUI_SLE/modules/unitframes/update_elements.lua b/ElvUI_SLE/modules/unitframes/update_elements.lua index 59d9179..97d2a9d 100644 --- a/ElvUI_SLE/modules/unitframes/update_elements.lua +++ b/ElvUI_SLE/modules/unitframes/update_elements.lua @@ -17,13 +17,13 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) if type == 'health' then --Health for Target frames if db[type].text_format == 'current-percent' then if min ~= max then - if E.db.dpe.unitframes.reverse.health then + if E.db.sle.unitframes.reverse.health then value = format("|cff%02x%02x%02x%.2f%%|r |cffD7BEA5-|r |cffAF5050%s|r", r * 255, g * 255, b * 255, format("%.2f", min / max * 100), min) else value = format("|cff%02x%02x%02x%.2f%%|r |cffD7BEA5-|r |cffAF5050%s|r", r * 255, g * 255, b * 255, format("%.2f", min / max * 100), E:ShortValue(min)) end else - if E.db.dpe.unitframes.reverse.health then + if E.db.sle.unitframes.reverse.health then value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, max) else value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(max)) @@ -31,20 +31,20 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) end elseif db[type].text_format == 'current-max' then if min == max then - if E.db.dpe.unitframes.reverse.health then + if E.db.sle.unitframes.reverse.health then value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, max) else value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(max)) end else - if E.db.dpe.unitframes.reverse.health then + if E.db.sle.unitframes.reverse.health then value = format("|cff%02x%02x%02x%s|r |cffD7BEA5-|r |cffAF5050%s|r", r * 255, g * 255, b * 255, max, min) else value = format("|cff%02x%02x%02x%s|r |cffD7BEA5-|r |cffAF5050%s|r", r * 255, g * 255, b * 255, E:ShortValue(max), E:ShortValue(min)) end end elseif db[type].text_format == 'current' then - if E.db.dpe.unitframes.reverse.health then + if E.db.sle.unitframes.reverse.health then value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, min) else value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(min)) @@ -55,7 +55,7 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) if min == max then value = "" else - if E.db.dpe.unitframes.reverse.health then + if E.db.sle.unitframes.reverse.health then value = format("|cffAF5050-|r|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, max - min) else value = format("|cffAF5050-|r|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(max - min)) @@ -65,7 +65,7 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) else --Mana for Player, Boss, Arena, party, raid frames if db[type].text_format == 'current-percent' then -- if min ~= max then - if E.db.dpe.unitframes.reverse.mana then + if E.db.sle.unitframes.reverse.mana then value = format("%.2f%% |cffD7BEA5-|r %s", format("%.2f", min / max * 100), min) else value = format("%.2f%% |cffD7BEA5-|r %s", format("%.2f", min / max * 100), E:ShortValue(min)) @@ -75,20 +75,20 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) end elseif db[type].text_format == 'current-max' then -- if min == max then - if E.db.dpe.unitframes.reverse.mana then + if E.db.sle.unitframes.reverse.mana then value = format("%s", max) else value = format("%s", E:ShortValue(max)) end else - if E.db.dpe.unitframes.reverse.mana then + if E.db.sle.unitframes.reverse.mana then value = format("%s |cffD7BEA5-|r %s", max, min) else value = format("%s |cffD7BEA5-|r %s", E:ShortValue(max), E:ShortValue(min)) end end elseif db[type].text_format == 'current' then -- - if E.db.dpe.unitframes.reverse.mana then + if E.db.sle.unitframes.reverse.mana then value = format("%s", min) else value = format("%s", E:ShortValue(min)) @@ -99,7 +99,7 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) if min == max then value = "" else - if E.db.dpe.unitframes.reverse.mana then + if E.db.sle.unitframes.reverse.mana then value = format("|cffAF5050-|r%s", max - min) else value = format("|cffAF5050-|r%s", E:ShortValue(max - min)) @@ -111,13 +111,13 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) if type == 'health' then --Health for player, focus, focus target, target of target, party, boss, arena, raid frames if db[type].text_format == 'current-percent' then if min ~= max then - if E.db.dpe.unitframes.normal.health then + if E.db.sle.unitframes.normal.health then value = format("|cffAF5050%s|r |cffD7BEA5-|r |cff%02x%02x%02x%.2f%%|r", min, r * 255, g * 255, b * 255, format("%.2f", min / max * 100)) else value = format("|cffAF5050%s|r |cffD7BEA5-|r |cff%02x%02x%02x%.2f%%|r", E:ShortValue(min), r * 255, g * 255, b * 255, format("%.2f", min / max * 100)) end else - if E.db.dpe.unitframes.normal.health then + if E.db.sle.unitframes.normal.health then value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, max) else value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(max)) @@ -125,20 +125,20 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) end elseif db[type].text_format == 'current-max' then if min == max then - if E.db.dpe.unitframes.normal.health then + if E.db.sle.unitframes.normal.health then value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, max) else value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(max)) end else - if E.db.dpe.unitframes.normal.health then + if E.db.sle.unitframes.normal.health then value = format("|cffAF5050%s|r |cffD7BEA5-|r |cff%02x%02x%02x%s|r", min, r * 255, g * 255, b * 255, max) else value = format("|cffAF5050%s|r |cffD7BEA5-|r |cff%02x%02x%02x%s|r", E:ShortValue(min), r * 255, g * 255, b * 255, E:ShortValue(max)) end end elseif db[type].text_format == 'current' then - if E.db.dpe.unitframes.normal.health then + if E.db.sle.unitframes.normal.health then value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, min) else value = format("|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(min)) @@ -149,7 +149,7 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) if min == max then value = "" else - if E.db.dpe.unitframes.normal.health then + if E.db.sle.unitframes.normal.health then value = format("|cffAF5050-|r|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, max - min) else value = format("|cffAF5050-|r|cff%02x%02x%02x%s|r", r * 255, g * 255, b * 255, E:ShortValue(max - min)) @@ -159,13 +159,13 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) else --Mana for Target of target, focus, focus target if db[type].text_format == 'current-percent' then if min ~= max then - if E.db.dpe.unitframes.normal.mana then + if E.db.sle.unitframes.normal.mana then value = format("%s |cffD7BEA5-|r %.2f%%", min, format("%.2f", min / max * 100)) else value = format("%s |cffD7BEA5-|r %.2f%%", E:ShortValue(min), format("%.2f", min / max * 100)) end else - if E.db.dpe.unitframes.normal.mana then + if E.db.sle.unitframes.normal.mana then value = format("%s", max) else value = format("%s", E:ShortValue(max)) @@ -173,20 +173,20 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) end elseif db[type].text_format == 'current-max' then if min == max then - if E.db.dpe.unitframes.normal.mana then + if E.db.sle.unitframes.normal.mana then value = format("%s", max) else value = format("%s", E:ShortValue(max)) end else - if E.db.dpe.unitframes.normal.mana then + if E.db.sle.unitframes.normal.mana then value = format("%s |cffD7BEA5-|r %s", min, max) else value = format("%s |cffD7BEA5-|r %s", E:ShortValue(min), E:ShortValue(max)) end end elseif db[type].text_format == 'current' then - if E.db.dpe.unitframes.normal.mana then + if E.db.sle.unitframes.normal.mana then value = format("%s", min) else value = format("%s", E:ShortValue(min)) @@ -197,7 +197,7 @@ function UF:GetInfoText(frame, unit, r, g, b, min, max, reverse, type) if min == max then value = "" else - if E.db.dpe.unitframes.normal.mana then + if E.db.sle.unitframes.normal.mana then value = format("|cffAF5050-|r%s", max - min) else value = format("|cffAF5050-|r%s", E:ShortValue(max - min)) @@ -217,7 +217,7 @@ function UF:UpdatePvPText(frame) local LowManaText = frame.Power.LowManaText local health = frame.Health - if E.db.dpe.pvp.mouse then + if E.db.sle.pvp.mouse then if PvPText and frame:IsMouseOver() then PvPText:Show() if LowManaText and LowManaText:IsShown() then LowManaText:Hide() end @@ -270,7 +270,7 @@ function UF:UpdatePvPText(frame) end end - local x, y = self:GetPositionOffset(E.db.dpe.pvp.pos) + local x, y = self:GetPositionOffset(E.db.sle.pvp.pos) PvPText:ClearAllPoints() - PvPText:Point(E.db.dpe.pvp.pos, health, E.db.dpe.pvp.pos, x, y) + PvPText:Point(E.db.sle.pvp.pos, health, E.db.sle.pvp.pos, x, y) end \ No newline at end of file