Skip to content

Commit

Permalink
👌 IMPROVE: Updated some skins
Browse files Browse the repository at this point in the history
  • Loading branch information
Merathilis committed Jul 28, 2024
1 parent 8e082b7 commit c7883e4
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 33 deletions.
10 changes: 0 additions & 10 deletions ElvUI_MerathilisUI/Modules/Skins/AddOns/Misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@ function module:BlizzMisc()
module:CreateShadow(_G.ChatConfigFrame)
end

-- Mirror Timers
if E.private.skins.blizzard.mirrorTimers then
hooksecurefunc(_G.MirrorTimerContainer, "SetupTimer", function(container, timer)
local bar = container:GetAvailableTimer(timer)
if bar then
module:CreateShadow(bar)
end
end)
end

if _G.ActionStatus.Text then
F.SetFontDB(_G.ActionStatus.Text, E.private.mui.skins.actionStatus)
end
Expand Down
41 changes: 25 additions & 16 deletions ElvUI_MerathilisUI/Modules/Skins/ElvUI/Bags.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local S = MER:GetModule("MER_Skins")
local module = MER:GetModule("MER_Skins")
local B = E:GetModule("Bags")

local _G = _G
local pairs = pairs

function S:ElvUI_Bags()
local NUM_CONTAINER_FRAMES = NUM_CONTAINER_FRAMES

function module:ElvUI_ContainerFrames()
if not E.private.bags.enable then
return
end
Expand All @@ -16,28 +18,35 @@ function S:ElvUI_Bags()
self:CreateShadow(B.BankFrame.ContainerHolder)
end

function S:ElvUI_BagBar()
if not E.private.bags.enable then
function module:ContainerFrame()
print("hitsss")
if E.private.bags.enable then
return
end

if E.private.bags.bagBar and B.BagBar and B.BagBar.buttons then
for _, buttons in pairs(B.BagBar.buttons) do
self:CreateShadow(buttons)
for bagID = 1, NUM_CONTAINER_FRAMES do
local container = _G["ContainerFrame" .. bagID]
if container and container.template then
self:CreateShadow(container)
end
print(container)
end
end

function S:ElvUI_BagSell()
if not E.private.bags.enable then
return
self:CreateShadow(_G.ContainerFrameCombinedBags)

-- Bank
self:CreateShadow(_G.BankFrame)

for _, frame in pairs({ _G.BankSlotsFrame, _G.ReagentBankFrame, _G.AccountBankPanel }) do
if frame and frame.EdgeShadows then
frame.EdgeShadows:SetAlpha(0)
end
end

if B and B.SellFrame then
self:CreateBackdropShadow(B.SellFrame)
for _, tab in pairs(_G.BankFrame.Tabs) do
self:ReskinTab(tab)
end
end

S:AddCallback("ElvUI_Bags")
S:AddCallback("ElvUI_BagBar")
S:AddCallback("ElvUI_BagSell")
module:AddCallback("ContainerFrame")
module:AddCallback("ElvUI_ContainerFrames")
2 changes: 1 addition & 1 deletion ElvUI_MerathilisUI/Modules/Skins/FrameXML/AddonList.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")

local _G = _G

Expand Down
2 changes: 1 addition & 1 deletion ElvUI_MerathilisUI/Modules/Skins/FrameXML/BNet.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")
local S = E:GetModule("Skins")

local _G = _G
Expand Down
2 changes: 1 addition & 1 deletion ElvUI_MerathilisUI/Modules/Skins/FrameXML/BagFrame.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")

local _G = _G

Expand Down
2 changes: 1 addition & 1 deletion ElvUI_MerathilisUI/Modules/Skins/FrameXML/ChatFrame.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")

local _G = _G

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")

local _G = _G

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")

local _G = _G

Expand Down
2 changes: 1 addition & 1 deletion ElvUI_MerathilisUI/Modules/Skins/FrameXML/GhostFrame.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER.Modules.Skins
local module = MER:GetModule("MER_Skins")

local _G = _G

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<Script file="LootFrame.lua"/>
<Script file="MailFrame.lua"/>
<Script file="MerchantFrame.lua"/>
<Script file="MirrorTimers.lua"/>
<Script file="PaperDollFrame.lua"/>
<Script file="PVEFrame.lua"/>
<Script file="QuestFrame.lua"/>
Expand Down
21 changes: 21 additions & 0 deletions ElvUI_MerathilisUI/Modules/Skins/FrameXML/MirrorTimers.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local MER, F, E, I, V, P, G, L = unpack(ElvUI_MerathilisUI)
local module = MER:GetModule("MER_Skins")

local _G = _G

function module:MirrorTimers()
if not self:CheckDB("mirrorTimers") then
return
end

hooksecurefunc(_G.MirrorTimerContainer, "SetupTimer", function(container, timer)
local bar = container:GetAvailableTimer(timer)
if not bar then
return
end

self:CreateShadow(bar)
end)
end

module:AddCallback("MirrorTimers")

0 comments on commit c7883e4

Please sign in to comment.