Fix color corruption on Allied Society tab
This commit is contained in:
parent
2213ccb033
commit
1bcc027639
@ -1,5 +1,5 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>4.7</Version>
|
<Version>4.8</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -57,16 +57,28 @@ internal sealed class AlliedSocietyJournalComponent
|
|||||||
if (quests.Count == 0)
|
if (quests.Count == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bool containsNewQuests = quests.Any(x => !_questFunctions.IsQuestComplete(x.QuestId));
|
string label = $"{alliedSociety}###AlliedSociety{(int)alliedSociety}";
|
||||||
if (containsNewQuests)
|
#if DEBUG
|
||||||
ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudYellow);
|
bool isOpen;
|
||||||
|
if (quests.Any(x => !_questRegistry.IsKnownQuest(x.QuestId)))
|
||||||
|
{
|
||||||
|
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange))
|
||||||
|
isOpen = ImGui.CollapsingHeader(label);
|
||||||
|
}
|
||||||
|
else if (quests.Any(x => !_questFunctions.IsQuestComplete(x.QuestId)))
|
||||||
|
{
|
||||||
|
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudYellow))
|
||||||
|
isOpen = ImGui.CollapsingHeader(label);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
isOpen = ImGui.CollapsingHeader(label);
|
||||||
|
#else
|
||||||
|
bool isOpen = ImGui.CollapsingHeader(label);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!ImGui.CollapsingHeader($"{alliedSociety}###AlliedSociety{(int)alliedSociety}"))
|
if (!isOpen)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (containsNewQuests)
|
|
||||||
ImGui.PopStyleColor();
|
|
||||||
|
|
||||||
if (alliedSociety <= EAlliedSociety.Ixal)
|
if (alliedSociety <= EAlliedSociety.Ixal)
|
||||||
{
|
{
|
||||||
for (byte i = 1; i <= 8; ++i)
|
for (byte i = 1; i <= 8; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user