Skip to content

Commit

Permalink
v0.5.110
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Sep 14, 2024
1 parent 614b31b commit 9d0aa2f
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 13 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: 110002

## Version: 0.5.109
## Version: 0.5.110
## 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.109
## Version: 0.5.110
## 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.109
## Version: 0.5.110
## 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: 11503
## Version: 0.5.109
## Version: 0.5.110
## 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.109
## Version: 0.5.110
## 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
21 changes: 17 additions & 4 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,17 @@ function DarkMode:SearchFrames()
end

for index, name in pairs(DarkMode:GetFrameTable()) do
for i, v in pairs(DarkMode:GetDMRepeatingFrames()) do
DarkMode:FindTexturesByName(name .. v, "frames")
if name ~= "LootFrame" then
for i, v in pairs(DarkMode:GetDMRepeatingFrames()) do
DarkMode:FindTexturesByName(name .. v, "frames")
end
else
for i, v in pairs(DarkMode:GetDMRepeatingFrames()) do
-- BottomLeft and BottomRight Corner
if v ~= ".Bg" and v ~= ".Background" then
DarkMode:FindTexturesByName(name .. v, "frames")
end
end
end
end
end
Expand Down Expand Up @@ -692,6 +701,10 @@ function DarkMode:SearchAddons(from)
end
end
end

for index, name in pairs(DarkMode:GetUiAddonsTable()) do
DarkMode:FindTexturesByName(name, "ui")
end
end

function DarkMode:SearchUi(from)
Expand Down Expand Up @@ -1167,7 +1180,7 @@ function DarkMode:ColorAuraButton(btn, index, btnName, from)
_G[name .. "Buff" .. index .. "BorderDM"] = btn:CreateTexture(name .. "Buff" .. index .. "BorderDM", "OVERLAY")
local border = _G[name .. "Buff" .. index .. "BorderDM"]
border:SetDrawLayer("OVERLAY", 7)
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\defaultbuff")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\defaultbuff2")
border:SetAllPoints(icon)
DarkMode:UpdateColor(border, "buffsanddebuffs")
end
Expand Down Expand Up @@ -1606,7 +1619,7 @@ function DarkMode:Event(event, ...)
["name"] = "DarkMode",
["icon"] = 136122,
["dbtab"] = DMTAB,
["vTT"] = {{"DarkMode |T136122:16:16:0:0|t", "v|cff3FC7EB0.5.109"}, {DarkMode:Trans("LEFTCLICK"), DarkMode:Trans("MMBTNLEFT")}, {DarkMode:Trans("RIGHTCLICK"), DarkMode:Trans("MMBTNRIGHT")}},
["vTT"] = {{"DarkMode |T136122:16:16:0:0|t", "v|cff3FC7EB0.5.110"}, {DarkMode:Trans("LEFTCLICK"), DarkMode:Trans("MMBTNLEFT")}, {DarkMode:Trans("RIGHTCLICK"), DarkMode:Trans("MMBTNRIGHT")}},
["funcL"] = function()
DarkMode:ToggleSettings()
end,
Expand Down
4 changes: 2 additions & 2 deletions data.lua

Large diffs are not rendered by default.

Binary file added media/defaultbuff2.blp
Binary file not shown.
Binary file added media/defaultbuff2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ function DarkMode:InitDMSettings()
DMSettings:Hide()
end

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

0 comments on commit 9d0aa2f

Please sign in to comment.