forked from aly/qstbak
muffin v7.4
This commit is contained in:
parent
8a7847ff37
commit
a4175abacd
54 changed files with 95984 additions and 123967 deletions
|
|
@ -54,7 +54,7 @@ internal sealed class ActiveQuestComponent
|
|||
public event EventHandler? Reload;
|
||||
|
||||
[GeneratedRegex("\\s\\s+", RegexOptions.IgnoreCase, "en-US")]
|
||||
[GeneratedCode("System.Text.RegularExpressions.Generator", "9.0.13.1716")]
|
||||
[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.13.7005")]
|
||||
private static Regex MultipleWhitespaceRegex()
|
||||
{
|
||||
return _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.Instance;
|
||||
|
|
@ -195,16 +195,16 @@ internal sealed class ActiveQuestComponent
|
|||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGold))
|
||||
{
|
||||
ImU8String text = new ImU8String(20, 4);
|
||||
text.AppendLiteral("Gathering: ");
|
||||
text.AppendFormatted(Shorten(currentQuest.Quest.Info.Name));
|
||||
text.AppendLiteral(" (");
|
||||
text.AppendFormatted(currentQuest.Quest.Id);
|
||||
text.AppendLiteral(") / ");
|
||||
text.AppendFormatted(currentQuest.Sequence);
|
||||
text.AppendLiteral(" / ");
|
||||
text.AppendFormatted(currentQuest.Step);
|
||||
ImGui.TextUnformatted(text);
|
||||
ImU8String text2 = new ImU8String(20, 4);
|
||||
text2.AppendLiteral("Gathering: ");
|
||||
text2.AppendFormatted(Shorten(currentQuest.Quest.Info.Name));
|
||||
text2.AppendLiteral(" (");
|
||||
text2.AppendFormatted(currentQuest.Quest.Id);
|
||||
text2.AppendLiteral(") / ");
|
||||
text2.AppendFormatted(currentQuest.Sequence);
|
||||
text2.AppendLiteral(" / ");
|
||||
text2.AppendFormatted(currentQuest.Step);
|
||||
ImGui.TextUnformatted(text2);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -222,16 +222,16 @@ internal sealed class ActiveQuestComponent
|
|||
ImGui.SetTooltip("This quest is loaded from your 'pluginConfigs\\Questionable\\Quests' directory.\nThis gets loaded even if Questionable ships with a newer/different version of the quest.");
|
||||
}
|
||||
}
|
||||
ImU8String text = new ImU8String(16, 4);
|
||||
text.AppendLiteral("Quest: ");
|
||||
text.AppendFormatted(Shorten(startedQuest.Quest.Info.Name));
|
||||
text.AppendLiteral(" (");
|
||||
text.AppendFormatted(startedQuest.Quest.Id);
|
||||
text.AppendLiteral(") / ");
|
||||
text.AppendFormatted(startedQuest.Sequence);
|
||||
text.AppendLiteral(" / ");
|
||||
text.AppendFormatted(startedQuest.Step);
|
||||
ImGui.TextUnformatted(text);
|
||||
ImU8String text3 = new ImU8String(16, 4);
|
||||
text3.AppendLiteral("Quest: ");
|
||||
text3.AppendFormatted(Shorten(startedQuest.Quest.Info.Name));
|
||||
text3.AppendLiteral(" (");
|
||||
text3.AppendFormatted(startedQuest.Quest.Id);
|
||||
text3.AppendLiteral(") / ");
|
||||
text3.AppendFormatted(startedQuest.Sequence);
|
||||
text3.AppendLiteral(" / ");
|
||||
text3.AppendFormatted(startedQuest.Step);
|
||||
ImGui.TextUnformatted(text3);
|
||||
if (startedQuest.Quest.Root.Disabled)
|
||||
{
|
||||
ImGui.SameLine();
|
||||
|
|
@ -271,30 +271,30 @@ internal sealed class ActiveQuestComponent
|
|||
if (flag)
|
||||
{
|
||||
int num2 = _objectTable.LocalPlayer?.Level ?? 0;
|
||||
text = new ImU8String(14, 1);
|
||||
text.AppendLiteral("Stop at level ");
|
||||
text.AppendFormatted(_configuration.Stop.TargetLevel);
|
||||
ImGui.BulletText(text);
|
||||
ImU8String text4 = new ImU8String(14, 1);
|
||||
text4.AppendLiteral("Stop at level ");
|
||||
text4.AppendFormatted(_configuration.Stop.TargetLevel);
|
||||
ImGui.BulletText(text4);
|
||||
if (num2 > 0)
|
||||
{
|
||||
ImGui.SameLine();
|
||||
if (num2 >= _configuration.Stop.TargetLevel)
|
||||
{
|
||||
Vector4 col2 = ImGuiColors.ParsedGreen;
|
||||
text = new ImU8String(22, 1);
|
||||
text.AppendLiteral("(Current: ");
|
||||
text.AppendFormatted(num2);
|
||||
text.AppendLiteral(" - Reached!)");
|
||||
ImGui.TextColored(in col2, text);
|
||||
ImU8String text5 = new ImU8String(22, 1);
|
||||
text5.AppendLiteral("(Current: ");
|
||||
text5.AppendFormatted(num2);
|
||||
text5.AppendLiteral(" - Reached!)");
|
||||
ImGui.TextColored(in col2, text5);
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector4 col2 = ImGuiColors.ParsedBlue;
|
||||
text = new ImU8String(11, 1);
|
||||
text.AppendLiteral("(Current: ");
|
||||
text.AppendFormatted(num2);
|
||||
text.AppendLiteral(")");
|
||||
ImGui.TextColored(in col2, text);
|
||||
ImU8String text6 = new ImU8String(11, 1);
|
||||
text6.AppendLiteral("(Current: ");
|
||||
text6.AppendFormatted(num2);
|
||||
text6.AppendLiteral(")");
|
||||
ImGui.TextColored(in col2, text6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -305,28 +305,28 @@ internal sealed class ActiveQuestComponent
|
|||
ImGui.Spacing();
|
||||
}
|
||||
int sequence = startedQuest.Sequence;
|
||||
text = new ImU8String(23, 1);
|
||||
text.AppendLiteral("Stop at quest sequence ");
|
||||
text.AppendFormatted(_configuration.Stop.TargetSequence);
|
||||
ImGui.BulletText(text);
|
||||
ImU8String text7 = new ImU8String(23, 1);
|
||||
text7.AppendLiteral("Stop at quest sequence ");
|
||||
text7.AppendFormatted(_configuration.Stop.TargetSequence);
|
||||
ImGui.BulletText(text7);
|
||||
ImGui.SameLine();
|
||||
if (sequence >= _configuration.Stop.TargetSequence)
|
||||
{
|
||||
Vector4 col2 = ImGuiColors.ParsedGreen;
|
||||
text = new ImU8String(22, 1);
|
||||
text.AppendLiteral("(Current: ");
|
||||
text.AppendFormatted(sequence);
|
||||
text.AppendLiteral(" - Reached!)");
|
||||
ImGui.TextColored(in col2, text);
|
||||
ImU8String text8 = new ImU8String(22, 1);
|
||||
text8.AppendLiteral("(Current: ");
|
||||
text8.AppendFormatted(sequence);
|
||||
text8.AppendLiteral(" - Reached!)");
|
||||
ImGui.TextColored(in col2, text8);
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector4 col2 = ImGuiColors.ParsedBlue;
|
||||
text = new ImU8String(11, 1);
|
||||
text.AppendLiteral("(Current: ");
|
||||
text.AppendFormatted(sequence);
|
||||
text.AppendLiteral(")");
|
||||
ImGui.TextColored(in col2, text);
|
||||
ImU8String text9 = new ImU8String(11, 1);
|
||||
text9.AppendLiteral("(Current: ");
|
||||
text9.AppendFormatted(sequence);
|
||||
text9.AppendLiteral(")");
|
||||
ImGui.TextColored(in col2, text9);
|
||||
}
|
||||
}
|
||||
if (flag2)
|
||||
|
|
@ -373,12 +373,12 @@ internal sealed class ActiveQuestComponent
|
|||
{
|
||||
if (_questRegistry.TryGetQuest(item2, out Quest quest2))
|
||||
{
|
||||
text = new ImU8String(3, 2);
|
||||
text.AppendFormatted(quest2.Info.Name);
|
||||
text.AppendLiteral(" (");
|
||||
text.AppendFormatted(item2);
|
||||
text.AppendLiteral(")");
|
||||
ImGui.BulletText(text);
|
||||
ImU8String text10 = new ImU8String(3, 2);
|
||||
text10.AppendFormatted(quest2.Info.Name);
|
||||
text10.AppendLiteral(" (");
|
||||
text10.AppendFormatted(item2);
|
||||
text10.AppendLiteral(")");
|
||||
ImGui.BulletText(text10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -396,13 +396,13 @@ internal sealed class ActiveQuestComponent
|
|||
{
|
||||
if (_questRegistry.TryGetQuest(elementId2, out Quest quest3))
|
||||
{
|
||||
text = new ImU8String(6, 3);
|
||||
text.AppendFormatted(quest3.Info.Name);
|
||||
text.AppendLiteral(" (");
|
||||
text.AppendFormatted(elementId2);
|
||||
text.AppendLiteral(") - ");
|
||||
text.AppendFormatted(value);
|
||||
ImGui.BulletText(text);
|
||||
ImU8String text12 = new ImU8String(6, 3);
|
||||
text12.AppendFormatted(quest3.Info.Name);
|
||||
text12.AppendLiteral(" (");
|
||||
text12.AppendFormatted(elementId2);
|
||||
text12.AppendLiteral(") - ");
|
||||
text12.AppendFormatted(value);
|
||||
ImGui.BulletText(text12);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -416,16 +416,16 @@ internal sealed class ActiveQuestComponent
|
|||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudYellow))
|
||||
{
|
||||
ImU8String text = new ImU8String(21, 4);
|
||||
text.AppendLiteral("Next Quest: ");
|
||||
text.AppendFormatted(Shorten(nextQuest.Quest.Info.Name));
|
||||
text.AppendLiteral(" (");
|
||||
text.AppendFormatted(nextQuest.Quest.Id);
|
||||
text.AppendLiteral(") / ");
|
||||
text.AppendFormatted(nextQuest.Sequence);
|
||||
text.AppendLiteral(" / ");
|
||||
text.AppendFormatted(nextQuest.Step);
|
||||
ImGui.TextUnformatted(text);
|
||||
ImU8String text13 = new ImU8String(21, 4);
|
||||
text13.AppendLiteral("Next Quest: ");
|
||||
text13.AppendFormatted(Shorten(nextQuest.Quest.Info.Name));
|
||||
text13.AppendLiteral(" (");
|
||||
text13.AppendFormatted(nextQuest.Quest.Id);
|
||||
text13.AppendLiteral(") / ");
|
||||
text13.AppendFormatted(nextQuest.Sequence);
|
||||
text13.AppendLiteral(" / ");
|
||||
text13.AppendFormatted(nextQuest.Step);
|
||||
ImGui.TextUnformatted(text13);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -462,10 +462,10 @@ internal sealed class ActiveQuestComponent
|
|||
if (currentQuest.Quest.Info.AlliedSociety != EAlliedSociety.None)
|
||||
{
|
||||
ImGui.SameLine();
|
||||
text = new ImU8String(2, 1);
|
||||
text.AppendLiteral("/ ");
|
||||
text.AppendFormatted(questProgressInfo.ClassJob);
|
||||
ImGui.Text(text);
|
||||
ImU8String text3 = new ImU8String(2, 1);
|
||||
text3.AppendLiteral("/ ");
|
||||
text3.AppendFormatted(questProgressInfo.ClassJob);
|
||||
ImGui.Text(text3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -600,12 +600,12 @@ internal sealed class ActiveQuestComponent
|
|||
}
|
||||
using (ImRaii.PushId("SimulatedStep"))
|
||||
{
|
||||
text = new ImU8String(9, 2);
|
||||
text.AppendLiteral("Step: ");
|
||||
text.AppendFormatted(simulatedQuest.Step);
|
||||
text.AppendLiteral(" / ");
|
||||
text.AppendFormatted(questSequence.Steps.Count - 1);
|
||||
ImGui.Text(text);
|
||||
ImU8String text2 = new ImU8String(9, 2);
|
||||
text2.AppendLiteral("Step: ");
|
||||
text2.AppendFormatted(simulatedQuest.Step);
|
||||
text2.AppendLiteral(" / ");
|
||||
text2.AppendFormatted(questSequence.Steps.Count - 1);
|
||||
ImGui.Text(text2);
|
||||
ImGui.BeginDisabled(simulatedQuest.Step == 0);
|
||||
if (ImGuiComponents.IconButton(FontAwesomeIcon.Minus))
|
||||
{
|
||||
|
|
@ -641,7 +641,7 @@ internal sealed class ActiveQuestComponent
|
|||
{
|
||||
if (text.Length > 35)
|
||||
{
|
||||
return string.Concat(text.AsSpan(0, 30).Trim(), ((SeIconChar)57434).ToIconString());
|
||||
return string.Concat(text.AsSpan(0, 30).Trim(), ((SeIconChar)57434).ToIconString().AsSpan());
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue