AB backdrop as well

parent fefa909a
......@@ -183,7 +183,6 @@ V["sle"] = {
["oorBind"] = false,
["checkedtexture"] = false,
["checkedColor"] = {r = 0, g = 1, b = 0, a = 0.3},
["transparentBackdrop"] = false,
},
["skins"] = {
["objectiveTracker"] = {
......
......@@ -123,8 +123,6 @@ L["Out Of Range indication will use keybind text instead of the whole icon."] =
L["Checked Texture"] = true
L["Highlight the button of the spell with areal effect until the area is selected."] = true
L["Checked Texture Color"] = true
L["Transparent Backdrop"] = true
L["Sets actionbar's background to transparent template."] = true
--Armory
L["Average"] = true
......
......@@ -124,8 +124,6 @@ L["Out Of Range indication will use keybind text instead of the whole icon."] =
L["Checked Texture"] = "Gedrückte Textur"
L["Highlight the button of the spell with areal effect until the area is selected."] = "Hebt die Taste von Flächenzaubern hervor bis das Zielgebiet ausgewählt wurde."
L["Checked Texture Color"] = "Gedrückte Textur Farbe"
L["Transparent Backdrop"] = "Transparenter Hintergrund"
L["Sets actionbar's background to transparent template."] = "Setzt den Aktionsleisten Hintergrund transparent."
--Armory
L["Average"] = "Durschnitt"
......
......@@ -123,8 +123,6 @@ L["Out Of Range indication will use keybind text instead of the whole icon."] =
L["Checked Texture"] = true
L["Highlight the button of the spell with areal effect until the area is selected."] = true
L["Checked Texture Color"] = true
L["Transparent Backdrop"] = "투명한 배경"
L["Sets actionbar's background to transparent template."] = "행동단축바 배경을 투명한 형태로 설정합니다."
--Armory
L["Average"] = "평균"
......
......@@ -123,8 +123,6 @@ L["Out Of Range indication will use keybind text instead of the whole icon."] =
L["Checked Texture"] = "Текстура выделения"
L["Highlight the button of the spell with areal effect until the area is selected."] = "Пдсвечивает кнопку с эффектом по области пока не будет выбрана точка применения."
L["Checked Texture Color"] = "Цвет выделения"
L["Transparent Backdrop"] = "Прозрачный фон"
L["Sets actionbar's background to transparent template."] = "Делает фон панелей команд прозрачным."
--Armory
L["Average"] = "Средний"
......
......@@ -9,24 +9,6 @@ local C_Timer_After = C_Timer.After
A.CheckedTextures = {}
function A:BarsBackdrop()
-- Actionbar backdrops
for i = 1, A.MaxBars do
if _G["ElvUI_Bar"..i].backdrop then
_G["ElvUI_Bar"..i].backdrop:SetTemplate('Transparent')
end
end
-- Other bar backdrops
local Bars = {_G["ElvUI_BarPet"], _G["ElvUI_StanceBar"], _G["ElvUI_TotemBar"], _G["ElvUIBags"]}
for _, frame in T.pairs(Bars) do
if frame.backdrop then
frame.backdrop:SetTemplate('Transparent')
end
end
end
function A:Initialize()
if not SLE.initialized or E.private.actionbar.enable ~= true then return; end
A.MaxBars = SLE._Compatibility["ElvUI_ExtraActionBars"] and 10 or 6 --In case ExtraActionBars is enabled. Cause 7+ bars will not be affected otherwise
......@@ -73,11 +55,6 @@ function A:Initialize()
AB:PositionAndSizeBar('bar'..i)
end
end
--Make stuff transparent after a short delay. Otherwise some elements may not be present yet.
C_Timer_After(0.3, function()
if E.private.sle.actionbars.transparentBackdrop then A:BarsBackdrop() end
end)
end
SLE:RegisterModule(A:GetName())
\ No newline at end of file
......@@ -50,14 +50,6 @@ local function configTable()
end
end,
},
transparentBackdrop = {
order = 4,
type = "toggle",
name = L["Transparent Backdrop"],
desc = L["Sets actionbar's background to transparent template."],
get = function(info) return E.private.sle.actionbars.transparentBackdrop end,
set = function(info, value) E.private.sle.actionbars.transparentBackdrop = value; E:StaticPopup_Show('PRIVATE_RL'); end,
},
vehicle = {
type = "group",
name = L["Enhanced Vehicle Bar"],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment