From b223630f3e20412a387867d7fe7ac59e1059368e Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 5 Feb 2012 15:45:40 +0100 Subject: [PATCH] Allow Ctrl- and Alt-clicking quests in the questlog for abandoning and sharing --- Monomyth.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Monomyth.lua b/Monomyth.lua index cedcbbd..1870c2a 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -149,4 +149,15 @@ Monomyth:Register('BAG_UPDATE', function(bag) end end) +hooksecurefunc('QuestLogTitleButton_OnClick', function(self) + if(self.isHeader) then return end + QuestLog_SetSelection(self:GetID()) + + if(IsControlKeyDown()) then + AbandonQuest() + elseif(IsAltKeyDown() and GetQuestLogPushable()) then + QuestLogPushQuest() + end +end) + QuestInfoDescriptionText.SetAlphaGradient = function() end -- 1.7.9.5