2 local TourGuide
= TourGuide
5 function TourGuide
:IsQuestAcceptable(name
)
6 for i
,v
in pairs(self
.actions
) do
7 if v
== "ACCEPT" and self
.quests
[i
] == name
then return true end
12 local notlisted
= CreateFrame("Frame", nil, QuestFrame
)
13 notlisted
:SetWidth(32)
14 notlisted
:SetHeight(32)
15 notlisted
:SetPoint("TOPLEFT", 70, -45)
18 notlisted
:RegisterEvent("QUEST_DETAIL")
19 notlisted
:RegisterEvent("QUEST_COMPLETE")
20 notlisted
:SetScript("OnEvent", function(self
, event
)
21 if event
== "QUEST_COMPLETE" then return self
:Hide() end
22 local quest
= GetTitleText()
23 if quest
and TourGuide
:IsQuestAcceptable(quest
) then self
:Hide()
28 local nltex
= notlisted
:CreateTexture()
30 nltex
:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark")