forked from aly/qstbak
687 lines
32 KiB
C#
687 lines
32 KiB
C#
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.Plugin;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Windows.Setup;
|
|
|
|
namespace Questionable.Windows;
|
|
|
|
internal sealed class OneTimeSetupWindow : ThemedWindow
|
|
{
|
|
private readonly IReadOnlyList<ISetupStep> _steps;
|
|
|
|
private readonly Configuration _configuration;
|
|
|
|
private readonly IDalamudPluginInterface _pluginInterface;
|
|
|
|
private readonly ILogger<OneTimeSetupWindow> _logger;
|
|
|
|
private int _currentIndex;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public OneTimeSetupWindow(WelcomeStep welcomeStep, PluginsStep pluginsStep, EssentialSettingsStep essentialSettingsStep, ReadyStep readyStep, Configuration configuration, IDalamudPluginInterface pluginInterface, ILogger<OneTimeSetupWindow> logger)
|
|
: base(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>(461826029), ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoSavedSettings, forceMainWindow: true)
|
|
{
|
|
_steps = new global::_003C_003Ez__ReadOnlyArray<ISetupStep>(new ISetupStep[4] { welcomeStep, pluginsStep, essentialSettingsStep, readyStep });
|
|
_configuration = configuration;
|
|
_pluginInterface = pluginInterface;
|
|
_logger = logger;
|
|
_206B_206F_202D_200B_200C_202D_206D_206B_206F_200C_202D_206D_200F_200B_202A_206A_202B_202D_206B_206E_200F_200B_200F_202E_202A_200D_206D_206A_200F_200C_202D_206B_202C_206A_202C_206B_206C_206B_200B_202B_202E(false);
|
|
_200C_206B_202B_206A_202C_202E_200C_206D_206B_206C_206B_200F_202B_206D_202C_202C_200D_200D_202C_200C_206D_202E_206F_202A_206C_206D_202A_200F_202E_200B_200B_200F_202C_202B_206A_206D_206A_200C_206B_202D_202E(false);
|
|
_200B_200C_206E_200C_202E_200F_202E_206E_200F_206F_200B_202B_200D_206B_206C_200B_200F_202B_200B_200F_202E_200C_206A_206F_200B_202E_206B_200D_202C_202E_200E_200F_206F_206B_206F_200D_206E_206B_206D_200D_202E(false);
|
|
_200F_200F_202E_200B_206F_202C_206A_202E_206E_206D_206F_206F_200E_200F_200B_202C_202C_202C_206F_206A_202B_202C_206E_202D_206B_200D_200F_202D_206B_202E_206E_202B_200D_206C_202A_202C_200C_202D_200E_202D_202E(false);
|
|
_206C_200D_206D_202B_206B_202E_206D_200F_202B_206B_206D_202E_200E_202A_200F_200F_200B_206B_206F_206F_206E_202E_202E_200E_206A_202B_200E_200E_202A_200B_206E_202D_206C_206C_200F_200F_200F_206E_206D_206B_202E(!_configuration.IsPluginSetupComplete());
|
|
_202E_200F_202A_200C_206A_202E_200B_206F_206D_200F_206A_206F_202C_200E_200C_202C_206C_206B_202E_206E_200F_206F_202C_202E_206B_200C_200F_202C_206F_200F_206B_200D_202E_200C_200E_200C_202A_202A_200F_206A_202E((ILogger)_logger, 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>(-1635291635), new object[1] { _206D_202B_202D_206C_206B_202D_206F_206A_206F_200C_206A_206C_206A_202B_206C_200E_200C_202A_202A_206D_200D_200E_206E_206B_200D_202D_200B_200C_200C_202D_202D_200F_206E_200F_200E_200C_200F_206C_206D_202E_202E() });
|
|
}
|
|
|
|
public override void OnOpen()
|
|
{
|
|
_currentIndex = 0;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override void DrawContent()
|
|
{
|
|
List<ISetupStep> list = _steps.Where((ISetupStep s) => s.ShouldShow()).ToList();
|
|
int num = ((list.Count != 0) ? (-981161661) : (-981161664));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -981161662;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
{
|
|
_currentIndex = _206A_200B_200B_206A_206B_206E_206D_206C_202B_200E_202B_200F_202D_206D_206B_202D_206B_200D_206E_202E_206F_202E_202D_202E_202C_206A_206B_206F_202E_206D_202D_206D_200E_206E_200E_206C_206A_202B_206F_200C_202E(_currentIndex, 0, list.Count - 1);
|
|
ISetupStep setupStep = list[_currentIndex];
|
|
ImU8String imU8String = new ImU8String(9, 2);
|
|
imU8String.AppendLiteral(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>(2121328215));
|
|
int currentIndex = _currentIndex;
|
|
num3 = 1;
|
|
num4 = currentIndex;
|
|
int num7 = num4 ^ num3;
|
|
int num8 = num4 & num3;
|
|
imU8String.AppendFormatted(num7 + (num8 + num8));
|
|
imU8String.AppendLiteral(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>(-1153128276));
|
|
imU8String.AppendFormatted(list.Count);
|
|
_202D_200E_202B_206C_202C_200E_206A_202E_200C_202C_202C_206D_206F_200B_200C_206A_202D_202A_200E_200B_206D_206C_200D_200D_206B_206C_202B_202A_202D_200D_206D_200E_206D_200C_200E_202B_202B_202A_206E_202B_202E(ref UiThemeUtils.DimTextColor, imU8String);
|
|
_206D_200B_202E_200F_206D_202B_206E_206C_200F_206C_200D_200D_206B_202C_200C_206C_206E_200D_206F_202D_200D_206D_206D_206E_206F_202E_202A_202A_202B_202A_206C_206F_200B_200F_202C_200B_200E_206B_200F_200E_202E();
|
|
DrawStepDots(list.Count);
|
|
UiThemeUtils.SectionHeader(setupStep.Title);
|
|
var (contentStartPos, availableWidth, drawList) = UiThemeUtils.BeginCard();
|
|
setupStep.Draw();
|
|
UiThemeUtils.EndCard(contentStartPos, availableWidth, drawList);
|
|
UiThemeUtils.SectionSpacing();
|
|
DrawFooter(list.Count, setupStep);
|
|
return;
|
|
}
|
|
case 2:
|
|
return;
|
|
case 0:
|
|
goto IL_0168;
|
|
}
|
|
continue;
|
|
IL_0168:
|
|
num = -981161664;
|
|
}
|
|
}
|
|
|
|
private void DrawStepDots(int visibleCount)
|
|
{
|
|
float num = 3f * _202C_202C_206B_202E_206A_202D_202D_200E_206D_200D_202C_200D_206A_200D_206A_206C_206D_202D_206E_202D_200D_206A_202E_206B_200B_206C_200B_206B_206F_202A_200F_206C_200F_202C_202C_206E_200E_206C_202B_200F_202E();
|
|
float num2 = 12f * _202C_202C_206B_202E_206A_202D_202D_200E_206D_200D_202C_200D_206A_200D_206A_206C_206D_202D_206E_202D_200D_206A_202E_206B_200B_206C_200B_206B_206F_202A_200F_206C_200F_202C_202C_206E_200E_206C_202B_200F_202E();
|
|
float num3 = _206B_206B_202B_200C_202B_206C_202A_206D_206B_202E_202A_206F_202E_200B_206F_206F_200E_200C_202C_206B_206D_206A_206E_206F_202C_202B_200C_206F_206F_200D_206E_200E_206C_200E_206F_200C_202E_206D_200B_202C_202E();
|
|
ImDrawListPtr imDrawListPtr = _202E_206B_202D_202E_206C_206F_206B_202A_206B_202C_206B_206E_202B_206F_200B_202B_200C_200F_200C_202B_202A_200F_200B_202D_202B_206D_202E_202E_202B_202A_200D_206E_202D_206B_202D_202C_200E_200F_206B_206C_202E();
|
|
Vector2 vector = _202E_202D_202A_202A_200D_202D_200D_202C_200C_206F_200B_206C_206B_206E_200D_200B_206C_200B_202D_202B_206A_202D_200F_202C_202A_200D_200D_200D_202E_206C_200F_202D_200D_202D_200D_202B_200F_202E_202E_206A_202E();
|
|
float y = vector.Y + num3 / 2f;
|
|
uint col = _206D_206D_206E_202B_206A_200E_200F_206D_202B_206B_200E_200E_206C_200B_206D_200E_200D_206F_206E_202A_202D_202A_206C_200D_202E_206A_206E_202C_206B_206A_206C_202A_200E_200E_206C_206F_206C_206B_200E_200E_202E(UiThemeUtils.AccentColor);
|
|
uint col2 = _206D_206D_206E_202B_206A_200E_200F_206D_202B_206B_200E_200E_206C_200B_206D_200E_200D_206F_206E_202A_202D_202A_206C_200D_202E_206A_206E_202C_206B_206A_206C_202A_200E_200E_206C_206F_206C_206B_200E_200E_202E(UiThemeUtils.MutedTextColor);
|
|
int num4 = 0;
|
|
int num5 = 1526689575;
|
|
Vector2 center = default(Vector2);
|
|
while (true)
|
|
{
|
|
int num6 = num5;
|
|
int num7 = 1526689569;
|
|
int num8 = num6;
|
|
int num9 = num8 + num7;
|
|
int num10 = num8 & num7;
|
|
switch (num9 - (num10 + num10))
|
|
{
|
|
case 0:
|
|
imDrawListPtr.AddCircleFilled(center, num, col);
|
|
num5 = 1526689568;
|
|
break;
|
|
case 5:
|
|
center = new Vector2(vector.X + num + (float)num4 * num2, y);
|
|
num5 = ((num4 != _currentIndex) ? 1526689573 : 1526689569);
|
|
break;
|
|
case 4:
|
|
imDrawListPtr.AddCircle(center, num, col2, 0, 1f);
|
|
num5 = 1526689568;
|
|
break;
|
|
case 6:
|
|
num5 = ((num4 < visibleCount) ? 1526689572 : 1526689570);
|
|
break;
|
|
case 3:
|
|
{
|
|
float num12 = num * 2f;
|
|
num7 = 1;
|
|
num8 = visibleCount;
|
|
_202B_200E_206C_200E_206E_202B_200D_200D_206E_200D_206E_206F_206B_206D_202D_202C_206D_206A_206B_206A_206E_202B_202B_206F_200C_206E_206C_200C_206D_202C_206C_200E_206B_202A_200E_200D_200C_206F_206C_206D_202E(new Vector2(num12 + (float)(~(~num8 + num7)) * num2, num3));
|
|
return;
|
|
}
|
|
case 2:
|
|
num5 = 1526689575;
|
|
break;
|
|
case 1:
|
|
{
|
|
int num11 = num4;
|
|
num7 = 1;
|
|
num8 = num11;
|
|
num4 = (num8 | num7) + (num8 & num7);
|
|
num5 = 1526689575;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private void DrawFooter(int visibleCount, ISetupStep current)
|
|
{
|
|
bool num = _currentIndex == 0;
|
|
int currentIndex = _currentIndex;
|
|
int num2 = 1;
|
|
int num3 = visibleCount;
|
|
bool flag = currentIndex == ~(~num3 + num2);
|
|
ImRaii.DisabledDisposable disabledDisposable = _200C_206D_206E_202D_206D_200D_200D_206A_200D_206D_202D_206D_200F_206B_202C_202A_202C_200B_200B_206E_200C_206D_202C_200B_206D_206A_202D_200B_200E_200D_200F_200E_202E_202B_200C_206E_206A_202C_206F_200D_202E(num);
|
|
int num4;
|
|
try
|
|
{
|
|
num4 = ((!UiThemeUtils.IconTextButton(FontAwesomeIcon.ArrowLeft, 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>(1553048446), ButtonWidth(FontAwesomeIcon.ArrowLeft, 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>(-764915405)))) ? 808183570 : 808183569);
|
|
while (true)
|
|
{
|
|
int num5 = num4;
|
|
num2 = 808183571;
|
|
num3 = num5;
|
|
int num6 = num3 + num2;
|
|
int num7 = num3 & num2;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
case 0:
|
|
num4 = 808183569;
|
|
break;
|
|
case 2:
|
|
{
|
|
int currentIndex2 = _currentIndex;
|
|
num2 = 1;
|
|
num3 = currentIndex2;
|
|
_currentIndex = ~(~num3 + num2);
|
|
num4 = 808183570;
|
|
break;
|
|
}
|
|
case 1:
|
|
goto end_IL_006a;
|
|
}
|
|
continue;
|
|
end_IL_006a:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((disabledDisposable == null) ? (-1101408097) : (-1101408100));
|
|
while (true)
|
|
{
|
|
int num8 = num4;
|
|
num2 = -1101408099;
|
|
num3 = num8;
|
|
int num9 = num3 + num2;
|
|
int num10 = num3 & num2;
|
|
switch (num9 - (num10 + num10))
|
|
{
|
|
case 0:
|
|
num4 = -1101408100;
|
|
break;
|
|
case 1:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)disabledDisposable);
|
|
num4 = -1101408097;
|
|
break;
|
|
case 2:
|
|
goto end_IL_00eb;
|
|
}
|
|
continue;
|
|
end_IL_00eb:
|
|
break;
|
|
}
|
|
}
|
|
_206D_200B_202E_200F_206D_202B_206E_206C_200F_206C_200D_200D_206B_202C_200C_206C_206E_200D_206F_202D_200D_206D_206D_206E_206F_202E_202A_202A_202B_202A_206C_206F_200B_200F_202C_200B_200E_206B_200F_200E_202E();
|
|
if (flag)
|
|
{
|
|
disabledDisposable = _200C_206D_206E_202D_206D_200D_200D_206A_200D_206D_202D_206D_200F_206B_202C_202A_202C_200B_200B_206E_200C_206D_202C_200B_206D_206A_202D_200B_200E_200D_200F_200E_202E_202B_200C_206E_206A_202C_206F_200D_202E(!current.CanAdvance);
|
|
try
|
|
{
|
|
ImRaii.ColorDisposable colorDisposable = _200B_202E_202C_206B_202C_200C_200E_202A_202B_206F_200E_206D_202D_200F_200F_206F_200E_202E_202A_200C_206E_206C_202A_202D_202A_202E_202E_200F_200D_202E_200D_206B_200C_202E_202B_202C_206C_202E_206D_206C_202E(ImGuiCol.Button, UiThemeUtils.PlayButtonColor, true);
|
|
try
|
|
{
|
|
ImRaii.ColorDisposable colorDisposable2 = _200B_202E_202C_206B_202C_200C_200E_202A_202B_206F_200E_206D_202D_200F_200F_206F_200E_202E_202A_200C_206E_206C_202A_202D_202A_202E_202E_200F_200D_202E_200D_206B_200C_202E_202B_202C_206C_202E_206D_206C_202E(ImGuiCol.ButtonHovered, UiThemeUtils.PlayButtonHover, true);
|
|
try
|
|
{
|
|
ImRaii.ColorDisposable colorDisposable3 = _200B_202E_202C_206B_202C_200C_200E_202A_202B_206F_200E_206D_202D_200F_200F_206F_200E_202E_202A_200C_206E_206C_202A_202D_202A_202E_202E_200F_200D_202E_200D_206B_200C_202E_202B_202C_206C_202E_206D_206C_202E(ImGuiCol.ButtonActive, UiThemeUtils.PlayButtonActive, true);
|
|
try
|
|
{
|
|
ImRaii.ColorDisposable colorDisposable4 = _200B_202E_202C_206B_202C_200C_200E_202A_202B_206F_200E_206D_202D_200F_200F_206F_200E_202E_202A_200C_206E_206C_202A_202D_202A_202E_202E_200F_200D_202E_200D_206B_200C_202E_202B_202C_206C_202E_206D_206C_202E(ImGuiCol.Text, UiThemeUtils.PlayButtonText, true);
|
|
try
|
|
{
|
|
num4 = ((!UiThemeUtils.IconTextButton(FontAwesomeIcon.Check, 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>(740749075), ButtonWidth(FontAwesomeIcon.Check, 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>(-210319424)))) ? 2081076203 : 2081076200);
|
|
while (true)
|
|
{
|
|
int num11 = num4;
|
|
num2 = 2081076202;
|
|
num3 = num11;
|
|
switch ((num3 | num2) - (num3 & num2))
|
|
{
|
|
case 0:
|
|
num4 = 2081076200;
|
|
break;
|
|
case 2:
|
|
_202E_200F_202A_200C_206A_202E_200B_206F_206D_200F_206A_206F_202C_200E_200C_202C_206C_206B_202E_206E_200F_206F_202C_202E_206B_200C_200F_202C_206F_200F_206B_200D_202E_200C_200E_200C_202A_202A_200F_206A_202E((ILogger)_logger, 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>(907066724), Array.Empty<object>());
|
|
_configuration.MarkPluginSetupComplete();
|
|
_202C_200C_202B_202A_202E_202D_206F_202D_206A_202C_206E_206C_206D_200B_206A_206C_200C_206F_200C_200C_202C_206E_206E_206B_200C_202A_206C_200B_202C_200C_206E_206B_202D_200B_202B_202C_206F_202B_200C_200D_202E(_pluginInterface, (IPluginConfiguration)_configuration);
|
|
RequestClose();
|
|
num4 = 2081076203;
|
|
break;
|
|
case 1:
|
|
goto end_IL_01d1;
|
|
}
|
|
continue;
|
|
end_IL_01d1:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((colorDisposable4 == null) ? 1525210494 : 1525210495);
|
|
while (true)
|
|
{
|
|
int num12 = num4;
|
|
num2 = 1525210494;
|
|
num3 = num12;
|
|
int num13 = num3 + num2;
|
|
int num14 = num3 & num2;
|
|
switch (num13 - (num14 + num14))
|
|
{
|
|
case 2:
|
|
num4 = 1525210495;
|
|
break;
|
|
case 0:
|
|
goto end_IL_0275;
|
|
case 1:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)colorDisposable4);
|
|
num4 = 1525210494;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0275:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((colorDisposable3 == null) ? (-1706055726) : (-1706055725));
|
|
while (true)
|
|
{
|
|
int num15 = num4;
|
|
num2 = -1706055726;
|
|
num3 = num15;
|
|
int num16 = num3 + num2;
|
|
int num17 = num3 & num2;
|
|
switch (num16 - (num17 + num17))
|
|
{
|
|
case 2:
|
|
num4 = -1706055725;
|
|
break;
|
|
case 1:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)colorDisposable3);
|
|
num4 = -1706055726;
|
|
break;
|
|
case 0:
|
|
goto end_IL_02e2;
|
|
}
|
|
continue;
|
|
end_IL_02e2:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((colorDisposable2 == null) ? 709373826 : 709373825);
|
|
while (true)
|
|
{
|
|
int num18 = num4;
|
|
num2 = 709373824;
|
|
num3 = num18;
|
|
int num19 = num3 + num2;
|
|
int num20 = num3 & num2;
|
|
switch (num19 - (num20 + num20))
|
|
{
|
|
case 2:
|
|
goto end_IL_034f;
|
|
case 1:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)colorDisposable2);
|
|
num4 = 709373826;
|
|
break;
|
|
case 0:
|
|
num4 = 709373825;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_034f:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((colorDisposable == null) ? 2130178104 : 2130178107);
|
|
while (true)
|
|
{
|
|
int num21 = num4;
|
|
num2 = 2130178105;
|
|
num3 = num21;
|
|
int num22 = num3 + num2;
|
|
int num23 = num3 & num2;
|
|
switch (num22 - (num23 + num23))
|
|
{
|
|
case 1:
|
|
goto end_IL_03bb;
|
|
case 2:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)colorDisposable);
|
|
num4 = 2130178104;
|
|
break;
|
|
case 0:
|
|
num4 = 2130178107;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_03bb:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((disabledDisposable == null) ? (-1250205725) : (-1250205728));
|
|
while (true)
|
|
{
|
|
int num24 = num4;
|
|
num2 = -1250205726;
|
|
num3 = num24;
|
|
switch ((num3 | num2) - (num3 & num2))
|
|
{
|
|
case 1:
|
|
goto end_IL_0426;
|
|
case 2:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)disabledDisposable);
|
|
num4 = -1250205725;
|
|
break;
|
|
case 0:
|
|
num4 = -1250205728;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0426:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
disabledDisposable = _200C_206D_206E_202D_206D_200D_200D_206A_200D_206D_202D_206D_200F_206B_202C_202A_202C_200B_200B_206E_200C_206D_202C_200B_206D_206A_202D_200B_200E_200D_200F_200E_202E_202B_200C_206E_206A_202C_206F_200D_202E(!current.CanAdvance);
|
|
try
|
|
{
|
|
num4 = ((!UiThemeUtils.IconTextButton(FontAwesomeIcon.ArrowRight, 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>(-2011722463), ButtonWidth(FontAwesomeIcon.ArrowRight, 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>(-2011722463)))) ? 1847990145 : 1847990146);
|
|
while (true)
|
|
{
|
|
int num25 = num4;
|
|
num2 = 1847990147;
|
|
num3 = num25;
|
|
int num26 = num3 + num2;
|
|
int num27 = num3 & num2;
|
|
switch (num26 - (num27 + num27))
|
|
{
|
|
case 0:
|
|
num4 = 1847990146;
|
|
break;
|
|
case 1:
|
|
{
|
|
int currentIndex3 = _currentIndex;
|
|
num2 = 1;
|
|
num3 = currentIndex3;
|
|
int num28 = num3 ^ num2;
|
|
int num29 = num3 & num2;
|
|
_currentIndex = num28 + (num29 + num29);
|
|
num4 = 1847990145;
|
|
break;
|
|
}
|
|
case 2:
|
|
goto end_IL_04c5;
|
|
}
|
|
continue;
|
|
end_IL_04c5:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num4 = ((disabledDisposable == null) ? (-1209649959) : (-1209649958));
|
|
while (true)
|
|
{
|
|
int num30 = num4;
|
|
num2 = -1209649957;
|
|
num3 = num30;
|
|
int num31 = num3 + num2;
|
|
int num32 = num3 & num2;
|
|
switch (num31 - (num32 + num32))
|
|
{
|
|
case 0:
|
|
num4 = -1209649958;
|
|
break;
|
|
case 1:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)disabledDisposable);
|
|
num4 = -1209649959;
|
|
break;
|
|
case 2:
|
|
goto end_IL_054c;
|
|
}
|
|
continue;
|
|
end_IL_054c:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
_206D_200B_202E_200F_206D_202B_206E_206C_200F_206C_200D_200D_206B_202C_200C_206C_206E_200D_206F_202D_200D_206D_206D_206E_206F_202E_202A_202A_202B_202A_206C_206F_200B_200F_202C_200B_200E_206B_200F_200E_202E();
|
|
num4 = (_configuration.IsPluginSetupComplete() ? (-1034666289) : (-1034666290));
|
|
while (true)
|
|
{
|
|
int num33 = num4;
|
|
num2 = -1034666294;
|
|
num3 = num33;
|
|
string text;
|
|
string text2;
|
|
switch ((num3 | num2) - (num3 & num2))
|
|
{
|
|
case 5:
|
|
text = 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>(-431798985);
|
|
goto IL_060c;
|
|
case 1:
|
|
_206F_202B_202D_202B_202C_200F_206E_206A_206E_206C_202B_202E_206B_200D_200B_206F_202B_206D_206D_206B_206A_202D_206E_206D_206C_200C_200E_200C_202C_200D_200E_206F_200F_200F_202D_200D_200B_206A_200B_200F_202E((ILogger)_logger, 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>(-1502282868), Array.Empty<object>());
|
|
num4 = -1034666292;
|
|
break;
|
|
case 2:
|
|
num4 = -1034666290;
|
|
break;
|
|
case 4:
|
|
text = 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>(-1567427430);
|
|
goto IL_060c;
|
|
case 0:
|
|
num4 = (_configuration.IsPluginSetupComplete() ? (-1034666292) : (-1034666293));
|
|
break;
|
|
case 3:
|
|
return;
|
|
case 6:
|
|
{
|
|
RequestClose();
|
|
num4 = -1034666295;
|
|
break;
|
|
}
|
|
IL_060c:
|
|
text2 = text;
|
|
num4 = ((!UiThemeUtils.IconTextButton(FontAwesomeIcon.Times, text2, ButtonWidth(FontAwesomeIcon.Times, text2))) ? (-1034666295) : (-1034666294));
|
|
break;
|
|
}
|
|
}
|
|
static float ButtonWidth(FontAwesomeIcon icon, string text3)
|
|
{
|
|
ImRaii.FontDisposable fontDisposable = _202C_202E_200B_206A_200B_202D_200D_202D_202B_200B_206B_202B_202B_200B_206A_206D_200E_200C_206F_200B_202D_202A_202A_200F_200E_202E_202D_206C_206F_206B_202D_206F_202C_206A_202A_202A_202D_202A_202C_200E_202E(_206D_206C_202D_202B_200E_206F_200E_200F_200C_206D_202B_200C_206D_200B_206E_206F_200F_202A_206C_202C_206D_206C_200D_206A_200E_202A_202E_200E_200F_200B_206F_200C_200D_206F_200B_202C_206A_206D_202C_200C_202E(), true);
|
|
float x;
|
|
try
|
|
{
|
|
x = _200D_200B_206A_206F_202A_206F_206F_206F_202A_200B_200B_202A_200F_206F_206E_206A_200D_200D_202A_206C_200B_202E_206E_202E_202B_200F_206D_202D_200D_202E_200E_200F_206B_200E_200F_206C_200B_202B_200C_202E_202E((ImU8String)_206E_200C_200F_206A_206D_206C_206C_202B_200C_206C_206B_206B_202C_206F_200F_202D_206E_206D_206A_200D_206E_206D_202E_206B_206C_206E_202A_206A_206E_200C_202B_206C_202C_202B_200E_206D_200B_206A_206D_200E_202E(icon), false, -1f).X;
|
|
}
|
|
finally
|
|
{
|
|
int num34 = ((fontDisposable == null) ? 501543268 : 501543269);
|
|
while (true)
|
|
{
|
|
int num35 = num34;
|
|
int num36 = 501543268;
|
|
int num37 = num35;
|
|
int num38 = num37 + num36;
|
|
int num39 = num37 & num36;
|
|
switch (num38 - (num39 + num39))
|
|
{
|
|
case 2:
|
|
num34 = 501543269;
|
|
break;
|
|
case 1:
|
|
_200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E((IDisposable)fontDisposable);
|
|
num34 = 501543268;
|
|
break;
|
|
case 0:
|
|
goto end_IL_004b;
|
|
}
|
|
continue;
|
|
end_IL_004b:
|
|
break;
|
|
}
|
|
}
|
|
float x2 = _200D_200B_206A_206F_202A_206F_206F_206F_202A_200B_200B_202A_200F_206F_206E_206A_200D_200D_202A_206C_200B_202E_206E_202E_202B_200F_206D_202D_200D_202E_200E_200F_206B_200E_200F_206C_200B_202B_200C_202E_202E((ImU8String)text3, false, -1f).X;
|
|
return x + 6f + x2 + _206C_206A_202C_202B_206C_206D_202E_206D_200D_202D_206B_206C_202D_206D_202C_206C_202B_206B_202B_200F_206D_206B_206A_206E_202D_206A_206F_200F_206D_202E_206F_200B_200D_206F_200C_200F_206A_200C_206E_206A_202E().FramePadding.X * 2f;
|
|
}
|
|
}
|
|
|
|
void _206B_206F_202D_200B_200C_202D_206D_206B_206F_200C_202D_206D_200F_200B_202A_206A_202B_202D_206B_206E_200F_200B_200F_202E_202A_200D_206D_206A_200F_200C_202D_206B_202C_206A_202C_206B_206C_206B_200B_202B_202E(bool P_0)
|
|
{
|
|
base.RespectCloseHotkey = P_0;
|
|
}
|
|
|
|
void _200C_206B_202B_206A_202C_202E_200C_206D_206B_206C_206B_200F_202B_206D_202C_202C_200D_200D_202C_200C_206D_202E_206F_202A_206C_206D_202A_200F_202E_200B_200B_200F_202C_202B_206A_206D_206A_200C_206B_202D_202E(bool P_0)
|
|
{
|
|
base.ShowCloseButton = P_0;
|
|
}
|
|
|
|
void _200B_200C_206E_200C_202E_200F_202E_206E_200F_206F_200B_202B_200D_206B_206C_200B_200F_202B_200B_200F_202E_200C_206A_206F_200B_202E_206B_200D_202C_202E_200E_200F_206F_206B_206F_200D_206E_206B_206D_200D_202E(bool P_0)
|
|
{
|
|
base.AllowPinning = P_0;
|
|
}
|
|
|
|
void _200F_200F_202E_200B_206F_202C_206A_202E_206E_206D_206F_206F_200E_200F_200B_202C_202C_202C_206F_206A_202B_202C_206E_202D_206B_200D_200F_202D_206B_202E_206E_202B_200D_206C_202A_202C_200C_202D_200E_202D_202E(bool P_0)
|
|
{
|
|
base.AllowClickthrough = P_0;
|
|
}
|
|
|
|
void _206C_200D_206D_202B_206B_202E_206D_200F_202B_206B_206D_202E_200E_202A_200F_200F_200B_206B_206F_206F_206E_202E_202E_200E_206A_202B_200E_200E_202A_200B_206E_202D_206C_206C_200F_200F_200F_206E_206D_206B_202E(bool P_0)
|
|
{
|
|
base.IsOpen = P_0;
|
|
}
|
|
|
|
bool _206D_202B_202D_206C_206B_202D_206F_206A_206F_200C_206A_206C_206A_202B_206C_200E_200C_202A_202A_206D_200D_200E_206E_206B_200D_202D_200B_200C_200C_202D_202D_200F_206E_200F_200E_200C_200F_206C_206D_202E_202E()
|
|
{
|
|
return base.IsOpen;
|
|
}
|
|
|
|
static void _202E_200F_202A_200C_206A_202E_200B_206F_206D_200F_206A_206F_202C_200E_200C_202C_206C_206B_202E_206E_200F_206F_202C_202E_206B_200C_200F_202C_206F_200F_206B_200D_202E_200C_200E_200C_202A_202A_200F_206A_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static int _206A_200B_200B_206A_206B_206E_206D_206C_202B_200E_202B_200F_202D_206D_206B_202D_206B_200D_206E_202E_206F_202E_202D_202E_202C_206A_206B_206F_202E_206D_202D_206D_200E_206E_200E_206C_206A_202B_206F_200C_202E(int P_0, int P_1, int P_2)
|
|
{
|
|
return Math.Clamp(P_0, P_1, P_2);
|
|
}
|
|
|
|
static void _202D_200E_202B_206C_202C_200E_206A_202E_200C_202C_202C_206D_206F_200B_200C_206A_202D_202A_200E_200B_206D_206C_200D_200D_206B_206C_202B_202A_202D_200D_206D_200E_206D_200C_200E_202B_202B_202A_206E_202B_202E(ref Vector4 P_0, ImU8String P_1)
|
|
{
|
|
ImGui.TextColored(in P_0, P_1);
|
|
}
|
|
|
|
static void _206D_200B_202E_200F_206D_202B_206E_206C_200F_206C_200D_200D_206B_202C_200C_206C_206E_200D_206F_202D_200D_206D_206D_206E_206F_202E_202A_202A_202B_202A_206C_206F_200B_200F_202C_200B_200E_206B_200F_200E_202E()
|
|
{
|
|
ImGui.SameLine();
|
|
}
|
|
|
|
static float _202C_202C_206B_202E_206A_202D_202D_200E_206D_200D_202C_200D_206A_200D_206A_206C_206D_202D_206E_202D_200D_206A_202E_206B_200B_206C_200B_206B_206F_202A_200F_206C_200F_202C_202C_206E_200E_206C_202B_200F_202E()
|
|
{
|
|
return ImGuiHelpers.GlobalScale;
|
|
}
|
|
|
|
static float _206B_206B_202B_200C_202B_206C_202A_206D_206B_202E_202A_206F_202E_200B_206F_206F_200E_200C_202C_206B_206D_206A_206E_206F_202C_202B_200C_206F_206F_200D_206E_200E_206C_200E_206F_200C_202E_206D_200B_202C_202E()
|
|
{
|
|
return ImGui.GetTextLineHeight();
|
|
}
|
|
|
|
static ImDrawListPtr _202E_206B_202D_202E_206C_206F_206B_202A_206B_202C_206B_206E_202B_206F_200B_202B_200C_200F_200C_202B_202A_200F_200B_202D_202B_206D_202E_202E_202B_202A_200D_206E_202D_206B_202D_202C_200E_200F_206B_206C_202E()
|
|
{
|
|
return ImGui.GetWindowDrawList();
|
|
}
|
|
|
|
static Vector2 _202E_202D_202A_202A_200D_202D_200D_202C_200C_206F_200B_206C_206B_206E_200D_200B_206C_200B_202D_202B_206A_202D_200F_202C_202A_200D_200D_200D_202E_206C_200F_202D_200D_202D_200D_202B_200F_202E_202E_206A_202E()
|
|
{
|
|
return ImGui.GetCursorScreenPos();
|
|
}
|
|
|
|
static uint _206D_206D_206E_202B_206A_200E_200F_206D_202B_206B_200E_200E_206C_200B_206D_200E_200D_206F_206E_202A_202D_202A_206C_200D_202E_206A_206E_202C_206B_206A_206C_202A_200E_200E_206C_206F_206C_206B_200E_200E_202E(Vector4 P_0)
|
|
{
|
|
return ImGui.ColorConvertFloat4ToU32(P_0);
|
|
}
|
|
|
|
static void _202B_200E_206C_200E_206E_202B_200D_200D_206E_200D_206E_206F_206B_206D_202D_202C_206D_206A_206B_206A_206E_202B_202B_206F_200C_206E_206C_200C_206D_202C_206C_200E_206B_202A_200E_200D_200C_206F_206C_206D_202E(Vector2 P_0)
|
|
{
|
|
ImGui.Dummy(P_0);
|
|
}
|
|
|
|
static ImRaii.DisabledDisposable _200C_206D_206E_202D_206D_200D_200D_206A_200D_206D_202D_206D_200F_206B_202C_202A_202C_200B_200B_206E_200C_206D_202C_200B_206D_206A_202D_200B_200E_200D_200F_200E_202E_202B_200C_206E_206A_202C_206F_200D_202E(bool P_0)
|
|
{
|
|
return ImRaii.Disabled(P_0);
|
|
}
|
|
|
|
static void _200F_202A_202A_200D_206A_200B_200E_206F_200F_202B_206D_200D_202B_202E_206C_206C_200C_200E_200B_206B_200C_206B_202C_200C_202B_202E_202D_206D_202E_200E_202A_200B_200C_200E_206F_200C_202B_206E_206E_202B_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
|
|
static ImRaii.ColorDisposable _200B_202E_202C_206B_202C_200C_200E_202A_202B_206F_200E_206D_202D_200F_200F_206F_200E_202E_202A_200C_206E_206C_202A_202D_202A_202E_202E_200F_200D_202E_200D_206B_200C_202E_202B_202C_206C_202E_206D_206C_202E(ImGuiCol P_0, Vector4 P_1, bool P_2)
|
|
{
|
|
return ImRaii.PushColor(P_0, P_1, P_2);
|
|
}
|
|
|
|
static void _202C_200C_202B_202A_202E_202D_206F_202D_206A_202C_206E_206C_206D_200B_206A_206C_200C_206F_200C_200C_202C_206E_206E_206B_200C_202A_206C_200B_202C_200C_206E_206B_202D_200B_202B_202C_206F_202B_200C_200D_202E(IDalamudPluginInterface P_0, IPluginConfiguration P_1)
|
|
{
|
|
P_0.SavePluginConfig(P_1);
|
|
}
|
|
|
|
static void _206F_202B_202D_202B_202C_200F_206E_206A_206E_206C_202B_202E_206B_200D_200B_206F_202B_206D_206D_206B_206A_202D_206E_206D_206C_200C_200E_200C_202C_200D_200E_206F_200F_200F_202D_200D_200B_206A_200B_200F_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogWarning(P_1, P_2);
|
|
}
|
|
|
|
static ImFontPtr _206D_206C_202D_202B_200E_206F_200E_200F_200C_206D_202B_200C_206D_200B_206E_206F_200F_202A_206C_202C_206D_206C_200D_206A_200E_202A_202E_200E_200F_200B_206F_200C_200D_206F_200B_202C_206A_206D_202C_200C_202E()
|
|
{
|
|
return UiBuilder.IconFont;
|
|
}
|
|
|
|
static ImRaii.FontDisposable _202C_202E_200B_206A_200B_202D_200D_202D_202B_200B_206B_202B_202B_200B_206A_206D_200E_200C_206F_200B_202D_202A_202A_200F_200E_202E_202D_206C_206F_206B_202D_206F_202C_206A_202A_202A_202D_202A_202C_200E_202E(ImFontPtr P_0, bool P_1)
|
|
{
|
|
return ImRaii.PushFont(P_0, P_1);
|
|
}
|
|
|
|
static string _206E_200C_200F_206A_206D_206C_206C_202B_200C_206C_206B_206B_202C_206F_200F_202D_206E_206D_206A_200D_206E_206D_202E_206B_206C_206E_202A_206A_206E_200C_202B_206C_202C_202B_200E_206D_200B_206A_206D_200E_202E(FontAwesomeIcon P_0)
|
|
{
|
|
return P_0.ToIconString();
|
|
}
|
|
|
|
static Vector2 _200D_200B_206A_206F_202A_206F_206F_206F_202A_200B_200B_202A_200F_206F_206E_206A_200D_200D_202A_206C_200B_202E_206E_202E_202B_200F_206D_202D_200D_202E_200E_200F_206B_200E_200F_206C_200B_202B_200C_202E_202E(ImU8String P_0, bool P_1, float P_2)
|
|
{
|
|
return ImGui.CalcTextSize(P_0, P_1, P_2);
|
|
}
|
|
|
|
static ImGuiStylePtr _206C_206A_202C_202B_206C_206D_202E_206D_200D_202D_206B_206C_202D_206D_202C_206C_202B_206B_202B_200F_206D_206B_206A_206E_202D_206A_206F_200F_206D_202E_206F_200B_200D_206F_200C_200F_206A_200C_206E_206A_202E()
|
|
{
|
|
return ImGui.GetStyle();
|
|
}
|
|
}
|