Skip to content

Commit

Permalink
v0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jan 2, 2024
1 parent fef3b82 commit 6905406
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 24 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: 100200

## Version: 0.4.6
## Version: 0.4.7
## 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.4.6
## Version: 0.4.7
## 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: 11500
## Version: 0.4.6
## Version: 0.4.7
## 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.4.6
## Version: 0.4.7
## 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
33 changes: 15 additions & 18 deletions libs/D4Lib/D4Versions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,22 @@ f:SetScript(
C_Timer.After(
2,
function()
--[[ local id = 0
for i, v in pairs(D4VersionTab) do
id = id + 1
if i == AddonName then break end
end]]
local id = D4VersionTab[string.lower(AddonName)].id or 0
C_Timer.After(
id * 0.1,
function()
local ver = D4:GetVersion(AddonName)
if ver == nil then
D4:MSG(AddonName, 0, "|cffff0000MISSING VERSION", AddonName)
if D4VersionTab[string.lower(AddonName)] then
local id = D4VersionTab[string.lower(AddonName)].id or 0
C_Timer.After(
id * 0.1,
function()
local ver = D4:GetVersion(AddonName)
if ver == nil then
D4:MSG(AddonName, 0, "|cffff0000MISSING VERSION", AddonName)
end

if isInitialLogin and ver and pre then
C_ChatInfo.SendAddonMessage(pre, format("A;%s;V;%s", AddonName, ver))
end
end

if true and ver and pre then
C_ChatInfo.SendAddonMessage(pre, format("A;%s;V;%s", AddonName, ver), "GUILD")
end
end
)
)
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 @@ -222,8 +222,8 @@ function DarkMode:InitDMSettings()
DMSettings:Hide()
end

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

0 comments on commit 6905406

Please sign in to comment.