forked from aly/qstbak
muffin v7.5.1
This commit is contained in:
parent
a6481e7b9a
commit
965a736f84
59 changed files with 4112 additions and 5059 deletions
|
|
@ -62,60 +62,42 @@ internal sealed class DutyJournalComponent
|
|||
|
||||
public void DrawDuties()
|
||||
{
|
||||
//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
|
||||
using ImRaii.TabItemDisposable tabItemDisposable = ImRaii.TabItem("Duties");
|
||||
if (!tabItemDisposable)
|
||||
{
|
||||
if (!val)
|
||||
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.TableDisposable tableDisposable = ImRaii.Table("Duties", 3, ImGuiTableFlags.NoSavedSettings))
|
||||
{
|
||||
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 (!tableDisposable)
|
||||
{
|
||||
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
|
||||
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)
|
||||
{
|
||||
((TableDisposable)(ref val2)).Dispose();
|
||||
DrawCategory(filteredCategory);
|
||||
}
|
||||
return;
|
||||
}
|
||||
ImGui.Text("No duties match your search.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
((TabItemDisposable)(ref val)).Dispose();
|
||||
}
|
||||
ImGui.Text("No duties match your search.");
|
||||
}
|
||||
|
||||
private void DrawFilterControls()
|
||||
|
|
@ -192,78 +174,69 @@ internal sealed class DutyJournalComponent
|
|||
|
||||
private void DrawDutyTooltip(DutyInfo duty)
|
||||
{
|
||||
//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
|
||||
using ImRaii.TooltipDisposable tooltipDisposable = ImRaii.Tooltip();
|
||||
if (!tooltipDisposable.Alive)
|
||||
{
|
||||
if (!((TooltipDisposable)(ref val)).Alive)
|
||||
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.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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue