Skip to content

Commit

Permalink
Fix a bug where the quest title wouldn't be correctly colored by level
Browse files Browse the repository at this point in the history
  • Loading branch information
azuraji committed Dec 20, 2022
1 parent 5a3cc1e commit 2613363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions MonkeyQuest/MonkeyQuest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion MonkeyQuest/MonkeyQuest.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2613363

Please sign in to comment.