Skip to content

Commit

Permalink
v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Mar 4, 2024
1 parent 406010a commit 4cd27ae
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DarkMode.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Interface-Wrath: 30403
## Interface: 100205

## Version: 0.5.0
## Version: 0.5.1
## 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_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.5.0
## Version: 0.5.1
## 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: 11501
## Version: 0.5.0
## Version: 0.5.1
## 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.0
## Version: 0.5.1
## 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 core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ function DarkMode:SearchUi(from)
if DMMMBTN then
for i, name in pairs(DMMMBTN:GetButtonList()) do
local btn = _G["LibDBIcon10_" .. name]
if btn and _G[name .. "DMBorder"] == nil then
if btn and _G[name .. "DMBorder"] == nil and DarkMode:IsEnabled("MASKMINIMAPBUTTONS", true) then
local border = btn:CreateTexture(name .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mmicon_border")
border:SetPoint("TOPLEFT", 0, 1)
Expand Down
1 change: 1 addition & 0 deletions locale/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function DarkMode:Lang_deDE()
["MASKACTIONBUTTONS"] = "Rand für Aktionsknöpfe hinzufügen",
["GRYPHONS"] = "Greifen maskieren",
["MASKBUFFSANDDEBUFFS"] = "Rand für Buffs und Debuffs hinzufügen",
["MASKMINIMAPBUTTONS"] = "Rand für Minimapknöpfe hinzufügen",
}

DarkMode:UpdateLanguageTab(tab)
Expand Down
1 change: 1 addition & 0 deletions locale/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function DarkMode:Lang_enUS()
["MASKACTIONBUTTONS"] = "Add Border to Actionbuttons",
["GRYPHONS"] = "Mask Gryphons",
["MASKBUFFSANDDEBUFFS"] = "Add Border to Buffs and Debuffs",
["MASKMINIMAPBUTTONS"] = "Add Border to Minimapbuttons",
}

DarkMode:UpdateLanguageTab(tab)
Expand Down
5 changes: 3 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ function DarkMode:InitDMSettings()
DMSettings:Hide()
end

D4:SetVersion(AddonName, 136122, "0.5.0")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.0"))
D4:SetVersion(AddonName, 136122, "0.5.1")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.1"))
DMSettings.CloseButton:SetScript(
"OnClick",
function()
Expand All @@ -300,6 +300,7 @@ function DarkMode:InitDMSettings()
posy = -8
AddCategory("GENERAL")
AddCheckBox(4, "SHOWMINIMAPBUTTON", true, DarkMode.UpdateMinimapButton)
AddCheckBox(4, "MASKMINIMAPBUTTONS", true)
AddCheckBox(4, "MASKACTIONBUTTONS", true)
AddCheckBox(4, "MASKBUFFSANDDEBUFFS", true)
AddCheckBox(4, "GRYPHONS", true)
Expand Down

0 comments on commit 4cd27ae

Please sign in to comment.