muffin v7.5.1

This commit is contained in:
alydev 2026-05-01 08:59:48 +10:00
parent a6481e7b9a
commit 965a736f84
59 changed files with 4112 additions and 5059 deletions

View file

@ -61,45 +61,30 @@ internal sealed class AlliedSocietyJournalComponent
public void DrawAlliedSocietyQuests()
{
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
TabItemDisposable val = ImRaii.TabItem((ImU8String)"Allied Societies");
try
using ImRaii.TabItemDisposable tabItemDisposable = ImRaii.TabItem("Allied Societies");
if (!tabItemDisposable)
{
if (!val)
return;
}
DrawDailyAllowanceHeader();
foreach (EAlliedSociety item in from x in Enum.GetValues<EAlliedSociety>()
where x != EAlliedSociety.None
select x)
{
List<QuestInfo> list = (from x in _alliedSocietyQuestFunctions.GetAvailableAlliedSocietyQuests(item)
select (QuestInfo)_questData.GetQuestInfo(x)).ToList();
if (list.Count != 0 && DrawAlliedSocietyHeader(item, list))
{
return;
}
DrawDailyAllowanceHeader();
foreach (EAlliedSociety item in from x in Enum.GetValues<EAlliedSociety>()
where x != EAlliedSociety.None
select x)
{
List<QuestInfo> list = (from x in _alliedSocietyQuestFunctions.GetAvailableAlliedSocietyQuests(item)
select (QuestInfo)_questData.GetQuestInfo(x)).ToList();
if (list.Count != 0 && DrawAlliedSocietyHeader(item, list))
using (ImRaii.PushIndent())
{
IndentDisposable val2 = ImRaii.PushIndent(1, true);
try
{
DrawAddToPriorityButtons(item, list);
ImGui.Spacing();
ImGui.Separator();
ImGui.Spacing();
DrawQuestList(item, list);
}
finally
{
((IDisposable)val2)?.Dispose();
}
DrawAddToPriorityButtons(item, list);
ImGui.Spacing();
ImGui.Separator();
ImGui.Spacing();
DrawQuestList(item, list);
}
}
}
finally
{
((TabItemDisposable)(ref val)).Dispose();
}
}
private unsafe void DrawDailyAllowanceHeader()
@ -286,15 +271,10 @@ internal sealed class AlliedSocietyJournalComponent
private static void DrawDisabledAddButton()
{
DisabledDisposable val = ImRaii.Disabled(true);
try
using (ImRaii.Disabled(disabled: true))
{
ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, "Add to Priority");
}
finally
{
((IDisposable)val)?.Dispose();
}
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
{
ImGui.SetTooltip("No quests available to add (may be disabled, already in priority, or not available)");
@ -304,8 +284,7 @@ internal sealed class AlliedSocietyJournalComponent
private void DrawArrSocietyButtons(EAlliedSociety alliedSociety, List<QuestInfo> availableQuests, int dailyLimit, int remainingAllowances)
{
int num = Math.Min(Math.Min(dailyLimit, remainingAllowances), availableQuests.Count);
DisabledDisposable val = ImRaii.Disabled(remainingAllowances == 0);
try
using (ImRaii.Disabled(remainingAllowances == 0))
{
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, num switch
{
@ -318,10 +297,6 @@ internal sealed class AlliedSocietyJournalComponent
AddQuestsToPriority(alliedSociety, availableQuests.Take(num).ToList());
}
}
finally
{
((IDisposable)val)?.Dispose();
}
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
{
DrawRecommendedButtonTooltip(num, remainingAllowances, dailyLimit, alliedSociety, availableQuests.Count);
@ -342,8 +317,7 @@ internal sealed class AlliedSocietyJournalComponent
ImGui.BeginTooltip();
if (remainingAllowances == 0)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed))
{
ImU8String text = new ImU8String(0, 1);
text.AppendFormatted(SeIconChar.Cross.ToIconString());
@ -351,10 +325,6 @@ internal sealed class AlliedSocietyJournalComponent
ImGui.SameLine();
ImGui.TextUnformatted("No daily allowances remaining");
}
finally
{
((IDisposable)val)?.Dispose();
}
Vector4 col = ImGuiColors.DalamudGrey3;
ImU8String text2 = new ImU8String(44, 1);
text2.AppendLiteral("You've used all ");
@ -364,8 +334,7 @@ internal sealed class AlliedSocietyJournalComponent
}
else if (questsToAddCount == remainingAllowances && questsToAddCount < availableCount)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen))
{
ImU8String text3 = new ImU8String(0, 1);
text3.AppendFormatted(SeIconChar.QuestSync.ToIconString());
@ -378,10 +347,6 @@ internal sealed class AlliedSocietyJournalComponent
text4.AppendFormatted((questsToAddCount == 1) ? "quest" : "quests");
ImGui.TextUnformatted(text4);
}
finally
{
((IDisposable)val)?.Dispose();
}
Vector4 col = ImGuiColors.DalamudGrey3;
ImU8String text5 = new ImU8String(44, 2);
text5.AppendLiteral("You can complete ");
@ -395,8 +360,7 @@ internal sealed class AlliedSocietyJournalComponent
}
else if (questsToAddCount == dailyLimit)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen))
{
ImU8String text6 = new ImU8String(0, 1);
text6.AppendFormatted(SeIconChar.QuestSync.ToIconString());
@ -408,10 +372,6 @@ internal sealed class AlliedSocietyJournalComponent
text7.AppendLiteral(" quests");
ImGui.TextUnformatted(text7);
}
finally
{
((IDisposable)val)?.Dispose();
}
Vector4 col = ImGuiColors.DalamudGrey3;
ImU8String text8 = new ImU8String(51, 2);
text8.AppendLiteral("This will use ");
@ -425,8 +385,7 @@ internal sealed class AlliedSocietyJournalComponent
}
else if (questsToAddCount == availableCount)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen))
{
ImU8String text9 = new ImU8String(0, 1);
text9.AppendFormatted(SeIconChar.QuestSync.ToIconString());
@ -441,10 +400,6 @@ internal sealed class AlliedSocietyJournalComponent
text10.AppendFormatted((questsToAddCount == 1) ? "quest" : "quests");
ImGui.TextUnformatted(text10);
}
finally
{
((IDisposable)val)?.Dispose();
}
Vector4 col = ImGuiColors.DalamudGrey3;
ImU8String text11 = new ImU8String(37, 2);
text11.AppendLiteral("Uses ");
@ -458,8 +413,7 @@ internal sealed class AlliedSocietyJournalComponent
}
else
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudYellow, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudYellow))
{
ImU8String text12 = new ImU8String(0, 1);
text12.AppendFormatted(SeIconChar.BoxedLetterQ.ToIconString());
@ -474,10 +428,6 @@ internal sealed class AlliedSocietyJournalComponent
text13.AppendFormatted((questsToAddCount == 1) ? "quest" : "quests");
ImGui.TextUnformatted(text13);
}
finally
{
((IDisposable)val)?.Dispose();
}
Vector4 col = ImGuiColors.DalamudGrey3;
ImU8String text14 = new ImU8String(55, 2);
text14.AppendLiteral("Limited by available quests (");
@ -497,8 +447,7 @@ internal sealed class AlliedSocietyJournalComponent
ImGui.BeginTooltip();
if (availableCount > remainingAllowances)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange))
{
ImU8String text = new ImU8String(0, 1);
text.AppendFormatted(SeIconChar.Cross.ToIconString());
@ -506,10 +455,6 @@ internal sealed class AlliedSocietyJournalComponent
ImGui.SameLine();
ImGui.TextUnformatted("Warning: Exceeds remaining allowances");
}
finally
{
((IDisposable)val)?.Dispose();
}
ImGui.Spacing();
ImU8String text2 = new ImU8String(54, 1);
text2.AppendLiteral("This adds all ");
@ -528,8 +473,7 @@ internal sealed class AlliedSocietyJournalComponent
}
else if (availableCount > dailyLimit)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange))
{
ImU8String text4 = new ImU8String(0, 1);
text4.AppendFormatted(SeIconChar.Cross.ToIconString());
@ -537,10 +481,6 @@ internal sealed class AlliedSocietyJournalComponent
ImGui.SameLine();
ImGui.TextUnformatted("Warning: Exceeds daily optimal amount");
}
finally
{
((IDisposable)val)?.Dispose();
}
ImGui.Spacing();
ImU8String text5 = new ImU8String(32, 1);
text5.AppendLiteral("This adds all ");
@ -563,8 +503,7 @@ internal sealed class AlliedSocietyJournalComponent
}
else
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen))
{
ImU8String text8 = new ImU8String(0, 1);
text8.AppendFormatted(SeIconChar.QuestSync.ToIconString());
@ -579,10 +518,6 @@ internal sealed class AlliedSocietyJournalComponent
text9.AppendFormatted((availableCount == 1) ? "quest" : "quests");
ImGui.TextUnformatted(text9);
}
finally
{
((IDisposable)val)?.Dispose();
}
ImGui.Spacing();
Vector4 col = ImGuiColors.DalamudGrey3;
ImU8String text10 = new ImU8String(27, 2);
@ -626,8 +561,7 @@ internal sealed class AlliedSocietyJournalComponent
ImGui.Spacing();
if (availableQuests.Count <= remainingAllowances)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen))
{
ImU8String text2 = new ImU8String(0, 1);
text2.AppendFormatted(SeIconChar.QuestSync.ToIconString());
@ -642,16 +576,11 @@ internal sealed class AlliedSocietyJournalComponent
text3.AppendFormatted((remainingAllowances == 1) ? "allowance" : "allowances");
ImGui.TextUnformatted(text3);
}
finally
{
((IDisposable)val)?.Dispose();
}
ImGui.TextColored(ImGuiColors.DalamudGrey3, "All can be completed today");
}
else
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange))
{
ImU8String text4 = new ImU8String(0, 1);
text4.AppendFormatted(SeIconChar.Cross.ToIconString());
@ -663,10 +592,6 @@ internal sealed class AlliedSocietyJournalComponent
text5.AppendLiteral(")");
ImGui.TextUnformatted(text5);
}
finally
{
((IDisposable)val)?.Dispose();
}
ImGui.TextColored(ImGuiColors.DalamudGrey3, "Some quests won't be completable until tomorrow");
}
ImGui.EndTooltip();