muffin v7.5.0

This commit is contained in:
alydev 2026-05-01 05:17:35 +10:00
parent afafd5e377
commit a6481e7b9a
67 changed files with 4281 additions and 2372 deletions

View file

@ -62,42 +62,60 @@ internal sealed class DutyJournalComponent
public void DrawDuties()
{
using ImRaii.IEndObject endObject = ImRaii.TabItem("Duties");
if (!endObject)
//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)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
TabItemDisposable val = ImRaii.TabItem((ImU8String)"Duties");
try
{
return;
}
if (ImGui.CollapsingHeader("Explanation", ImGuiTreeNodeFlags.DefaultOpen))
{
ImGui.Text("The list below shows all duties and their unlock status.");
ImGui.BulletText("'Unlocked' shows duties you have access to.");
ImGui.BulletText("'Completed' shows duties you have finished at least once.");
ImGui.BulletText("Click on a duty to see which quest unlocks it.");
ImGui.Spacing();
ImGui.Separator();
ImGui.Spacing();
}
DrawFilterControls();
if (_filteredCategories.Count > 0)
{
using (ImRaii.IEndObject endObject2 = ImRaii.Table("Duties", 3, ImGuiTableFlags.NoSavedSettings))
if (!val)
{
if (!endObject2)
{
return;
}
ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.NoHide);
ImGui.TableSetupColumn("Unlocked", ImGuiTableColumnFlags.WidthFixed, 120f * ImGui.GetIO().FontGlobalScale);
ImGui.TableSetupColumn("Completed", ImGuiTableColumnFlags.WidthFixed, 120f * ImGui.GetIO().FontGlobalScale);
ImGui.TableHeadersRow();
foreach (DutyCategory filteredCategory in _filteredCategories)
{
DrawCategory(filteredCategory);
}
return;
}
if (ImGui.CollapsingHeader("Explanation", ImGuiTreeNodeFlags.DefaultOpen))
{
ImGui.Text("The list below shows all duties and their unlock status.");
ImGui.BulletText("'Unlocked' shows duties you have access to.");
ImGui.BulletText("'Completed' shows duties you have finished at least once.");
ImGui.BulletText("Click on a duty to see which quest unlocks it.");
ImGui.Spacing();
ImGui.Separator();
ImGui.Spacing();
}
DrawFilterControls();
if (_filteredCategories.Count > 0)
{
TableDisposable val2 = ImRaii.Table((ImU8String)"Duties", 3, ImGuiTableFlags.NoSavedSettings);
try
{
if (!val2)
{
return;
}
ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.NoHide);
ImGui.TableSetupColumn("Unlocked", ImGuiTableColumnFlags.WidthFixed, 120f * ImGui.GetIO().FontGlobalScale);
ImGui.TableSetupColumn("Completed", ImGuiTableColumnFlags.WidthFixed, 120f * ImGui.GetIO().FontGlobalScale);
ImGui.TableHeadersRow();
foreach (DutyCategory filteredCategory in _filteredCategories)
{
DrawCategory(filteredCategory);
}
return;
}
finally
{
((TableDisposable)(ref val2)).Dispose();
}
}
ImGui.Text("No duties match your search.");
}
finally
{
((TabItemDisposable)(ref val)).Dispose();
}
ImGui.Text("No duties match your search.");
}
private void DrawFilterControls()
@ -174,69 +192,78 @@ internal sealed class DutyJournalComponent
private void DrawDutyTooltip(DutyInfo duty)
{
using ImRaii.IEndObject endObject = ImRaii.Tooltip();
if (!endObject)
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
TooltipDisposable val = ImRaii.Tooltip();
try
{
return;
}
ImGui.TextColored(ImGuiColors.DalamudWhite, duty.Name);
Vector4 col = ImGuiColors.DalamudGrey;
ImU8String text = new ImU8String(12, 1);
text.AppendLiteral("Content ID: ");
text.AppendFormatted(duty.ContentFinderConditionId);
ImGui.TextColored(in col, text);
ImGui.Separator();
ImU8String text2 = new ImU8String(16, 1);
text2.AppendLiteral("Level Required: ");
text2.AppendFormatted(duty.Level);
ImGui.Text(text2);
if (duty.ItemLevel > 0)
{
ImU8String text3 = new ImU8String(21, 1);
text3.AppendLiteral("Item Level Required: ");
text3.AppendFormatted(duty.ItemLevel);
ImGui.Text(text3);
}
ImU8String text4 = new ImU8String(6, 1);
text4.AppendLiteral("Type: ");
text4.AppendFormatted(duty.ContentTypeName);
ImGui.Text(text4);
if (duty.IsHighEndDuty)
{
ImGui.SameLine();
ImGui.TextColored(ImGuiColors.DalamudOrange, "(High-End)");
}
ImGui.Separator();
if (duty.IsUnlocked)
{
ImGui.TextColored(ImGuiColors.ParsedGreen, "Status: Unlocked");
}
else
{
ImGui.TextColored(ImGuiColors.DalamudRed, "Status: Locked");
}
if (duty.UnlockQuests.Count > 0)
{
ImGui.Separator();
ImGui.Text("Unlock Quest(s):");
if (!((TooltipDisposable)(ref val)).Alive)
{
foreach (QuestId unlockQuest in duty.UnlockQuests)
{
if (_questData.TryGetQuestInfo(unlockQuest, out IQuestInfo questInfo))
{
var (color, icon, _) = _uiUtils.GetQuestStyle(unlockQuest);
_uiUtils.ChecklistItem($"{questInfo.Name} ({unlockQuest})", color, icon);
}
else
{
_uiUtils.ChecklistItem($"Unknown Quest ({unlockQuest})", ImGuiColors.DalamudGrey, FontAwesomeIcon.Question);
}
}
return;
}
ImGui.TextColored(ImGuiColors.DalamudWhite, duty.Name);
Vector4 col = ImGuiColors.DalamudGrey;
ImU8String text = new ImU8String(12, 1);
text.AppendLiteral("Content ID: ");
text.AppendFormatted(duty.ContentFinderConditionId);
ImGui.TextColored(in col, text);
ImGui.Separator();
ImU8String text2 = new ImU8String(16, 1);
text2.AppendLiteral("Level Required: ");
text2.AppendFormatted(duty.Level);
ImGui.Text(text2);
if (duty.ItemLevel > 0)
{
ImU8String text3 = new ImU8String(21, 1);
text3.AppendLiteral("Item Level Required: ");
text3.AppendFormatted(duty.ItemLevel);
ImGui.Text(text3);
}
ImU8String text4 = new ImU8String(6, 1);
text4.AppendLiteral("Type: ");
text4.AppendFormatted(duty.ContentTypeName);
ImGui.Text(text4);
if (duty.IsHighEndDuty)
{
ImGui.SameLine();
ImGui.TextColored(ImGuiColors.DalamudOrange, "(High-End)");
}
ImGui.Separator();
if (duty.IsUnlocked)
{
ImGui.TextColored(ImGuiColors.ParsedGreen, "Status: Unlocked");
}
else
{
ImGui.TextColored(ImGuiColors.DalamudRed, "Status: Locked");
}
if (duty.UnlockQuests.Count > 0)
{
ImGui.Separator();
ImGui.Text("Unlock Quest(s):");
{
foreach (QuestId unlockQuest in duty.UnlockQuests)
{
if (_questData.TryGetQuestInfo(unlockQuest, out IQuestInfo questInfo))
{
var (color, icon, _) = _uiUtils.GetQuestStyle(unlockQuest);
_uiUtils.ChecklistItem($"{questInfo.Name} ({unlockQuest})", color, icon);
}
else
{
_uiUtils.ChecklistItem($"Unknown Quest ({unlockQuest})", ImGuiColors.DalamudGrey, FontAwesomeIcon.Question);
}
}
return;
}
}
ImGui.Separator();
ImGui.TextColored(ImGuiColors.DalamudGrey, "No unlock quest data available.");
}
finally
{
((TooltipDisposable)(ref val)).Dispose();
}
ImGui.Separator();
ImGui.TextColored(ImGuiColors.DalamudGrey, "No unlock quest data available.");
}
private void DrawDutyStatus(bool? status)