Skip to content

Commit

Permalink
v0.5.114
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Oct 7, 2024
1 parent cc362f6 commit 1d41a73
Show file tree
Hide file tree
Showing 17 changed files with 250 additions and 1,067 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.113
## Version: 0.5.114
## 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.113
## Version: 0.5.114
## 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.113
## Version: 0.5.114
## 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: 11504
## Version: 0.5.113
## Version: 0.5.114
## 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.113
## Version: 0.5.114
## 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
15 changes: 7 additions & 8 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1057,11 +1057,10 @@ function DarkMode:SearchUi(from)
1.1,
function()
DarkMode:Debug(5, "#6")
local DMMMBTN = LibStub("LibDBIcon-1.0", true)
if DMMMBTN then
for i, name in pairs(DMMMBTN:GetButtonList()) do
local btn = _G["LibDBIcon10_" .. name]
if btn and _G[name .. "DMBorder"] == nil and DarkMode:IsEnabled("MASKMINIMAPBUTTONS", true) then
for i, btn in pairs(_G) do
if (strfind(i, "LibDBIcon10_", 1, true) or strfind(i, "D4Lib_MMBTN_", 1, true)) and not strfind(i, "DMBorder", 1, true) then
local name = btn:GetName()
if btn and _G[name .. "DMBorder"] == nil and DarkMode:IsEnabled("MASKMINIMAPBUTTONS", true) and (btn.border == nil or btn.border == true) then
local border = btn:CreateTexture(name .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mmicon_border")
border:SetPoint("TOPLEFT", 0, 1)
Expand Down Expand Up @@ -1619,18 +1618,18 @@ function DarkMode:Event(event, ...)
["name"] = "DarkMode",
["icon"] = 136122,
["dbtab"] = DMTAB,
["vTT"] = {{"DarkMode |T136122:16:16:0:0|t", "v|cff3FC7EB0.5.113"}, {DarkMode:Trans("LEFTCLICK"), DarkMode:Trans("MMBTNLEFT")}, {DarkMode:Trans("RIGHTCLICK"), DarkMode:Trans("MMBTNRIGHT")}},
["vTT"] = {{"DarkMode |T136122:16:16:0:0|t", "v|cff3FC7EB0.5.114"}, {DarkMode:Trans("LEFTCLICK"), DarkMode:Trans("MMBTNLEFT")}, {DarkMode:Trans("RIGHTCLICK"), DarkMode:Trans("MMBTNRIGHT")}},
["funcL"] = function()
DarkMode:ToggleSettings()
end,
["funcR"] = function()
DarkMode:SV(DMTAB, "MMBTN", false)
DarkMode:SetEnabled("MMBTN", false)
DarkMode:HideMMBtn("DarkMode")
end,
}
)

if DarkMode:GV(DMTAB, "MMBTN", DarkMode:GetWoWBuild() ~= "RETAIL") then
if DarkMode:IsEnabled("MMBTN", DarkMode:GetWoWBuild() ~= "RETAIL") then
DarkMode:ShowMMBtn("DarkMode")
else
DarkMode:HideMMBtn("DarkMode")
Expand Down
3 changes: 0 additions & 3 deletions libs/D4Lib/D4Lib.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

<Include file="LibDBIcon-1.0\embeds.xml"/>
<Include file="LibDBIcon-1.0\LibDBIcon-1.0\lib.xml"/>

<Script file="D4Lib.lua"/>

<Script file="D4Math.lua"/>
Expand Down
Loading

0 comments on commit 1d41a73

Please sign in to comment.