From d776cb82b50707499cb52e95626f5e893655e633 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Wed, 25 Jul 2018 23:21:13 -0400 Subject: [PATCH] Fix for Quest Log not functioning properly. Changed the way how quest titles are grabbed for tooltip parsing. --- xanTooltipHoudini.lua | 31 +++++-------------------------- xanTooltipHoudini.toc | 2 +- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/xanTooltipHoudini.lua b/xanTooltipHoudini.lua index 2f98a07..d346b89 100644 --- a/xanTooltipHoudini.lua +++ b/xanTooltipHoudini.lua @@ -67,36 +67,15 @@ local function checkPlayerQuest() end function f:doQuestTitleGrab() - --we have to expand and then collaspe headers because GetQuestLogTitle won't return anything if it's closed - local saved_position = GetQuestLogSelection() - + for i=1,GetNumQuestLogEntries() do - local _,_,_,_,_,isCollapsed,isComplete = GetQuestLogTitle(i) + local questTitle, _, _, _, isHeader = GetQuestLogTitle(i) - if isCollapsed then - local count = GetNumQuestLogEntries() - - ExpandQuestHeader(i) - count = GetNumQuestLogEntries() - count - - for j=i+1,i+count do - local questTitle, _, _, _, isHeader = GetQuestLogTitle(j) - --store the player quest - if questTitle and not isHeader then - playerQuests[questTitle] = questTitle - end - end - - CollapseQuestHeader(i) - else - local questTitle, _, _, _, isHeader = GetQuestLogTitle(i); - if questTitle and not isHeader then - playerQuests[questTitle] = questTitle - end + if questTitle and not isHeader then + playerQuests[questTitle] = questTitle end end - SelectQuestLogEntry(saved_position) - + --reset lastTooltipTarget = "" end diff --git a/xanTooltipHoudini.toc b/xanTooltipHoudini.toc index e9d7afa..9e447a3 100644 --- a/xanTooltipHoudini.toc +++ b/xanTooltipHoudini.toc @@ -2,7 +2,7 @@ ## Title: xanTooltipHoudini ## Notes: Hides the game tooltip while in combat. ## Author: Xruptor -## Version: 2.5 +## Version: 2.6 ## OptionalDeps: tekDebug ## SavedVariables: XTH_DB -- 1.7.9.5