From 8a513f86055d06c3b2fae02f858bd7d7b64b390c Mon Sep 17 00:00:00 2001 From: p3lim Date: Wed, 5 Jan 2011 13:23:13 +0100 Subject: [PATCH] Add support for the quest greeting frame --- Monomyth.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Monomyth.lua b/Monomyth.lua index 7456053..46bf018 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -16,6 +16,20 @@ function addon:Register(event, func) end end +addon:Register('QUEST_GREETING', function() + for index = 1, MAX_NUM_QUESTS do + local button = _G['QuestTitleButton' .. index] + + if(button and button:IsVisible()) then + if(button.isActive == 1 and _G['QuestTitleButton' .. index .. 'QuestIcon']:GetTexture() == COMPLETE) then + return button:Click() + elseif(button.isActive == 0) then + return button:Click() + end + end + end +end) + addon:Register('GOSSIP_SHOW', function() for index = 1, NUMGOSSIPBUTTONS do local button = _G['GossipTitleButton' .. index] -- 1.7.9.5