muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -1,8 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Plugin;
|
||||
using LLib.GameData;
|
||||
|
|
@ -12,54 +9,6 @@ namespace Questionable.Windows.Setup;
|
|||
|
||||
internal sealed class EssentialSettingsStep : ISetupStep
|
||||
{
|
||||
[Serializable]
|
||||
[CompilerGenerated]
|
||||
private sealed class _003C_003Ec
|
||||
{
|
||||
public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec();
|
||||
|
||||
public static Func<IExposedPlugin, bool> _003C_003E9__12_0;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
internal bool _003CAutoDutyInstalled_003Eb__12_0(IExposedPlugin x)
|
||||
{
|
||||
int num = ((!_202C_206F_206D_200C_200E_202B_202A_206A_206A_206D_202C_202B_206E_200C_200D_202E_202C_200F_200F_200C_200D_200F_206F_202B_202D_202B_200D_206F_202A_200E_202D_202B_202A_200D_206B_200C_200C_200C_206F_206E_202E(_200F_206F_202C_202B_200D_202E_202D_202C_202A_200D_200F_202E_200C_202E_202C_202B_202D_206E_200E_206C_202D_200C_200E_200B_202A_202E_206B_202B_202C_200D_200C_202E_200C_200B_202E_200E_200D_202B_200C_200E_202E(x), 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>(-1920887579))) ? 794105866 : 794105867);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 794105866;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_0055;
|
||||
case 0:
|
||||
return false;
|
||||
case 1:
|
||||
return _202D_200C_200F_206F_200C_200C_202E_202B_202B_200B_202C_202A_206C_200D_202B_206F_200C_200F_200C_206F_202A_202B_202A_200D_202C_200D_202E_206E_202E_206B_206A_206B_202A_200B_206A_200E_206C_206A_200C_206B_202E(x);
|
||||
}
|
||||
continue;
|
||||
IL_0055:
|
||||
num = 794105867;
|
||||
}
|
||||
}
|
||||
|
||||
static string _200F_206F_202C_202B_200D_202E_202D_202C_202A_200D_200F_202E_200C_202E_202C_202B_202D_206E_200E_206C_202D_200C_200E_200B_202A_202E_206B_202B_202C_200D_200C_202E_200C_200B_202E_200E_200D_202B_200C_200E_202E(IExposedPlugin P_0)
|
||||
{
|
||||
return P_0.InternalName;
|
||||
}
|
||||
|
||||
static bool _202C_206F_206D_200C_200E_202B_202A_206A_206A_206D_202C_202B_206E_200C_200D_202E_202C_200F_200F_200C_200D_200F_206F_202B_202D_202B_200D_206F_202A_200E_202D_202B_202A_200D_206B_200C_200C_200C_206F_206E_202E(string P_0, string P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
|
||||
static bool _202D_200C_200F_206F_200C_200C_202E_202B_202B_200B_202C_202A_206C_200D_202B_206F_200C_200F_200C_206F_202A_202B_202A_200D_202C_200D_202E_206E_202E_206B_206A_206B_202A_200B_206A_200E_206C_206A_200C_206B_202E(IExposedPlugin P_0)
|
||||
{
|
||||
return P_0.IsLoaded;
|
||||
}
|
||||
}
|
||||
|
||||
private const float MaxComboWidth = 300f;
|
||||
|
||||
private readonly GeneralConfigComponent _generalConfigComponent;
|
||||
|
|
@ -68,14 +17,7 @@ internal sealed class EssentialSettingsStep : ISetupStep
|
|||
|
||||
private readonly IDalamudPluginInterface _pluginInterface;
|
||||
|
||||
public string Title
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
return 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>(1784162476);
|
||||
}
|
||||
}
|
||||
public string Title => "Essential settings";
|
||||
|
||||
public bool CanAdvance => true;
|
||||
|
||||
|
|
@ -88,144 +30,41 @@ internal sealed class EssentialSettingsStep : ISetupStep
|
|||
|
||||
public bool ShouldShow()
|
||||
{
|
||||
int num = (GrandCompanyNotJoined() ? (-22021032) : (-22021031));
|
||||
while (true)
|
||||
if (!GrandCompanyNotJoined())
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -22021032;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
goto IL_0047;
|
||||
case 1:
|
||||
return AutoDutyInstalled();
|
||||
case 0:
|
||||
return true;
|
||||
}
|
||||
continue;
|
||||
IL_0047:
|
||||
num = -22021031;
|
||||
return AutoDutyInstalled();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ISetupStep.ShouldShow()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in ShouldShow
|
||||
return this.ShouldShow();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public void Draw()
|
||||
{
|
||||
int num = ((!GrandCompanyNotJoined()) ? 607897982 : 607897977);
|
||||
while (true)
|
||||
if (GrandCompanyNotJoined())
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 607897978;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 1:
|
||||
UiThemeUtils.SectionHeader(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>(1099527439));
|
||||
_206B_206A_202A_206B_200E_200C_206C_200F_206A_206C_202D_206B_206D_200F_200D_202A_206C_206E_202D_202C_206B_206A_200F_202B_206B_202E_206B_200F_206A_200D_202C_206E_200F_202A_202D_206C_202E_202D_200E_200E_202E(0f);
|
||||
_202A_202E_200D_202A_202E_200D_206F_206D_202C_202A_200D_202E_202B_200F_206C_202D_206E_206E_200B_200D_206F_200F_206F_202E_200C_206A_200D_206E_206F_200C_206E_202A_206A_202E_200D_200D_200D_206C_202A_206F_202E(ref UiThemeUtils.DimTextColor, (ImU8String)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>(1066832142));
|
||||
_202C_206D_200E_202D_200C_200B_202B_200D_200C_206B_206C_206F_202D_200B_206F_200B_200B_200B_200B_200B_200F_202A_206C_206A_206D_206D_202C_202E_202B_206F_202D_206C_202C_200C_202D_200B_206E_206E_202B_206B_202E();
|
||||
_dutyConfigComponent.DrawAutoDutySettings();
|
||||
num = 607897976;
|
||||
break;
|
||||
case 3:
|
||||
UiThemeUtils.SectionHeader(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>(819285658));
|
||||
_206B_206A_202A_206B_200E_200C_206C_200F_206A_206C_202D_206B_206D_200F_200D_202A_206C_206E_202D_202C_206B_206A_200F_202B_206B_202E_206B_200F_206A_200D_202C_206E_200F_202A_202D_206C_202E_202D_200E_200E_202E(0f);
|
||||
_202A_202E_200D_202A_202E_200D_206F_206D_202C_202A_200D_202E_202B_200F_206C_202D_206E_206E_200B_200D_206F_200F_206F_202E_200C_206A_200D_206E_206F_200C_206E_202A_206A_202E_200D_200D_200D_206C_202A_206F_202E(ref UiThemeUtils.DimTextColor, (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>(476554444));
|
||||
_202C_206D_200E_202D_200C_200B_202B_200D_200C_206B_206C_206F_202D_200B_206F_200B_200B_200B_200B_200B_200F_202A_206C_206A_206D_206D_202C_202E_202B_206F_202D_206C_202C_200C_202D_200B_206E_206E_202B_206B_202E();
|
||||
_generalConfigComponent.DrawGrandCompanySelector(_202B_202B_202C_206A_200E_206F_202E_206B_200E_200C_206D_202E_202A_202C_200F_206D_200C_206F_200F_200F_206C_206E_202E_202E_200F_202E_206C_206D_206F_200C_206E_200B_206F_206B_200F_202D_202A_206A_206A_206E_202E(_206D_202B_202A_200D_206A_206F_202E_200F_200F_206A_206A_202B_202B_200C_202A_206F_202B_200F_200E_202E_206C_206F_202D_206E_202E_206C_200E_202D_200C_202E_202E_200D_206F_206E_200E_202D_206B_206A_206A_200D_202E().X, 300f));
|
||||
UiThemeUtils.SectionSpacing();
|
||||
num = 607897982;
|
||||
break;
|
||||
case 2:
|
||||
return;
|
||||
case 4:
|
||||
num = ((!AutoDutyInstalled()) ? 607897976 : 607897979);
|
||||
break;
|
||||
case 0:
|
||||
num = 607897977;
|
||||
break;
|
||||
}
|
||||
UiThemeUtils.SectionHeader("Grand Company");
|
||||
ImGui.PushTextWrapPos(0f);
|
||||
ImGui.TextColored(in UiThemeUtils.DimTextColor, "You haven't joined a Grand Company yet. Pick the one you intend to join - the MSQ stalls at \"The Company You Keep\" without it.");
|
||||
ImGui.PopTextWrapPos();
|
||||
_generalConfigComponent.DrawGrandCompanySelector(MathF.Min(ImGui.GetContentRegionAvail().X, 300f));
|
||||
UiThemeUtils.SectionSpacing();
|
||||
}
|
||||
if (AutoDutyInstalled())
|
||||
{
|
||||
UiThemeUtils.SectionHeader("Dungeons (AutoDuty)");
|
||||
ImGui.PushTextWrapPos(0f);
|
||||
ImGui.TextColored(in UiThemeUtils.DimTextColor, "AutoDuty is installed. Enable this to let Questionable clear mandatory MSQ dungeons instead of stopping at them.");
|
||||
ImGui.PopTextWrapPos();
|
||||
_dutyConfigComponent.DrawAutoDutySettings();
|
||||
}
|
||||
}
|
||||
|
||||
void ISetupStep.Draw()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Draw
|
||||
this.Draw();
|
||||
}
|
||||
|
||||
private static bool GrandCompanyNotJoined()
|
||||
{
|
||||
return _202B_200E_206A_206B_202C_206C_200D_200E_202E_206D_200F_202A_206F_206C_200E_202B_206C_202D_206E_202E_206F_202D_206C_200F_206F_200B_206D_202A_202A_200D_206E_202C_206A_206C_200C_206E_206E_200B_200B_200C_202E() == 0;
|
||||
return GrandCompanyHelper.GetGrandCompanyId() == 0;
|
||||
}
|
||||
|
||||
private bool AutoDutyInstalled()
|
||||
{
|
||||
return _202B_202A_202C_206E_206D_206B_202B_200E_206B_202A_206D_202E_202E_202B_200E_200C_206F_202C_202E_202B_206A_206D_200B_206F_202D_200B_206A_202D_202D_206C_200B_206C_206A_200C_206C_200C_202A_206D_200C_206F_202E(_pluginInterface).Any([MethodImpl(MethodImplOptions.NoInlining)] (IExposedPlugin x) =>
|
||||
{
|
||||
int num = ((!_003C_003Ec._202C_206F_206D_200C_200E_202B_202A_206A_206A_206D_202C_202B_206E_200C_200D_202E_202C_200F_200F_200C_200D_200F_206F_202B_202D_202B_200D_206F_202A_200E_202D_202B_202A_200D_206B_200C_200C_200C_206F_206E_202E(_003C_003Ec._200F_206F_202C_202B_200D_202E_202D_202C_202A_200D_200F_202E_200C_202E_202C_202B_202D_206E_200E_206C_202D_200C_200E_200B_202A_202E_206B_202B_202C_200D_200C_202E_200C_200B_202E_200E_200D_202B_200C_200E_202E(x), 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>(-1920887579))) ? 794105866 : 794105867);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 794105866;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_0055;
|
||||
case 0:
|
||||
return false;
|
||||
case 1:
|
||||
return _003C_003Ec._202D_200C_200F_206F_200C_200C_202E_202B_202B_200B_202C_202A_206C_200D_202B_206F_200C_200F_200C_206F_202A_202B_202A_200D_202C_200D_202E_206E_202E_206B_206A_206B_202A_200B_206A_200E_206C_206A_200C_206B_202E(x);
|
||||
}
|
||||
continue;
|
||||
IL_0055:
|
||||
num = 794105867;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
static void _206B_206A_202A_206B_200E_200C_206C_200F_206A_206C_202D_206B_206D_200F_200D_202A_206C_206E_202D_202C_206B_206A_200F_202B_206B_202E_206B_200F_206A_200D_202C_206E_200F_202A_202D_206C_202E_202D_200E_200E_202E(float P_0)
|
||||
{
|
||||
ImGui.PushTextWrapPos(P_0);
|
||||
}
|
||||
|
||||
static void _202A_202E_200D_202A_202E_200D_206F_206D_202C_202A_200D_202E_202B_200F_206C_202D_206E_206E_200B_200D_206F_200F_206F_202E_200C_206A_200D_206E_206F_200C_206E_202A_206A_202E_200D_200D_200D_206C_202A_206F_202E(ref Vector4 P_0, ImU8String P_1)
|
||||
{
|
||||
ImGui.TextColored(in P_0, P_1);
|
||||
}
|
||||
|
||||
static void _202C_206D_200E_202D_200C_200B_202B_200D_200C_206B_206C_206F_202D_200B_206F_200B_200B_200B_200B_200B_200F_202A_206C_206A_206D_206D_202C_202E_202B_206F_202D_206C_202C_200C_202D_200B_206E_206E_202B_206B_202E()
|
||||
{
|
||||
ImGui.PopTextWrapPos();
|
||||
}
|
||||
|
||||
static Vector2 _206D_202B_202A_200D_206A_206F_202E_200F_200F_206A_206A_202B_202B_200C_202A_206F_202B_200F_200E_202E_206C_206F_202D_206E_202E_206C_200E_202D_200C_202E_202E_200D_206F_206E_200E_202D_206B_206A_206A_200D_202E()
|
||||
{
|
||||
return ImGui.GetContentRegionAvail();
|
||||
}
|
||||
|
||||
static float _202B_202B_202C_206A_200E_206F_202E_206B_200E_200C_206D_202E_202A_202C_200F_206D_200C_206F_200F_200F_206C_206E_202E_202E_200F_202E_206C_206D_206F_200C_206E_200B_206F_206B_200F_202D_202A_206A_206A_206E_202E(float P_0, float P_1)
|
||||
{
|
||||
return MathF.Min(P_0, P_1);
|
||||
}
|
||||
|
||||
static byte _202B_200E_206A_206B_202C_206C_200D_200E_202E_206D_200F_202A_206F_206C_200E_202B_206C_202D_206E_202E_206F_202D_206C_200F_206F_200B_206D_202A_202A_200D_206E_202C_206A_206C_200C_206E_206E_200B_200B_200C_202E()
|
||||
{
|
||||
return GrandCompanyHelper.GetGrandCompanyId();
|
||||
}
|
||||
|
||||
static IEnumerable<IExposedPlugin> _202B_202A_202C_206E_206D_206B_202B_200E_206B_202A_206D_202E_202E_202B_200E_200C_206F_202C_202E_202B_206A_206D_200B_206F_202D_200B_206A_202D_202D_206C_200B_206C_206A_200C_206C_200C_202A_206D_200C_206F_202E(IDalamudPluginInterface P_0)
|
||||
{
|
||||
return P_0.InstalledPlugins;
|
||||
return _pluginInterface.InstalledPlugins.Any((IExposedPlugin x) => x.InternalName == "AutoDuty" && x.IsLoaded);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue