Update some UI color coding

This commit is contained in:
Liza 2024-12-26 00:28:09 +01:00
parent 011c616748
commit cfe8962174
Signed by: liza
GPG Key ID: 2C41B84815CF6445
2 changed files with 9 additions and 3 deletions

View File

@ -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))

View File

@ -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);