1
0
Fork 0
forked from aly/qstbak

muffin v7.5.6

This commit is contained in:
alydev 2026-08-17 20:27:25 +10:00
parent 6266f9e6b7
commit addf2d530f
619 changed files with 264792 additions and 446022 deletions

View file

@ -1,6 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using Dalamud.Bindings.ImGui;
using Dalamud.Configuration;
using Dalamud.Interface;
using Dalamud.Interface.Utility;
using Dalamud.Interface.Utility.Raii;
using Dalamud.Interface.Windowing;
using Dalamud.Plugin;
@ -9,78 +15,177 @@ using Questionable.Windows.ConfigComponents;
namespace Questionable.Windows;
internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
internal sealed class ConfigWindow : ThemedWindow, IPersistableWindowConfig
{
[Serializable]
[CompilerGenerated]
private sealed class _003C_003Ec
{
public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec();
internal IEnumerable<SidebarNav.Item> _003C_002Ecctor_003Eb__11_0(SidebarNav.Group g)
{
return g.Items;
}
[MethodImpl(MethodImplOptions.NoInlining)]
internal bool _003C_002Ecctor_003Eb__11_1(SidebarNav.Item i)
{
return _200C_206E_202B_206D_200C_202E_206F_206D_206A_202D_206A_206E_200E_206F_202A_200E_202A_206D_200B_206C_202C_206A_202A_202D_200D_206F_202C_200C_202D_200E_202C_206F_200C_206A_202A_202A_202C_202B_206B_202E_202E(i.Label, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1362895392));
}
static bool _200C_206E_202B_206D_200C_202E_206F_206D_206A_202D_206A_206E_200E_206F_202A_200E_202A_206D_200B_206C_202C_206A_202A_202D_200D_206F_202C_200C_202D_200E_202C_206F_200C_206A_202A_202A_202C_202B_206B_202E_202E(string P_0, string P_1)
{
return P_0 == P_1;
}
}
private static readonly SidebarNav.Group[] NavGroups = new SidebarNav.Group[4]
{
new SidebarNav.Group(global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1422580524), new SidebarNav.Item[3]
{
new SidebarNav.Item(FontAwesomeIcon.Cog, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-481549718)),
new SidebarNav.Item(FontAwesomeIcon.BookOpen, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1895196101)),
new SidebarNav.Item(FontAwesomeIcon.Route, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1010966512))
}),
new SidebarNav.Group(global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(2007815205), new SidebarNav.Item[2]
{
new SidebarNav.Item(FontAwesomeIcon.Users, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(2085542564)),
new SidebarNav.Item(FontAwesomeIcon.FistRaised, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-131828231))
}),
new SidebarNav.Group(global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(1779953204), new SidebarNav.Item[2]
{
new SidebarNav.Item(FontAwesomeIcon.StopCircle, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(560121957)),
new SidebarNav.Item(FontAwesomeIcon.Ban, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(1236596742))
}),
new SidebarNav.Group(global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(1592827330), new SidebarNav.Item[3]
{
new SidebarNav.Item(FontAwesomeIcon.Plug, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(-1534290435)),
new SidebarNav.Item(FontAwesomeIcon.Bell, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-245509244)),
new SidebarNav.Item(FontAwesomeIcon.Flask, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(118104062))
})
};
private static readonly int DependenciesPageIndex = NavGroups.SelectMany((SidebarNav.Group g) => g.Items).ToList().FindIndex([MethodImpl(MethodImplOptions.NoInlining)] (SidebarNav.Item i) => _003C_003Ec._200C_206E_202B_206D_200C_202E_206F_206D_206A_202D_206A_206E_200E_206F_202A_200E_202A_206D_200B_206C_202C_206A_202A_202D_200D_206F_202C_200C_202D_200E_202C_206F_200C_206A_202A_202A_202C_202B_206B_202E_202E(i.Label, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-1362895392)));
private readonly IDalamudPluginInterface _pluginInterface;
private readonly GeneralConfigComponent _generalConfigComponent;
private readonly PluginConfigComponent _pluginConfigComponent;
private readonly DutyConfigComponent _dutyConfigComponent;
private readonly SinglePlayerDutyConfigComponent _singlePlayerDutyConfigComponent;
private readonly StopConditionComponent _stopConditionComponent;
private readonly BlacklistConfigComponent _blacklistConfigComponent;
private readonly NotificationConfigComponent _notificationConfigComponent;
private readonly DebugConfigComponent _debugConfigComponent;
private readonly Configuration _configuration;
private readonly ConfigComponent[] _pages;
private int _selectedTab;
public WindowConfig WindowConfig => _configuration.ConfigWindowConfig;
public ConfigWindow(IDalamudPluginInterface pluginInterface, GeneralConfigComponent generalConfigComponent, PluginConfigComponent pluginConfigComponent, DutyConfigComponent dutyConfigComponent, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, StopConditionComponent stopConditionComponent, BlacklistConfigComponent blacklistConfigComponent, NotificationConfigComponent notificationConfigComponent, DebugConfigComponent debugConfigComponent, Configuration configuration, ChangelogWindow changelogWindow)
: base("Config - Questionable###QuestionableConfig", ImGuiWindowFlags.AlwaysAutoResize)
[MethodImpl(MethodImplOptions.NoInlining)]
public ConfigWindow(IDalamudPluginInterface pluginInterface, GeneralConfigComponent generalConfigComponent, QuestsConfigComponent questsConfigComponent, PluginConfigComponent pluginConfigComponent, DutyConfigComponent dutyConfigComponent, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, StopConditionComponent stopConditionComponent, BlacklistConfigComponent blacklistConfigComponent, NavigationConfigComponent navigationConfigComponent, NotificationConfigComponent notificationConfigComponent, DebugConfigComponent debugConfigComponent, Configuration configuration)
: base(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1087761369))
{
_pluginInterface = pluginInterface;
_generalConfigComponent = generalConfigComponent;
_pluginConfigComponent = pluginConfigComponent;
_dutyConfigComponent = dutyConfigComponent;
_singlePlayerDutyConfigComponent = singlePlayerDutyConfigComponent;
_stopConditionComponent = stopConditionComponent;
_blacklistConfigComponent = blacklistConfigComponent;
_notificationConfigComponent = notificationConfigComponent;
_debugConfigComponent = debugConfigComponent;
_configuration = configuration;
base.TitleBarButtons.Add(new TitleBarButton
_202B_206C_206E_202A_200F_206B_206A_200D_206B_202E_202B_202B_200C_200F_200B_202C_202B_206B_202C_202A_202A_202B_200B_200D_206C_202E_206D_206A_200F_202D_202C_200D_200B_202C_200C_206E_206A_202B_202E_202D_202E((Vector2?)new Vector2(760f, 620f));
_202B_202E_206A_200B_200D_206E_206F_200E_206C_202A_202C_206F_202E_206F_202D_202B_206F_206C_200D_206D_202C_206E_206E_202A_200B_202E_202B_206F_200C_206C_202C_206B_206A_206F_206E_200F_202B_206A_202A_202E(ImGuiCond.FirstUseEver);
_200C_206E_200C_200D_200C_200E_202E_202D_200F_206B_200B_202A_200E_206E_206E_202A_200F_202D_200B_202E_206C_202A_200F_206B_206D_202A_200F_200B_202B_202C_200E_200C_202D_202C_200F_202E_202B_206E_202A_200E_202E((WindowSizeConstraints?)new WindowSizeConstraints
{
Icon = FontAwesomeIcon.FileAlt,
IconOffset = new Vector2(1.5f, 1f),
Click = delegate
{
changelogWindow.IsOpenAndUncollapsed = true;
},
ShowTooltip = delegate
{
ImGui.BeginTooltip();
ImGui.Text("View Changelog");
ImGui.EndTooltip();
}
MinimumSize = new Vector2(640f, 480f)
});
_pluginInterface = pluginInterface;
_configuration = configuration;
_pages = new ConfigComponent[10] { generalConfigComponent, questsConfigComponent, navigationConfigComponent, dutyConfigComponent, singlePlayerDutyConfigComponent, stopConditionComponent, blacklistConfigComponent, pluginConfigComponent, notificationConfigComponent, debugConfigComponent };
generalConfigComponent.OpenDependenciesTab = delegate
{
_selectedTab = DependenciesPageIndex;
};
}
[MethodImpl(MethodImplOptions.NoInlining)]
public override void DrawContent()
{
using ImRaii.TabBarDisposable tabBarDisposable = ImRaii.TabBar("QuestionableConfigTabs");
if (!(!tabBarDisposable))
_selectedTab = SidebarNav.Draw(NavGroups, _selectedTab);
using ImRaii.ChildDisposable childDisposable = _200B_202B_200C_200D_202D_200C_202D_200E_200F_200C_202B_202E_202A_200E_206A_200D_200F_202B_206B_206D_206C_202D_206B_206A_202A_200B_200B_206C_206B_200F_202D_200E_202D_200F_200F_202A_206A_202C_202A_202B_202E((ImU8String)global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-930802894), Vector2.Zero);
if (!(bool)childDisposable)
{
_generalConfigComponent.DrawTab();
_pluginConfigComponent.DrawTab();
_dutyConfigComponent.DrawTab();
_singlePlayerDutyConfigComponent.DrawTab();
_stopConditionComponent.DrawTab();
_blacklistConfigComponent.DrawTab();
_notificationConfigComponent.DrawTab();
_debugConfigComponent.DrawTab();
return;
}
ImRaii.IndentDisposable indentDisposable = _206B_202A_200C_200D_206B_200F_206E_200B_202D_202E_202B_206F_200E_202E_202E_206B_200F_200C_200E_202C_202D_206E_200B_200B_206F_206A_206B_200D_206F_200F_206C_200B_200B_202E_206C_200F_202E_200D_206A_206A_202E(8f * _206D_206A_202B_206C_206E_206D_200B_206A_206A_206F_206D_200E_200F_206E_202B_202A_200D_202C_206A_206F_202D_206C_200B_202C_202A_200D_206D_202B_202D_202A_202D_200D_200C_206E_202C_200E_200C_202D_206B_206B_202E(), true, true);
try
{
_pages[_selectedTab].DrawTab();
}
finally
{
int num = ((indentDisposable == null) ? 1030093323 : 1030093320);
while (true)
{
int num2 = num;
int num3 = 1030093321;
int num4 = num2;
switch ((num4 | num3) - (num4 & num3))
{
case 0:
num = 1030093320;
break;
case 2:
goto end_IL_0086;
case 1:
_202C_200E_200E_202C_202B_202D_206A_200E_202B_202E_202C_202B_202E_202C_202E_206B_206E_206B_206A_202D_206B_206D_202A_206D_200C_202C_206E_202D_202D_206A_206A_206B_202C_202A_202A_206A_206D_202D_206C_202D_202E((IDisposable)indentDisposable);
num = 1030093323;
break;
}
continue;
end_IL_0086:
break;
}
}
}
public void SaveWindowConfig()
{
_pluginInterface.SavePluginConfig(_configuration);
_206A_202C_202E_206B_202B_200D_202C_200F_206C_200D_206C_206E_206D_206B_202C_200D_200D_202B_202E_200C_200D_202C_202B_206D_200F_200D_206D_200B_200B_202A_206A_202B_202A_202D_206A_202D_200F_206F_206F_202A_202E(_pluginInterface, (IPluginConfiguration)_configuration);
}
void IPersistableWindowConfig.SaveWindowConfig()
{
//ILSpy generated this explicit interface implementation from .override directive in SaveWindowConfig
this.SaveWindowConfig();
}
void _202B_206C_206E_202A_200F_206B_206A_200D_206B_202E_202B_202B_200C_200F_200B_202C_202B_206B_202C_202A_202A_202B_200B_200D_206C_202E_206D_206A_200F_202D_202C_200D_200B_202C_200C_206E_206A_202B_202E_202D_202E(Vector2? P_0)
{
base.Size = P_0;
}
void _202B_202E_206A_200B_200D_206E_206F_200E_206C_202A_202C_206F_202E_206F_202D_202B_206F_206C_200D_206D_202C_206E_206E_202A_200B_202E_202B_206F_200C_206C_202C_206B_206A_206F_206E_200F_202B_206A_202A_202E(ImGuiCond P_0)
{
base.SizeCondition = P_0;
}
void _200C_206E_200C_200D_200C_200E_202E_202D_200F_206B_200B_202A_200E_206E_206E_202A_200F_202D_200B_202E_206C_202A_200F_206B_206D_202A_200F_200B_202B_202C_200E_200C_202D_202C_200F_202E_202B_206E_202A_200E_202E(WindowSizeConstraints? P_0)
{
base.SizeConstraints = P_0;
}
static ImRaii.ChildDisposable _200B_202B_200C_200D_202D_200C_202D_200E_200F_200C_202B_202E_202A_200E_206A_200D_200F_202B_206B_206D_206C_202D_206B_206A_202A_200B_200B_206C_206B_200F_202D_200E_202D_200F_200F_202A_206A_202C_202A_202B_202E(ImU8String P_0, Vector2 P_1)
{
return ImRaii.Child(P_0, P_1);
}
static float _206D_206A_202B_206C_206E_206D_200B_206A_206A_206F_206D_200E_200F_206E_202B_202A_200D_202C_206A_206F_202D_206C_200B_202C_202A_200D_206D_202B_202D_202A_202D_200D_200C_206E_202C_200E_200C_202D_206B_206B_202E()
{
return ImGuiHelpers.GlobalScale;
}
static ImRaii.IndentDisposable _206B_202A_200C_200D_206B_200F_206E_200B_202D_202E_202B_206F_200E_202E_202E_206B_200F_200C_200E_202C_202D_206E_200B_200B_206F_206A_206B_200D_206F_200F_206C_200B_200B_202E_206C_200F_202E_200D_206A_206A_202E(float P_0, bool P_1, bool P_2)
{
return ImRaii.PushIndent(P_0, P_1, P_2);
}
static void _202C_200E_200E_202C_202B_202D_206A_200E_202B_202E_202C_202B_202E_202C_202E_206B_206E_206B_206A_202D_206B_206D_202A_206D_200C_202C_206E_202D_202D_206A_206A_206B_202C_202A_202A_206A_206D_202D_206C_202D_202E(IDisposable P_0)
{
P_0.Dispose();
}
static void _206A_202C_202E_206B_202B_200D_202C_200F_206C_200D_206C_206E_206D_206B_202C_200D_200D_202B_202E_200C_200D_202C_202B_206D_200F_200D_206D_200B_200B_202A_206A_202B_202A_202D_206A_202D_200F_206F_206F_202A_202E(IDalamudPluginInterface P_0, IPluginConfiguration P_1)
{
P_0.SavePluginConfig(P_1);
}
}