diff --git a/Questionable/Windows/JournalComponents/AlliedSocietyJournalComponent.cs b/Questionable/Windows/JournalComponents/AlliedSocietyJournalComponent.cs index c7e50602..a5ae13b3 100644 --- a/Questionable/Windows/JournalComponents/AlliedSocietyJournalComponent.cs +++ b/Questionable/Windows/JournalComponents/AlliedSocietyJournalComponent.cs @@ -60,7 +60,7 @@ internal sealed class AlliedSocietyJournalComponent string label = $"{alliedSociety}###AlliedSociety{(int)alliedSociety}"; #if DEBUG bool isOpen; - if (quests.Any(x => !_questRegistry.IsKnownQuest(x.QuestId))) + if (quests.Any(x => !_questRegistry.TryGetQuest(x.QuestId, out var quest) || quest.Root.Disabled)) { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange)) isOpen = ImGui.CollapsingHeader(label); @@ -103,7 +103,7 @@ internal sealed class AlliedSocietyJournalComponent private void DrawQuest(QuestInfo questInfo) { var (color, icon, tooltipText) = _uiUtils.GetQuestStyle(questInfo.QuestId); - if (!_questRegistry.TryGetQuest(questInfo.QuestId, out var quest)) + if (!_questRegistry.TryGetQuest(questInfo.QuestId, out var quest) || quest.Root.Disabled) color = ImGuiColors.DalamudGrey; if (_uiUtils.ChecklistItem($"{questInfo.Name} ({tooltipText})", color, icon)) diff --git a/Questionable/Windows/QuestComponents/QuestTooltipComponent.cs b/Questionable/Windows/QuestComponents/QuestTooltipComponent.cs index 3f426f6c..4d4f1d2c 100644 --- a/Questionable/Windows/QuestComponents/QuestTooltipComponent.cs +++ b/Questionable/Windows/QuestComponents/QuestTooltipComponent.cs @@ -60,6 +60,12 @@ internal sealed class QuestTooltipComponent if (_questRegistry.TryGetQuest(questInfo.QuestId, out Quest? quest)) { + if (quest.Root.Disabled) + { + ImGui.SameLine(); + ImGui.TextColored(ImGuiColors.DalamudRed, "Disabled"); + } + if (quest.Root.Author.Count == 1) ImGui.Text($"Author: {quest.Root.Author[0]}"); else @@ -68,7 +74,7 @@ internal sealed class QuestTooltipComponent else { ImGui.SameLine(); - ImGui.TextUnformatted("NoQuestPath"); + ImGui.TextColored(ImGuiColors.DalamudRed, "NoQuestPath"); } DrawQuestUnlocks(questInfo, 0);