Skip to content

Commit

Permalink
v0.5.54
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jun 21, 2024
1 parent 904b7f4 commit 83bbba9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 37 deletions.
2 changes: 1 addition & 1 deletion DarkMode.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Interface-Cata: 40400
## Interface: 100207, 110000

## Version: 0.5.53
## Version: 0.5.54
## Title: DarkMode by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40400
## Version: 0.5.53
## Version: 0.5.54
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.5.53
## Version: 0.5.54
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11502
## Version: 0.5.53
## Version: 0.5.54
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 30403
## Version: 0.5.53
## Version: 0.5.54
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
40 changes: 10 additions & 30 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,29 +221,9 @@ function DarkMode:UpdateColor(texture, typ, show)
if not tContains(DMTexturesBuffsAndDebuffs, texture) then
tinsert(DMTexturesBuffsAndDebuffs, texture)
end
elseif typ == "frame" then
if not tContains(DMTexturesFrame, texture) then
tinsert(DMTexturesFrame, texture)
end
elseif typ == "frames" then
if not tContains(DMTexturesFrames, texture) then
tinsert(DMTexturesFrames, texture)
end
elseif typ == "chat" then
if not tContains(DMTexturesChat, texture) then
tinsert(DMTexturesChat, texture)
end
elseif typ == "addons" then
if not tContains(DMTexturesAddons, texture) then
tinsert(DMTexturesAddons, texture)
end
elseif typ == "special" then
if not tContains(DMTexturesSpecial, texture) then
tinsert(DMTexturesSpecial, texture)
end
elseif typ == "greeting" then
if not tContains(DMTexturesGreeting, texture) then
tinsert(DMTexturesGreeting, texture)
if DMTexturesFrames[texture] == nil then
DMTexturesFrames[texture] = texture
end
else
print("[DarkMode] Missing Type:", typ)
Expand Down Expand Up @@ -519,7 +499,7 @@ function DarkMode:InitGreetingPanel()

for index, name in pairs(frameTab) do
for i, v in pairs(DarkMode:GetDMRepeatingFrames()) do
DarkMode:FindTexturesByName(name .. v, "greeting")
DarkMode:FindTexturesByName(name .. v, "frames")
end
end
end
Expand Down Expand Up @@ -622,7 +602,7 @@ end

function DarkMode:SearchFrames()
for index, frame in pairs(DarkMode:GetFrameTableSpecial()) do
DarkMode:UpdateColor(frame, "special")
DarkMode:UpdateColor(frame, "frames")
end

for index, name in pairs(DarkMode:GetFrameTable()) do
Expand All @@ -644,15 +624,15 @@ function DarkMode:SearchAddons()

for index, name in pairs(DarkMode:GetFrameAddonsTable()) do
for i, v in pairs(DarkMode:GetDMRepeatingFrames()) do
DarkMode:FindTexturesByName(name .. v, "addons")
DarkMode:FindTexturesByName(name .. v, "frames")
end
end

if not foundExpansion and ExpansionLandingPage and ExpansionLandingPage.Overlay then
for i, v in pairs({ExpansionLandingPage.Overlay:GetChildren()}) do
if v then
foundExpansion = true
DarkMode:FindTextures(v.NineSlice, "addons")
DarkMode:FindTextures(v.NineSlice, "frames")
end
end
end
Expand Down Expand Up @@ -1278,7 +1258,7 @@ function DarkMode:Event(event, ...)
end
)

DarkMode:UpdateColor(border, "chat")
DarkMode:UpdateColor(border, "frames")
end
end
end
Expand All @@ -1297,7 +1277,7 @@ function DarkMode:Event(event, ...)
border:SetSize(sh * scale, sh * scale)
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\default")
border:SetPoint("CENTER", btn, "CENTER", px, py)
DarkMode:UpdateColor(border, "chat")
DarkMode:UpdateColor(border, "frames")
end
end
end
Expand Down Expand Up @@ -1688,7 +1668,7 @@ function DarkMode:Event(event, ...)
if tab then
for x, w in pairs({tab:GetRegions()}) do
if x == 1 then
DarkMode:UpdateColor(w, "addons")
DarkMode:UpdateColor(w, "frames")
end
end
end
Expand All @@ -1701,7 +1681,7 @@ function DarkMode:Event(event, ...)
local tabs = {ClassTalentFrame.TabSystem:GetChildren()}
for i, v in pairs(tabs) do
for x, w in pairs({v:GetRegions()}) do
DarkMode:UpdateColor(w, "addons")
DarkMode:UpdateColor(w, "frames")
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ function DarkMode:InitDMSettings()
DMSettings:Hide()
end

D4:SetVersion(AddonName, 136122, "0.5.53")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.53"))
D4:SetVersion(AddonName, 136122, "0.5.54")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.54"))
DMSettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit 83bbba9

Please sign in to comment.