Commit 4ea0e43a authored by Darth Predator's avatar Darth Predator

Ok, now for transparent buttons

parent 5289d9e2
......@@ -184,7 +184,6 @@ V["sle"] = {
["checkedtexture"] = false,
["checkedColor"] = {r = 0, g = 1, b = 0, a = 0.3},
["transparentBackdrop"] = false,
["transparentButtons"] = false,
},
["skins"] = {
["objectiveTracker"] = {
......
......@@ -27,22 +27,6 @@ function A:BarsBackdrop()
end
function A:ButtonsBackdrop()
for i = 1, A.MaxBars do
for k = 1, 12 do
if _G["ElvUI_Bar"..i.."Button"..k].backdrop then
_G["ElvUI_Bar"..i.."Button"..k].backdrop:SetTemplate('Transparent')
end
end
end
-- Pet Buttons
for i = 1, NUM_PET_ACTION_SLOTS do
if _G["PetActionButton"..i].backdrop then
_G["PetActionButton"..i].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
......@@ -93,7 +77,6 @@ function A:Initialize()
--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
if E.private.sle.actionbars.transparentButtons then A:ButtonsBackdrop() end
end)
end
......
......@@ -58,15 +58,6 @@ local function configTable()
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,
},
transparentButtons = {
order = 5,
type = "toggle",
name = L["Transparent Buttons"],
desc = L["Sets actionbar button's background to transparent template."],
get = function(info) return E.private.sle.actionbars.transparentButtons end,
set = function(info, value) E.private.sle.actionbars.transparentButtons = value; E:StaticPopup_Show('PRIVATE_RL'); end,
disabled = function() return IsAddOnLoaded("Masque") 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