From 261336373d0409d33ce095e123a3fad25970f1d3 Mon Sep 17 00:00:00 2001 From: azuraji <72912613+azuraji@users.noreply.github.com> Date: Tue, 20 Dec 2022 02:17:33 +0100 Subject: [PATCH] Fix a bug where the quest title wouldn't be correctly colored by level --- MonkeyQuest/MonkeyQuest.lua | 7 +++---- MonkeyQuest/MonkeyQuest.toc | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/MonkeyQuest/MonkeyQuest.lua b/MonkeyQuest/MonkeyQuest.lua index 00c4711..9fcde86 100644 --- a/MonkeyQuest/MonkeyQuest.lua +++ b/MonkeyQuest/MonkeyQuest.lua @@ -421,7 +421,7 @@ function MonkeyQuest_Refresh() _G["MonkeyQuestButton" .. iButtonId].m_iQuestIndex = i; _G["MonkeyQuestButton" .. iButtonId].id = iButtonId; - _G["MonkeyQuestButton" .. iButtonId].m_strQuestLogTitleText = questInfo.title; + _G["MonkeyQuestButton" .. iButtonId].m_strQuestLogTitleText = questInfo.title; iButtonId = iButtonId + 1; @@ -439,12 +439,11 @@ function MonkeyQuest_Refresh() or MonkeyQuestConfig[MonkeyQuest.m_strPlayer].m_bShowHidden) and (MonkeyQuestConfig[MonkeyQuest.m_strPlayer].m_bHideHiddenQuests == false or questInfo.isHidden == false)) then - local color = GetQuestDifficultyColor(questInfo.level); local strQuestLink = GetQuestLink(questInfo.questID); - local hexColor = strQuestLink and select(3, strfind(strQuestLink, "|cff(.+)|H")) or format("%02X%02X%02X", color.r * 255, color.g * 255, color.b * 255); + local hexColor = select(3, strfind(strQuestLink, "|cff(.+)|H")); -- adjust bright yellow to golden yellow - if (color.font == "QuestDifficulty_Difficult") then + if (hexColor == "ffff00") then hexColor = "ffd000" end diff --git a/MonkeyQuest/MonkeyQuest.toc b/MonkeyQuest/MonkeyQuest.toc index 31b5e3a..f51dfe9 100644 --- a/MonkeyQuest/MonkeyQuest.toc +++ b/MonkeyQuest/MonkeyQuest.toc @@ -1,5 +1,5 @@ ## Interface: 100002 -## Title: MonkeyQuest v10.0.2.4 +## Title: MonkeyQuest v10.0.2.5 ## Notes: Displays your quests for quick viewing. (http://www.toctastic.net/) ## Notes-deDE: Stellt Quests in einer kompakten Uebersicht dar. (http://www.toctastic.net/) ## Author: Trentin, Jim-Bim, azuraji