Skip to content

Commit 975ecbe

Browse files
committed
updated wait time
1 parent 87929a2 commit 975ecbe

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

core.lua

-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,3 @@ function Codex.GetContinent()
3333
end
3434
end
3535
end
36-
37-
Codex.EventFrame = CreateFrame("Frame")
38-
Codex.EventFrame:RegisterEvent("ADDON_LOADED")

quest.lua

+8-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function Codex.CheckNamePlate()
8686
frame.icon:SetHeight(25)
8787

8888
local texture = frame.icon:CreateTexture(nil, "HIGH")
89-
texture:SetTexture("Interface\\Addons\\placeholder\\img\\pickup.tga")
89+
texture:SetTexture("Interface\\Addons\\ClassicCodex\\img\\pickup.tga")
9090
texture:SetAllPoints(frame.icon)
9191
frame.icon.texture = texture
9292
frame.icon:SetPoint("BOTTOM", frame, "TOP", 0, 0)
@@ -123,7 +123,7 @@ Codex.Quest.EventFrame:SetScript("OnEvent", function(self, event, ...)
123123
local arg1, arg2, arg3, arg4, arg5 = ...;
124124

125125
if (arg1 == "ClassicCodex") then
126-
Codex.Quest.UpdateQuestList()
126+
C_Timer.After(0.5, Codex.Quest.UpdateQuestList)
127127
end
128128

129129
elseif (event == "ZONE_CHANGED") then
@@ -133,10 +133,14 @@ Codex.Quest.EventFrame:SetScript("OnEvent", function(self, event, ...)
133133
Codex.Quest.UpdateQuestList()
134134

135135
elseif (event == "QUEST_REMOVED") then
136-
Codex.Quest.UpdateQuestList()
136+
C_Timer.After(0.5, Codex.Quest.UpdateQuestList)
137137

138138
elseif (event == "QUEST_ACCEPTED") then
139-
Codex.Quest.UpdateQuestList()
139+
local arg1, arg2 = ...;
140+
141+
AddQuestWatch(arg1)
142+
143+
C_Timer.After(0.5, Codex.Quest.UpdateQuestList)
140144

141145
elseif (event == "UNIT_QUEST_LOG_CHANGED") then
142146
local arg1, arg2, arg3, arg4 = ...;

0 commit comments

Comments
 (0)