muffin v6.35 with old pdb

This commit is contained in:
alydev 2025-10-29 06:52:53 +10:00
parent ac85599236
commit b5d2cc6708
31 changed files with 958 additions and 958 deletions

View file

@ -175,16 +175,16 @@ internal sealed class ActiveQuestComponent
{
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed))
{
ImU8String text = new ImU8String(26, 4);
text.AppendLiteral("Simulated Quest: ");
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 hover = new ImU8String(26, 4);
hover.AppendLiteral("Simulated Quest: ");
hover.AppendFormatted(Shorten(currentQuest.Quest.Info.Name));
hover.AppendLiteral(" (");
hover.AppendFormatted(currentQuest.Quest.Id);
hover.AppendLiteral(") / ");
hover.AppendFormatted(currentQuest.Sequence);
hover.AppendLiteral(" / ");
hover.AppendFormatted(currentQuest.Step);
ImGui.TextUnformatted(hover);
return;
}
}
@ -192,16 +192,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 hover = new ImU8String(20, 4);
hover.AppendLiteral("Gathering: ");
hover.AppendFormatted(Shorten(currentQuest.Quest.Info.Name));
hover.AppendLiteral(" (");
hover.AppendFormatted(currentQuest.Quest.Id);
hover.AppendLiteral(") / ");
hover.AppendFormatted(currentQuest.Sequence);
hover.AppendLiteral(" / ");
hover.AppendFormatted(currentQuest.Step);
ImGui.TextUnformatted(hover);
return;
}
}
@ -219,25 +219,25 @@ 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 hover = new ImU8String(16, 4);
hover.AppendLiteral("Quest: ");
hover.AppendFormatted(Shorten(startedQuest.Quest.Info.Name));
hover.AppendLiteral(" (");
hover.AppendFormatted(startedQuest.Quest.Id);
hover.AppendLiteral(") / ");
hover.AppendFormatted(startedQuest.Sequence);
hover.AppendLiteral(" / ");
hover.AppendFormatted(startedQuest.Step);
ImGui.TextUnformatted(hover);
if (startedQuest.Quest.Root.Disabled)
{
ImGui.SameLine();
ImGui.TextColored(ImGuiColors.DalamudRed, "Disabled");
}
bool flag = _configuration.Stop.Enabled && _configuration.Stop.LevelToStopAfter;
bool flag2 = _configuration.Stop.Enabled && _configuration.Stop.QuestsToStopAfter.Any((ElementId x) => !_questFunctions.IsQuestComplete(x) && !_questFunctions.IsQuestUnobtainable(x));
bool flag3 = _configuration.Stop.Enabled && _configuration.Stop.SequenceToStopAfter;
if (flag || flag2 || flag3)
bool instanceId = _configuration.Stop.Enabled && _configuration.Stop.QuestsToStopAfter.Any((ElementId x) => !_questFunctions.IsQuestComplete(x) && !_questFunctions.IsQuestUnobtainable(x));
bool color = _configuration.Stop.Enabled && _configuration.Stop.SequenceToStopAfter;
if (flag || instanceId || color)
{
ImGui.SameLine();
Vector4 col = ImGuiColors.ParsedPurple;
@ -253,7 +253,7 @@ internal sealed class ActiveQuestComponent
col = ImGuiColors.ParsedBlue;
}
}
if (flag3)
if (color)
{
col = ((startedQuest.Sequence < _configuration.Stop.TargetSequence) ? ImGuiColors.ParsedBlue : ImGuiColors.ParsedGreen);
}
@ -268,67 +268,67 @@ internal sealed class ActiveQuestComponent
if (flag)
{
int num2 = _clientState.LocalPlayer?.Level ?? 0;
text = new ImU8String(14, 1);
text.AppendLiteral("Stop at level ");
text.AppendFormatted(_configuration.Stop.TargetLevel);
ImGui.BulletText(text);
hover = new ImU8String(14, 1);
hover.AppendLiteral("Stop at level ");
hover.AppendFormatted(_configuration.Stop.TargetLevel);
ImGui.BulletText(hover);
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);
Vector4 icon = ImGuiColors.ParsedGreen;
hover = new ImU8String(22, 1);
hover.AppendLiteral("(Current: ");
hover.AppendFormatted(num2);
hover.AppendLiteral(" - Reached!)");
ImGui.TextColored(in icon, hover);
}
else
{
Vector4 col2 = ImGuiColors.ParsedBlue;
text = new ImU8String(11, 1);
text.AppendLiteral("(Current: ");
text.AppendFormatted(num2);
text.AppendLiteral(")");
ImGui.TextColored(in col2, text);
Vector4 icon = ImGuiColors.ParsedBlue;
hover = new ImU8String(11, 1);
hover.AppendLiteral("(Current: ");
hover.AppendFormatted(num2);
hover.AppendLiteral(")");
ImGui.TextColored(in icon, hover);
}
}
}
if (flag3)
if (color)
{
if (flag)
{
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);
hover = new ImU8String(23, 1);
hover.AppendLiteral("Stop at quest sequence ");
hover.AppendFormatted(_configuration.Stop.TargetSequence);
ImGui.BulletText(hover);
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);
Vector4 icon = ImGuiColors.ParsedGreen;
hover = new ImU8String(22, 1);
hover.AppendLiteral("(Current: ");
hover.AppendFormatted(sequence);
hover.AppendLiteral(" - Reached!)");
ImGui.TextColored(in icon, hover);
}
else
{
Vector4 col2 = ImGuiColors.ParsedBlue;
text = new ImU8String(11, 1);
text.AppendLiteral("(Current: ");
text.AppendFormatted(sequence);
text.AppendLiteral(")");
ImGui.TextColored(in col2, text);
Vector4 icon = ImGuiColors.ParsedBlue;
hover = new ImU8String(11, 1);
hover.AppendLiteral("(Current: ");
hover.AppendFormatted(sequence);
hover.AppendLiteral(")");
ImGui.TextColored(in icon, hover);
}
}
if (flag2)
if (instanceId)
{
if (flag || flag3)
if (flag || color)
{
ImGui.Spacing();
}
@ -338,8 +338,8 @@ internal sealed class ActiveQuestComponent
{
if (_questRegistry.TryGetQuest(item, out Quest quest))
{
var (color, icon, _) = _uiUtils.GetQuestStyle(item);
_uiUtils.ChecklistItem($"{quest.Info.Name} ({item})", color, icon);
var (color2, icon2, _) = _uiUtils.GetQuestStyle(item);
_uiUtils.ChecklistItem($"{quest.Info.Name} ({item})", color2, icon2);
}
}
ImGui.Unindent();
@ -370,12 +370,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);
hover = new ImU8String(3, 2);
hover.AppendFormatted(quest2.Info.Name);
hover.AppendLiteral(" (");
hover.AppendFormatted(item2);
hover.AppendLiteral(")");
ImGui.BulletText(hover);
}
}
}
@ -393,13 +393,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);
hover = new ImU8String(6, 3);
hover.AppendFormatted(quest3.Info.Name);
hover.AppendLiteral(" (");
hover.AppendFormatted(elementId2);
hover.AppendLiteral(") - ");
hover.AppendFormatted(value);
ImGui.BulletText(hover);
}
}
}
@ -413,41 +413,41 @@ 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 hover = new ImU8String(21, 4);
hover.AppendLiteral("Next Quest: ");
hover.AppendFormatted(Shorten(nextQuest.Quest.Info.Name));
hover.AppendLiteral(" (");
hover.AppendFormatted(nextQuest.Quest.Id);
hover.AppendLiteral(") / ");
hover.AppendFormatted(nextQuest.Sequence);
hover.AppendLiteral(" / ");
hover.AppendFormatted(nextQuest.Step);
ImGui.TextUnformatted(hover);
}
}
}
private unsafe QuestProgressInfo? DrawQuestWork(QuestController.QuestProgress currentQuest, bool isMinimized)
{
QuestProgressInfo questProgressInfo = _questFunctions.GetQuestProgressInfo(currentQuest.Quest.Id);
if (questProgressInfo != null)
QuestProgressInfo complete = _questFunctions.GetQuestProgressInfo(currentQuest.Quest.Id);
if (complete != null)
{
if (isMinimized)
{
return questProgressInfo;
return complete;
}
Vector4* styleColorVec = ImGui.GetStyleColorVec4(ImGuiCol.TextDisabled);
Vector4 color = ((styleColorVec == null) ? ImGuiColors.ParsedOrange : (*styleColorVec));
using (ImRaii.PushColor(ImGuiCol.Text, color))
Vector4 hover = ((styleColorVec == null) ? ImGuiColors.ParsedOrange : (*styleColorVec));
using (ImRaii.PushColor(ImGuiCol.Text, hover))
{
ImU8String text = new ImU8String(0, 1);
text.AppendFormatted(questProgressInfo);
text.AppendFormatted(complete);
ImGui.Text(text);
if (ImGui.IsItemClicked())
{
string text2 = MultipleWhitespaceRegex().Replace(questProgressInfo.ToString(), " ");
ImGui.SetClipboardText(text2);
_chatGui.Print("Copied '" + text2 + "' to clipboard");
string questId = MultipleWhitespaceRegex().Replace(complete.ToString(), " ");
ImGui.SetClipboardText(questId);
_chatGui.Print("Copied '" + questId + "' to clipboard");
}
if (ImGui.IsItemHovered())
{
@ -461,7 +461,7 @@ internal sealed class ActiveQuestComponent
ImGui.SameLine();
text = new ImU8String(2, 1);
text.AppendLiteral("/ ");
text.AppendFormatted(questProgressInfo.ClassJob);
text.AppendFormatted(complete.ClassJob);
ImGui.Text(text);
}
}
@ -480,7 +480,7 @@ internal sealed class ActiveQuestComponent
}
}
}
return questProgressInfo;
return complete;
}
private void DrawQuestButtons(QuestController.QuestProgress currentQuest, QuestStep? currentStep, QuestProgressInfo? questProgressInfo, bool isMinimized)