1
0
Fork 0
forked from aly/qstbak

muffin v7.4.10

This commit is contained in:
alydev 2026-01-19 08:31:23 +10:00
parent 2df81c5d15
commit b8dd142c23
47 changed files with 3604 additions and 1058 deletions

View file

@ -22,6 +22,8 @@ internal sealed class DebugConfigComponent : ConfigComponent
}
ImGui.TextColored(ImGuiColors.DalamudRed, "Enabling any option here may cause unexpected behavior. Use at your own risk.");
ImGui.Separator();
DrawChocoboSettings();
ImGui.Separator();
bool v = base.Configuration.Advanced.DebugOverlay;
if (ImGui.Checkbox("Enable debug overlay", ref v))
{
@ -120,4 +122,55 @@ internal sealed class DebugConfigComponent : ConfigComponent
ImGuiComponents.HelpMarker("When enabled, Questionable will not attempt to turn-in and complete quests. This will do everything automatically except the final turn-in step.");
}
}
private void DrawChocoboSettings()
{
ImGui.Text("Chocobo Settings");
using (ImRaii.PushIndent())
{
ImGui.AlignTextToFramePadding();
ImGui.Text("Chocobo Name:");
ImGui.SameLine();
string buf = base.Configuration.Advanced.ChocoboName;
ImGui.SetNextItemWidth(200f);
if (ImGui.InputText("##ChocoboName", ref buf, 20))
{
string chocoboName = FormatChocoboName(buf);
base.Configuration.Advanced.ChocoboName = chocoboName;
Save();
}
if (!string.IsNullOrEmpty(buf) && buf.Length < 2)
{
ImGui.SameLine();
ImGui.TextColored(ImGuiColors.DalamudRed, "Name must be at least 2 characters");
}
ImGui.SameLine();
ImGuiComponents.HelpMarker("The name to give your chocobo during the 'My Little Chocobo' quest.\nMust be 2-20 characters. First letter will be capitalized.\nIf left empty, defaults to 'Kweh'.");
}
}
private static string FormatChocoboName(string name)
{
if (string.IsNullOrEmpty(name))
{
return string.Empty;
}
name = name.Trim();
if (name.Length == 0)
{
return string.Empty;
}
string text = name.Substring(0, 1).ToUpperInvariant();
string text2;
if (name.Length <= 1)
{
text2 = string.Empty;
}
else
{
string text3 = name;
text2 = text3.Substring(1, text3.Length - 1).ToLowerInvariant();
}
return text + text2;
}
}