Commit 447e22de authored by Merathilis's avatar Merathilis

Remove Options for transparent Bags/ActionBars, its not in ElvUI

parent 3060cef9
......@@ -33,7 +33,6 @@ Wenn du jedoch ein anderes Layout über meines installierst, musst du es manuell
L["Enable/Disable the Login Message in Chat"] = "Aktiviert/Deaktiviert die Login Nachricht im Chat"
-- Bags
L["Transparent Slots"] = "Transparente Schaltflächen"
L["Equipment Manager"] = "Ausrüstungsmanager"
L["Equipment Set Overlay"] = "Ausrüstungsset Anzeige"
L["Show the associated equipment sets for the items in your bags (or bank)."] = "Zeigt verbundene Ausrüstungssets auf Gegenständen in deinen Taschen und der Bank an."
......@@ -202,8 +201,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = "Fügt unten an de
L["Style DataBars"] = "Informationsleisten Stil"
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = "Aktiviert die Transparenz auf alle Aktionsleisten Hintergründe und Tasten."
L["Transparent Backdrops"] = "Transparente Hintergründe"
L["Specialisation Bar"] = "Spezialisierungsleiste"
L["EquipSet Bar"] = "Ausrüstungsleiste"
L["Clean Boss Button"] = "Geskinnte Boss Taste"
......
......@@ -34,7 +34,6 @@ But if you install another Layout over mine, you must adjust it manually.
L["Enable/Disable the Login Message in Chat"] = true
-- Bags
L["Transparent Slots"] = true
L["Equipment Manager"] = true
L["Equipment Set Overlay"] = true
L["Show the associated equipment sets for the items in your bags (or bank)."] = true
......@@ -205,8 +204,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = true
L["Style DataBars"] = true
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = true
L["Transparent Backdrops"] = true
L["Specialisation Bar"] = true
L["EquipSet Bar"] = true
L["Clean Boss Button"] = true
......
......@@ -33,7 +33,6 @@ But if you install another Layout over mine, you must adjust it manually.
L["Enable/Disable the Login Message in Chat"] = true
-- Bags
L["Transparent Slots"] = true
L["Equipment Manager"] = true
L["Equipment Set Overlay"] = true
L["Show the associated equipment sets for the items in your bags (or bank)."] = true
......@@ -204,8 +203,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = true
L["Style DataBars"] = true
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = true
L["Transparent Backdrops"] = true
L["Specialisation Bar"] = true
L["EquipSet Bar"] = true
L["Clean Boss Button"] = true
......
......@@ -33,7 +33,6 @@ But if you install another Layout over mine, you must adjust it manually.
L["Enable/Disable the Login Message in Chat"] = true
-- Bags
L["Transparent Slots"] = true
L["Equipment Manager"] = true
L["Equipment Set Overlay"] = true
L["Show the associated equipment sets for the items in your bags (or bank)."] = true
......@@ -204,8 +203,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = true
L["Style DataBars"] = true
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = true
L["Transparent Backdrops"] = true
L["Specialisation Bar"] = true
L["EquipSet Bar"] = true
L["Clean Boss Button"] = true
......
......@@ -33,7 +33,6 @@ But if you install another Layout over mine, you must adjust it manually.
L["Enable/Disable the Login Message in Chat"] = true
-- Bags
L["Transparent Slots"] = true
L["Equipment Manager"] = true
L["Equipment Set Overlay"] = true
L["Show the associated equipment sets for the items in your bags (or bank)."] = true
......@@ -200,8 +199,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = true
L["Style DataBars"] = true
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = true
L["Transparent Backdrops"] = true
L["Specialisation Bar"] = true
L["EquipSet Bar"] = true
L["Clean Boss Button"] = true
......
......@@ -33,7 +33,6 @@ But if you install another Layout over mine, you must adjust it manually.
L["Enable/Disable the Login Message in Chat"] = true
-- Bags
L["Transparent Slots"] = true
L["Equipment Manager"] = true
L["Equipment Set Overlay"] = true
L["Show the associated equipment sets for the items in your bags (or bank)."] = true
......@@ -202,8 +201,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = true
L["Style DataBars"] = true
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = true
L["Transparent Backdrops"] = true
L["Specialisation Bar"] = true
L["EquipSet Bar"] = true
L["Clean Boss Button"] = true
......
......@@ -33,7 +33,6 @@ L["MER_DESC"] = [=[|cffff7d0aMerathilisUI|r 是ElvUI的扩展. 它增加了:
L["Enable/Disable the Login Message in Chat"] = "在聊天框中启用/禁用登录消息"
-- Bags
L["Transparent Slots"] = "透明插槽"
L["Equipment Manager"] = "装备管理"
L["Equipment Set Overlay"] = "套装覆盖"
L["Show the associated equipment sets for the items in your bags (or bank)."] = "为你背包(银行)中的物品显示关联的套装."
......@@ -202,8 +201,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = "在数据条底
L["Style DataBars"] = "样式数据条"
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = "为所有动作条的背景和按钮应用透明度"
L["Transparent Backdrops"] = "透明背景"
L["Specialisation Bar"] = "专业条"
L["EquipSet Bar"] = "套装管理条"
L["Clean Boss Button"] = true
......
......@@ -33,7 +33,6 @@ But if you install another Layout over mine, you must adjust it manually.
L["Enable/Disable the Login Message in Chat"] = true
-- Bags
L["Transparent Slots"] = true
L["Equipment Manager"] = true
L["Equipment Set Overlay"] = true
L["Show the associated equipment sets for the items in your bags (or bank)."] = true
......@@ -202,8 +201,6 @@ L["Add some stylish buttons at the bottom of the DataBars"] = true
L["Style DataBars"] = true
-- Actionbars
L["Applies transparency in all actionbar backdrops and actionbar buttons."] = true
L["Transparent Backdrops"] = true
L["Specialisation Bar"] = true
L["EquipSet Bar"] = true
L["Clean Boss Button"] = true
......
......@@ -16,7 +16,7 @@ local C_TimerAfter = C_Timer.After
-- GLOBALS: ElvUI_BarPet, ElvUI_StanceBar, hooksecurefunc
local availableActionbars = availableActionbars or 6
local styleOtherBacks = {ElvUI_BarPet, ElvUI_StanceBar}
local styleOtherBacks = {_G.ElvUI_BarPet, _G.ElvUI_StanceBar}
local function CheckExtraAB()
if IsAddOnLoaded("ElvUI_ExtraActionBars") then
......@@ -26,64 +26,6 @@ local function CheckExtraAB()
end
end
-- from ElvUI_TrasparentBackdrops plugin
function module:TransparentBackdrops()
-- Actionbar backdrops
local db = E.db.mui.actionbars
for i = 1, availableActionbars do
local transBars = {_G['ElvUI_Bar'..i]}
for _, frame in pairs(transBars) do
if frame.backdrop then
if db.transparent then
frame.backdrop:SetTemplate("Transparent")
else
frame.backdrop:SetTemplate("Default")
end
end
end
-- Buttons
for k = 1, 12 do
local buttonBars = {_G["ElvUI_Bar"..i.."Button"..k]}
for _, button in pairs(buttonBars) do
if button.backdrop then
if db.transparent then
button.backdrop:SetTemplate("Transparent")
else
button.backdrop:SetTemplate("Default", true)
end
end
end
end
end
-- Other bar backdrops
local transOtherBars = {ElvUI_BarPet, ElvUI_StanceBar}
for _, frame in pairs(transOtherBars) do
if frame.backdrop then
if db.transparent then
frame.backdrop:SetTemplate("Transparent")
else
frame.backdrop:SetTemplate("Default")
end
end
end
-- Pet Buttons
for i = 1, NUM_PET_ACTION_SLOTS do
local petButtons = {_G["PetActionButton"..i]}
for _, button in pairs(petButtons) do
if button.backdrop then
if db.transparent then
button.backdrop:SetTemplate("Transparent")
else
button.backdrop:SetTemplate("Default", true)
end
end
end
end
end
function module:StyleBackdrops()
-- Actionbar backdrops
for i = 1, availableActionbars do
......@@ -128,8 +70,6 @@ function module:Initialize()
CheckExtraAB()
C_TimerAfter(1, module.StyleBackdrops)
C_TimerAfter(1, module.TransparentBackdrops)
if IsAddOnLoaded("ElvUI_TB") then DisableAddOn("ElvUI_TB") end
if E.db.mui.actionbars.cleanButton then
hooksecurefunc(_G["ZoneAbilityFrame"].SpellButton.Style, "SetTexture", RemoveTexture)
......
......@@ -30,17 +30,8 @@ local function abTable()
name = L["Clean Boss Button"],
disabled = function() return not E.private.actionbar.enable end,
},
transparent = {
order = 3,
type = "toggle",
name = L["Transparent Backdrops"],
desc = L["Applies transparency in all actionbar backdrops and actionbar buttons."],
disabled = function() return not E.private.actionbar.enable end,
get = function(info) return E.db.mui.actionbars[ info[#info] ] end,
set = function(info, value) E.db.mui.actionbars[ info[#info] ] = value; MAB:TransparentBackdrops() end,
},
specBar = {
order = 4,
order = 3,
type = "group",
name = MER:cOption(L["Specialisation Bar"]),
guiInline = true,
......@@ -70,7 +61,7 @@ local function abTable()
},
},
equipBar = {
order = 5,
order = 4,
type = "group",
name = MER:cOption(L["EquipSet Bar"]),
guiInline = true,
......@@ -100,7 +91,7 @@ local function abTable()
},
},
microBar = {
order = 6,
order = 5,
type = "group",
name = MER:cOption(L["Micro Bar"]),
guiInline = true,
......@@ -179,7 +170,7 @@ local function abTable()
},
},
autoButtons = {
order = 7,
order = 6,
type = "group",
name = MER:cOption(L["Auto Buttons"]),
guiInline = true,
......
......@@ -60,33 +60,6 @@ function module:SkinBlizzBags()
end
end
-- Transparent Slots
function module:HookBags(isBank)
local slot
for _, bagFrame in pairs(B.BagFrames) do
--Applying transparent template for all current slots
for _, bagID in pairs(bagFrame.BagIDs) do
for slotID = 1, GetContainerNumSlots(bagID) do
if bagFrame.Bags[bagID] then
slot = bagFrame.Bags[bagID][slotID];
if E.db.mui.bags.transparentSlots and slot.template ~= "Transparent" then
slot:SetTemplate('Transparent')
end
end
end
end
end
--Applying transparent template for reagent bank
if E.db.mui.bags.transparentSlots and _G["ElvUIReagentBankFrameItem1"] and _G["ElvUIReagentBankFrameItem1"].template ~= "Transparent" then
for slotID = 1, 98 do
local slot = _G["ElvUIReagentBankFrameItem"..slotID];
if slot.template ~= "Transparent" then slot:SetTemplate('Transparent') end
end
end
end
function module:Initialize()
if E.private.bags.enable ~= true then return end
......@@ -96,10 +69,6 @@ function module:Initialize()
self:AllInOneBags()
self:SkinBlizzBags()
self:SkinBank()
self:HookBags();
hooksecurefunc(B, "Layout", function(self, isBank)
module:HookBags(isBank)
end)
--This table is for initial update of a frame, cause applying transparent template breaks color borders
module.InitialUpdates = {
......
......@@ -20,20 +20,6 @@ local function BagTable()
type = "header",
name = MER:cOption(L["Bags"]),
},
general = {
order = 1,
type = "group",
guiInline = true,
name = L["General"],
args = {
transparentSlots = {
order = 1,
type = "toggle",
name = L["Transparent Slots"],
disabled = function() return not E.private.bags.enable end,
},
},
},
equipManager = {
order = 2,
type = "group",
......
......@@ -27,7 +27,6 @@ MP.general = {
}
MP.bags = {
transparentSlots = true,
equipOverlay = true,
}
......@@ -123,7 +122,6 @@ MP.datatexts = {
MP.actionbars = {
cleanButton = true,
transparent = true,
specBar = {
enable = true,
mouseover = false,
......
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