Fix for Quest Log not functioning properly. Changed the way how quest titles are grabbed for tooltip parsing.
Xruptor [07-26-18 - 03:21]
Fix for Quest Log not functioning properly. Changed the way how quest titles are grabbed for tooltip parsing.
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