Skip to content

Commit

Permalink
v0.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jan 5, 2024
1 parent 81d3d8e commit b40514d
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 9 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.13
## Version: 0.4.14
## 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.13
## Version: 0.4.14
## 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.13
## Version: 0.4.14
## 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.13
## Version: 0.4.14
## 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
37 changes: 34 additions & 3 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ npf:SetScript(
end
)

local searchQuestFrames = false
function DarkMode:InitQuestFrame()
local frame = DarkMode:GetFrame("QuestFrameGreetingPanel")
function DarkMode:UpdateQuestFrameGreetingPanel()
Expand All @@ -938,7 +939,17 @@ function DarkMode:InitQuestFrame()
QuestFrame:HookScript(
"OnShow",
function(sel, ...)
DarkMode:SearchFrames()
if not searchQuestFrames then
searchQuestFrames = true
C_Timer.After(
1,
function()
searchQuestFrames = false
end
)

DarkMode:SearchFrames()
end
end
)
end
Expand All @@ -947,7 +958,17 @@ function DarkMode:InitQuestFrame()
QuestFrameRewardPanel:HookScript(
"OnShow",
function(sel, ...)
DarkMode:SearchFrames()
if not searchQuestFrames then
searchQuestFrames = true
C_Timer.After(
1,
function()
searchQuestFrames = false
end
)

DarkMode:SearchFrames()
end
end
)
end
Expand All @@ -956,7 +977,17 @@ function DarkMode:InitQuestFrame()
QuestFrameDetailPanel:HookScript(
"OnShow",
function(sel, ...)
DarkMode:SearchFrames()
if not searchQuestFrames then
searchQuestFrames = true
C_Timer.After(
1,
function()
searchQuestFrames = false
end
)

DarkMode:SearchFrames()
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.13")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.4.13"))
D4:SetVersion(AddonName, 136122, "0.4.14")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.4.14"))
DMSettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit b40514d

Please sign in to comment.