forked from aly/qstbak
588 lines
32 KiB
C#
588 lines
32 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using Dalamud.Bindings.ImGui;
|
|
using Dalamud.Game.Text;
|
|
using Dalamud.Interface;
|
|
using Dalamud.Interface.Utility.Raii;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Utility;
|
|
using LLib.Notifications;
|
|
|
|
namespace Questionable.Windows.ConfigComponents;
|
|
|
|
internal sealed class NotificationConfigComponent : ConfigComponent
|
|
{
|
|
[Serializable]
|
|
[CompilerGenerated]
|
|
private sealed class _003C_003Ec
|
|
{
|
|
public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec();
|
|
|
|
public static Func<string, bool> _003C_003E9__8_0;
|
|
|
|
public static Func<XivChatType, bool> _003C_003E9__8_1;
|
|
|
|
public static Func<XivChatType, string> _003C_003E9__8_2;
|
|
|
|
internal bool _003C_002Ector_003Eb__8_0(string n)
|
|
{
|
|
return _206D_200C_206E_202D_206B_206E_200C_200E_200B_200E_200E_206E_206E_206B_206E_200E_206A_200E_200F_202D_202D_200B_200D_200D_200F_206B_202A_200D_206D_202D_202A_200C_206E_206A_200F_206F_206A_202D_200C_206C_202E(n) != null;
|
|
}
|
|
|
|
internal bool _003C_002Ector_003Eb__8_1(XivChatType x)
|
|
{
|
|
return x != XivChatType.StandardEmote;
|
|
}
|
|
|
|
internal string _003C_002Ector_003Eb__8_2(XivChatType t)
|
|
{
|
|
XivChatTypeInfoAttribute? attribute = t.GetAttribute<XivChatTypeInfoAttribute>();
|
|
return ((attribute != null) ? _206D_200F_202D_200B_200B_202E_206E_202A_202D_206A_202A_200D_200B_200B_206A_202D_200C_200C_202A_202A_200C_200D_200D_200B_206F_202B_200D_202E_200D_206E_206D_206A_202D_206A_202C_202D_202C_200F_200D_206E_202E(attribute) : null) ?? t.ToString();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
internal string _003C_002Ecctor_003Eb__11_0(int i)
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(9, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(602783001));
|
|
defaultInterpolatedStringHandler.AppendFormatted(i, 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>(1462241587));
|
|
defaultInterpolatedStringHandler.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>(278560641));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
internal string _003C_002Ecctor_003Eb__11_1(int i)
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(1592517238));
|
|
defaultInterpolatedStringHandler.AppendFormatted(i, 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>(1194352829));
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(1770632532));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
static string _206D_200C_206E_202D_206B_206E_200C_200E_200B_200E_200E_206E_206E_206B_206E_200E_206A_200E_200F_202D_202D_200B_200D_200D_200F_206B_202A_200D_206D_202D_202A_200C_206E_206A_200F_206F_206A_202D_200C_206C_202E(string P_0)
|
|
{
|
|
return WindowsSounds.ResolvePath(P_0);
|
|
}
|
|
|
|
static string _206D_200F_202D_200B_200B_202E_206E_202A_202D_206A_202A_200D_200B_200B_206A_202D_200C_200C_202A_202A_200C_200D_200D_200B_206F_202B_200D_202E_200D_206E_206D_206A_202D_206A_202C_202D_202C_200F_200D_206E_202E(XivChatTypeInfoAttribute P_0)
|
|
{
|
|
return P_0.FancyName;
|
|
}
|
|
}
|
|
|
|
private static readonly string[] CuratedSoundNames;
|
|
|
|
private readonly OutOfGameNotifier _notifier;
|
|
|
|
private readonly string[] _soundFiles;
|
|
|
|
private readonly string[] _soundLabels;
|
|
|
|
private readonly XivChatType[] _xivChatTypes;
|
|
|
|
private readonly string[] _chatTypeNames;
|
|
|
|
private string _chatChannelSearchText = string.Empty;
|
|
|
|
private string _soundSearchText = string.Empty;
|
|
|
|
public NotificationConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration, OutOfGameNotifier notifier)
|
|
: base(pluginInterface, configuration)
|
|
{
|
|
_notifier = notifier;
|
|
_soundFiles = CuratedSoundNames.Where((string n) => _003C_003Ec._206D_200C_206E_202D_206B_206E_200C_200E_200B_200E_200E_206E_206E_206B_206E_200E_206A_200E_200F_202D_202D_200B_200D_200D_200F_206B_202A_200D_206D_202D_202A_200C_206E_206A_200F_206F_206A_202D_200C_206C_202E(n) != null).ToArray();
|
|
_soundLabels = _soundFiles.Select(SoundLabel).ToArray();
|
|
_xivChatTypes = (from x in Enum.GetValues<XivChatType>()
|
|
where x != XivChatType.StandardEmote
|
|
select x).ToArray();
|
|
_chatTypeNames = _xivChatTypes.Select(delegate(XivChatType t)
|
|
{
|
|
XivChatTypeInfoAttribute? attribute = t.GetAttribute<XivChatTypeInfoAttribute>();
|
|
return ((attribute != null) ? _003C_003Ec._206D_200F_202D_200B_200B_202E_206E_202A_202D_206A_202A_200D_200B_200B_206A_202D_200C_200C_202A_202A_200C_200D_200D_200B_206F_202B_200D_202E_200D_206E_206D_206A_202D_206A_202C_202D_202C_200F_200D_206E_202E(attribute) : null) ?? t.ToString();
|
|
}).ToArray();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private static string SoundLabel(string value)
|
|
{
|
|
int num = (_202B_200D_200B_206A_206A_206A_206E_206D_202A_202E_202A_206C_200D_206A_202D_200B_200B_200B_206C_206F_202A_200B_200E_200F_206C_206D_202E_202D_206B_206D_206C_200E_202D_206A_202C_206A_202A_206B_200C_200C_202E(value) ? (-600532132) : (-600532129));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -600532130;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
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>(-989655231);
|
|
case 1:
|
|
return _206D_200D_200F_202D_202C_202A_200D_206C_200C_200F_202B_202E_206F_200C_202C_206F_206F_202B_202A_206B_206B_202C_200D_206C_206A_202D_200C_200B_200B_200F_206A_206D_206C_200C_200F_200D_200E_200D_200F_202E(value);
|
|
case 0:
|
|
goto IL_0058;
|
|
}
|
|
continue;
|
|
IL_0058:
|
|
num = -600532129;
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override void DrawTab()
|
|
{
|
|
UiThemeUtils.SectionHeader(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>(-1178059847));
|
|
(Vector2 ContentStartPos, float AvailableWidth, ImDrawListPtr DrawList) tuple = UiThemeUtils.BeginCard();
|
|
Vector2 item = tuple.ContentStartPos;
|
|
float item2 = tuple.AvailableWidth;
|
|
ImDrawListPtr item3 = tuple.DrawList;
|
|
bool value = base.Configuration.Notifications.Enabled;
|
|
int num = ((!UiThemeUtils.WrappedCheckbox(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>(860957043), ref value)) ? 1450201521 : 1450201522);
|
|
bool value4 = default(bool);
|
|
bool value5 = default(bool);
|
|
Vector2 item7 = default(Vector2);
|
|
float item8 = default(float);
|
|
ImDrawListPtr item9 = default(ImDrawListPtr);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1450201520;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = 1450201522;
|
|
break;
|
|
case 2:
|
|
base.Configuration.Notifications.Enabled = value;
|
|
Save();
|
|
num = 1450201521;
|
|
break;
|
|
case 1:
|
|
{
|
|
ImRaii.DisabledDisposable disabledDisposable = _206D_206A_206C_206D_200C_202A_202D_206D_206B_202E_206B_206B_200C_200B_202D_202D_200D_206B_200C_200B_206C_206B_200E_206B_202A_202B_202D_206D_206D_200C_200C_200D_206C_206C_206E_200F_206E_202D_202A_206A_202E(!base.Configuration.Notifications.Enabled);
|
|
try
|
|
{
|
|
int currentItem = Array.IndexOf(_xivChatTypes, base.Configuration.Notifications.ChatType);
|
|
num = ((currentItem != -1) ? 55349641 : 55349647);
|
|
while (true)
|
|
{
|
|
int num7 = num;
|
|
num3 = 55349645;
|
|
num4 = num7;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 3:
|
|
num = 55349647;
|
|
break;
|
|
case 4:
|
|
{
|
|
float width = _202D_200E_202B_202C_202A_206E_202C_202B_206A_202D_206A_200E_200F_200E_200F_200D_200D_206F_202B_200F_206D_206F_202E_202B_206D_202D_202D_202C_206D_206C_206A_200B_202B_200E_200C_200C_202C_206A_202C_200C_202E(260f, _206D_202E_202E_206A_206F_206E_200C_200B_202A_202D_206D_200B_202C_200E_200D_202C_202D_202B_202A_202D_206E_206B_200F_206D_206D_206A_206D_206D_200E_206A_206A_206B_206F_202B_200B_206A_206E_200C_202E_202A_202E().X);
|
|
num = ((!UiThemeUtils.SearchableCombo(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>(-1712169255), ref currentItem, _chatTypeNames, ref _chatChannelSearchText, width)) ? 55349644 : 55349645);
|
|
break;
|
|
}
|
|
case 0:
|
|
base.Configuration.Notifications.ChatType = _xivChatTypes[currentItem];
|
|
Save();
|
|
num = 55349644;
|
|
break;
|
|
case 2:
|
|
currentItem = 0;
|
|
num = 55349641;
|
|
break;
|
|
case 1:
|
|
goto end_IL_011e;
|
|
}
|
|
continue;
|
|
end_IL_011e:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((disabledDisposable == null) ? 1015162828 : 1015162831);
|
|
while (true)
|
|
{
|
|
int num8 = num;
|
|
num3 = 1015162829;
|
|
num4 = num8;
|
|
int num9 = num4 + num3;
|
|
int num10 = num4 & num3;
|
|
switch (num9 - (num10 + num10))
|
|
{
|
|
case 1:
|
|
goto end_IL_020f;
|
|
case 2:
|
|
_206C_206B_206C_206E_200E_202C_200E_202E_202E_200D_202A_200D_206C_200D_206F_206C_202E_200B_206D_202E_200D_200D_202D_202B_206E_200B_206B_202B_200D_202C_200B_200B_206D_206D_202C_202E_200D_206C_206C_206D_202E((IDisposable)disabledDisposable);
|
|
num = 1015162828;
|
|
break;
|
|
case 0:
|
|
num = 1015162831;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_020f:
|
|
break;
|
|
}
|
|
}
|
|
UiThemeUtils.EndCard(item, item2, item3);
|
|
disabledDisposable = _206D_206A_206C_206D_200C_202A_202D_206D_206B_202E_206B_206B_200C_200B_202D_202D_200D_206B_200C_200B_206C_206B_200E_206B_202A_202B_202D_206D_206D_200C_200C_200D_206C_206C_206E_200F_206E_202D_202A_206A_202E(!base.Configuration.Notifications.Enabled);
|
|
try
|
|
{
|
|
UiThemeUtils.SectionSpacing();
|
|
UiThemeUtils.SectionHeader(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>(-594783107));
|
|
(Vector2 ContentStartPos, float AvailableWidth, ImDrawListPtr DrawList) tuple2 = UiThemeUtils.BeginCard();
|
|
Vector2 item4 = tuple2.ContentStartPos;
|
|
float item5 = tuple2.AvailableWidth;
|
|
ImDrawListPtr item6 = tuple2.DrawList;
|
|
bool value2 = base.Configuration.Notifications.FlashTaskbar;
|
|
num = ((!UiThemeUtils.WrappedCheckbox(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>(1116257301), ref value2)) ? (-62751594) : (-62751599));
|
|
while (true)
|
|
{
|
|
int num11 = num;
|
|
num3 = -62751598;
|
|
num4 = num11;
|
|
int num12 = num4 + num3;
|
|
int num13 = num4 & num3;
|
|
switch (num12 - (num13 + num13))
|
|
{
|
|
case 6:
|
|
value4 = base.Configuration.Notifications.PlaySound;
|
|
num = ((!UiThemeUtils.WrappedCheckbox(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>(922936492), ref value4)) ? (-62751600) : (-62751593));
|
|
break;
|
|
case 5:
|
|
base.Configuration.Notifications.PlaySound = value4;
|
|
Save();
|
|
num = -62751600;
|
|
break;
|
|
case 0:
|
|
num = -62751599;
|
|
break;
|
|
case 3:
|
|
base.Configuration.Notifications.FlashTaskbar = value2;
|
|
Save();
|
|
num = -62751594;
|
|
break;
|
|
case 4:
|
|
value5 = base.Configuration.Notifications.ShowTrayMessage;
|
|
num = ((!UiThemeUtils.WrappedCheckbox(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>(-212691953), ref value5)) ? (-62751596) : (-62751597));
|
|
break;
|
|
case 1:
|
|
base.Configuration.Notifications.ShowTrayMessage = value5;
|
|
Save();
|
|
num = -62751596;
|
|
break;
|
|
case 2:
|
|
{
|
|
ImRaii.DisabledDisposable disabledDisposable2 = _206D_206A_206C_206D_200C_202A_202D_206D_206B_202E_206B_206B_200C_200B_202D_202D_200D_206B_200C_200B_206C_206B_200E_206B_202A_202B_202D_206D_206D_200C_200C_200D_206C_206C_206E_200F_206E_202D_202A_206A_202E(!base.Configuration.Notifications.PlaySound);
|
|
try
|
|
{
|
|
ImRaii.IndentDisposable indentDisposable = _202E_202C_206C_200F_206C_206D_202E_202B_202E_206A_200D_202B_200E_200D_206C_200D_206B_200D_206B_200B_206F_200B_206A_206D_206B_206D_200B_200C_202D_200E_206E_206F_200C_200C_200C_206B_206E_200E_200E_206D_202E(1, true);
|
|
try
|
|
{
|
|
int currentItem2 = Array.IndexOf(_soundFiles, base.Configuration.Notifications.SoundFile);
|
|
float width2 = _202D_200E_202B_202C_202A_206E_202C_202B_206A_202D_206A_200E_200F_200E_200F_200D_200D_206F_202B_200F_206D_206F_202E_202B_206D_202D_202D_202C_206D_206C_206A_200B_202B_200E_200C_200C_202C_206A_202C_200C_202E(_206D_202E_202E_206A_206F_206E_200C_200B_202A_202D_206D_200B_202C_200E_200D_202C_202D_202B_202A_202D_206E_206B_200F_206D_206D_206A_206D_206D_200E_206A_206A_206B_206F_202B_200B_206A_206E_200C_202E_202A_202E().X * 0.6f, 260f);
|
|
num = ((currentItem2 < 0) ? (-996474497) : (-996474498));
|
|
while (true)
|
|
{
|
|
int num14 = num;
|
|
num3 = -996474499;
|
|
num4 = num14;
|
|
object obj;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
default:
|
|
continue;
|
|
case 5:
|
|
base.Configuration.Notifications.SoundFile = _soundFiles[currentItem2];
|
|
Save();
|
|
num = -996474500;
|
|
continue;
|
|
case 3:
|
|
obj = null;
|
|
break;
|
|
case 1:
|
|
_200D_202B_206F_202B_206E_202E_202D_200C_202A_202B_206D_200D_206A_202A_202C_202D_202D_200C_200F_202C_200F_206E_206F_206D_206B_206D_202E_200E_202A_206C_206C_200C_202E_202D_206D_206F_206E_202E_202B_200E_202E();
|
|
num = ((!UiThemeUtils.IconTextButton(FontAwesomeIcon.Play, 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>(1219773276))) ? (-996474503) : (-996474501));
|
|
continue;
|
|
case 6:
|
|
_202B_206C_200E_206E_200B_200E_200F_206E_200C_200B_202E_202E_202D_206E_200E_206E_202B_200F_202E_206C_202C_200C_202A_200F_202C_202B_202E_206C_206A_202D_200F_200F_206B_200C_206A_200E_202A_206D_206B_206D_202E(_notifier, _202D_200D_202B_206D_206F_206C_202E_202A_200D_206C_206B_200B_200D_202C_202E_206A_200F_202A_200F_200C_202C_202B_202E_206C_206B_202C_200E_200B_202C_202B_206F_202C_206B_200E_206D_206C_202D_200F_206D_206D_202E(base.Configuration.Notifications.SoundFile));
|
|
num = -996474503;
|
|
continue;
|
|
case 0:
|
|
num = -996474498;
|
|
continue;
|
|
case 2:
|
|
obj = SoundLabel(base.Configuration.Notifications.SoundFile);
|
|
break;
|
|
case 4:
|
|
goto end_IL_04a4;
|
|
}
|
|
string previewOverride = (string)obj;
|
|
num = ((!UiThemeUtils.SearchableCombo(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>(51923745), ref currentItem2, _soundLabels, ref _soundSearchText, width2, previewOverride)) ? (-996474500) : (-996474504));
|
|
continue;
|
|
end_IL_04a4:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((indentDisposable == null) ? (-363189453) : (-363189456));
|
|
while (true)
|
|
{
|
|
int num15 = num;
|
|
num3 = -363189454;
|
|
num4 = num15;
|
|
int num16 = num4 + num3;
|
|
int num17 = num4 & num3;
|
|
switch (num16 - (num17 + num17))
|
|
{
|
|
case 0:
|
|
num = -363189456;
|
|
break;
|
|
case 1:
|
|
goto end_IL_0604;
|
|
case 2:
|
|
_206C_206B_206C_206E_200E_202C_200E_202E_202E_200D_202A_200D_206C_200D_206F_206C_202E_200B_206D_202E_200D_200D_202D_202B_206E_200B_206B_202B_200D_202C_200B_200B_206D_206D_202C_202E_200D_206C_206C_206D_202E((IDisposable)indentDisposable);
|
|
num = -363189453;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0604:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((disabledDisposable2 == null) ? 33973152 : 33973155);
|
|
while (true)
|
|
{
|
|
int num18 = num;
|
|
num3 = 33973154;
|
|
num4 = num18;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = 33973155;
|
|
break;
|
|
case 1:
|
|
_206C_206B_206C_206E_200E_202C_200E_202E_202E_200D_202A_200D_206C_200D_206F_206C_202E_200B_206D_202E_200D_200D_202D_202B_206E_200B_206B_202B_200D_202C_200B_200B_206D_206D_202C_202E_200D_206C_206C_206D_202E((IDisposable)disabledDisposable2);
|
|
num = 33973152;
|
|
break;
|
|
case 2:
|
|
goto end_IL_0671;
|
|
}
|
|
continue;
|
|
end_IL_0671:
|
|
break;
|
|
}
|
|
}
|
|
bool value3 = base.Configuration.Notifications.OnlyWhenUnfocused;
|
|
num = ((!UiThemeUtils.WrappedCheckbox(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(1501040901), ref value3, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-468946821))) ? (-1567407838) : (-1567407833));
|
|
while (true)
|
|
{
|
|
int num19 = num;
|
|
num3 = -1567407840;
|
|
num4 = num19;
|
|
int num20 = num4 + num3;
|
|
int num21 = num4 & num3;
|
|
switch (num20 - (num21 + num21))
|
|
{
|
|
case 4:
|
|
base.Configuration.Notifications.AlertForSnipe = !base.Configuration.Notifications.AlertForSnipe;
|
|
Save();
|
|
num = -1567407832;
|
|
break;
|
|
case 1:
|
|
goto IL_0782;
|
|
case 7:
|
|
base.Configuration.Notifications.OnlyWhenUnfocused = value3;
|
|
Save();
|
|
num = -1567407838;
|
|
break;
|
|
case 5:
|
|
goto IL_07db;
|
|
case 2:
|
|
{
|
|
UiThemeUtils.EndCard(item4, item5, item6);
|
|
UiThemeUtils.SectionSpacing();
|
|
UiThemeUtils.SectionHeader(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(1455636673));
|
|
_200D_202B_206F_202B_206E_202E_202D_200C_202A_202B_206D_200D_206A_202A_202C_202D_202D_200C_200F_202C_200F_206E_206F_206D_206B_206D_202E_200E_202A_206C_206C_200C_202E_202D_206D_206F_206E_202E_202B_200E_202E();
|
|
UiThemeUtils.InfoIcon(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>(1061858222));
|
|
(Vector2 ContentStartPos, float AvailableWidth, ImDrawListPtr DrawList) tuple3 = UiThemeUtils.BeginCard();
|
|
item7 = tuple3.ContentStartPos;
|
|
item8 = tuple3.AvailableWidth;
|
|
item9 = tuple3.DrawList;
|
|
InlineArray4<UiThemeUtils.GridCheckbox> buffer = default(InlineArray4<UiThemeUtils.GridCheckbox>);
|
|
global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<InlineArray4<UiThemeUtils.GridCheckbox>, UiThemeUtils.GridCheckbox>(ref buffer, 0) = new UiThemeUtils.GridCheckbox(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>(1354247148), base.Configuration.Notifications.AlertForDuties);
|
|
global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<InlineArray4<UiThemeUtils.GridCheckbox>, UiThemeUtils.GridCheckbox>(ref buffer, 1) = new UiThemeUtils.GridCheckbox(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(134232088), base.Configuration.Notifications.AlertForSinglePlayerDuties);
|
|
global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<InlineArray4<UiThemeUtils.GridCheckbox>, UiThemeUtils.GridCheckbox>(ref buffer, 2) = new UiThemeUtils.GridCheckbox(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>(898378632), base.Configuration.Notifications.AlertForSnipe);
|
|
global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<InlineArray4<UiThemeUtils.GridCheckbox>, UiThemeUtils.GridCheckbox>(ref buffer, 3) = new UiThemeUtils.GridCheckbox(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>(1315244177), base.Configuration.Notifications.AlertForStopConditions);
|
|
ReadOnlySpan<UiThemeUtils.GridCheckbox> items = global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan<InlineArray4<UiThemeUtils.GridCheckbox>, UiThemeUtils.GridCheckbox>(in buffer, 4);
|
|
switch (UiThemeUtils.CheckboxGrid(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-1373958987), items))
|
|
{
|
|
case 2:
|
|
break;
|
|
case 3:
|
|
goto IL_0782;
|
|
case 0:
|
|
goto IL_07db;
|
|
default:
|
|
goto IL_0950;
|
|
case 1:
|
|
goto IL_095c;
|
|
}
|
|
goto case 4;
|
|
}
|
|
case 6:
|
|
goto IL_095c;
|
|
case 3:
|
|
num = -1567407833;
|
|
break;
|
|
case 0:
|
|
num = -1567407832;
|
|
break;
|
|
case 8:
|
|
{
|
|
UiThemeUtils.EndCard(item7, item8, item9);
|
|
return;
|
|
}
|
|
IL_095c:
|
|
base.Configuration.Notifications.AlertForSinglePlayerDuties = !base.Configuration.Notifications.AlertForSinglePlayerDuties;
|
|
Save();
|
|
num = -1567407832;
|
|
break;
|
|
IL_0950:
|
|
num = -1567407840;
|
|
break;
|
|
IL_07db:
|
|
base.Configuration.Notifications.AlertForDuties = !base.Configuration.Notifications.AlertForDuties;
|
|
Save();
|
|
num = -1567407832;
|
|
break;
|
|
IL_0782:
|
|
base.Configuration.Notifications.AlertForStopConditions = !base.Configuration.Notifications.AlertForStopConditions;
|
|
Save();
|
|
num = -1567407832;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((disabledDisposable == null) ? (-307318706) : (-307318705));
|
|
while (true)
|
|
{
|
|
int num22 = num;
|
|
num3 = -307318706;
|
|
num4 = num22;
|
|
int num23 = num4 + num3;
|
|
int num24 = num4 & num3;
|
|
switch (num23 - (num24 + num24))
|
|
{
|
|
case 2:
|
|
num = -307318705;
|
|
break;
|
|
case 0:
|
|
goto end_IL_09d8;
|
|
case 1:
|
|
_206C_206B_206C_206E_200E_202C_200E_202E_202E_200D_202A_200D_206C_200D_206F_206C_202E_200B_206D_202E_200D_200D_202D_202B_206E_200B_206B_202B_200D_202C_200B_200B_206D_206D_202C_202E_200D_206C_206C_206D_202E((IDisposable)disabledDisposable);
|
|
num = -307318706;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_09d8:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
static NotificationConfigComponent()
|
|
{
|
|
List<string> list = new List<string>();
|
|
list.AddRange(_200F_206E_206E_200F_200E_202D_202C_202E_202B_200D_202B_200F_200B_206D_202B_202E_200D_200B_200E_200F_200E_202D_200B_202C_206D_206F_200C_206F_200C_200B_206B_202A_206E_200C_206C_202B_200D_200D_206E_202B_202E(1, 10).Select([MethodImpl(MethodImplOptions.NoInlining)] (int i) =>
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(9, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(602783001));
|
|
defaultInterpolatedStringHandler.AppendFormatted(i, 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>(1462241587));
|
|
defaultInterpolatedStringHandler.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>(278560641));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}));
|
|
list.AddRange(_200F_206E_206E_200F_200E_202D_202C_202E_202B_200D_202B_200F_200B_206D_202B_202E_200D_200B_200E_200F_200E_202D_200B_202C_206D_206F_200C_206F_200C_200B_206B_202A_206E_200C_206C_202B_200D_200D_206E_202B_202E(1, 10).Select([MethodImpl(MethodImplOptions.NoInlining)] (int i) =>
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(1592517238));
|
|
defaultInterpolatedStringHandler.AppendFormatted(i, 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>(1194352829));
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(1770632532));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}));
|
|
CuratedSoundNames = list.ToArray();
|
|
}
|
|
|
|
static bool _202B_200D_200B_206A_206A_206A_206E_206D_202A_202E_202A_206C_200D_206A_202D_200B_200B_200B_206C_206F_202A_200B_200E_200F_206C_206D_202E_202D_206B_206D_206C_200E_202D_206A_202C_206A_202A_206B_200C_200C_202E(string P_0)
|
|
{
|
|
return string.IsNullOrEmpty(P_0);
|
|
}
|
|
|
|
static string _206D_200D_200F_202D_202C_202A_200D_206C_200C_200F_202B_202E_206F_200C_202C_206F_206F_202B_202A_206B_206B_202C_200D_206C_206A_202D_200C_200B_200B_200F_206A_206D_206C_200C_200F_200D_200E_200D_200F_202E(string P_0)
|
|
{
|
|
return Path.GetFileNameWithoutExtension(P_0);
|
|
}
|
|
|
|
static ImRaii.DisabledDisposable _206D_206A_206C_206D_200C_202A_202D_206D_206B_202E_206B_206B_200C_200B_202D_202D_200D_206B_200C_200B_206C_206B_200E_206B_202A_202B_202D_206D_206D_200C_200C_200D_206C_206C_206E_200F_206E_202D_202A_206A_202E(bool P_0)
|
|
{
|
|
return ImRaii.Disabled(P_0);
|
|
}
|
|
|
|
static Vector2 _206D_202E_202E_206A_206F_206E_200C_200B_202A_202D_206D_200B_202C_200E_200D_202C_202D_202B_202A_202D_206E_206B_200F_206D_206D_206A_206D_206D_200E_206A_206A_206B_206F_202B_200B_206A_206E_200C_202E_202A_202E()
|
|
{
|
|
return ImGui.GetContentRegionAvail();
|
|
}
|
|
|
|
static float _202D_200E_202B_202C_202A_206E_202C_202B_206A_202D_206A_200E_200F_200E_200F_200D_200D_206F_202B_200F_206D_206F_202E_202B_206D_202D_202D_202C_206D_206C_206A_200B_202B_200E_200C_200C_202C_206A_202C_200C_202E(float P_0, float P_1)
|
|
{
|
|
return MathF.Min(P_0, P_1);
|
|
}
|
|
|
|
static void _206C_206B_206C_206E_200E_202C_200E_202E_202E_200D_202A_200D_206C_200D_206F_206C_202E_200B_206D_202E_200D_200D_202D_202B_206E_200B_206B_202B_200D_202C_200B_200B_206D_206D_202C_202E_200D_206C_206C_206D_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
|
|
static ImRaii.IndentDisposable _202E_202C_206C_200F_206C_206D_202E_202B_202E_206A_200D_202B_200E_200D_206C_200D_206B_200D_206B_200B_206F_200B_206A_206D_206B_206D_200B_200C_202D_200E_206E_206F_200C_200C_200C_206B_206E_200E_200E_206D_202E(int P_0, bool P_1)
|
|
{
|
|
return ImRaii.PushIndent(P_0, P_1);
|
|
}
|
|
|
|
static void _200D_202B_206F_202B_206E_202E_202D_200C_202A_202B_206D_200D_206A_202A_202C_202D_202D_200C_200F_202C_200F_206E_206F_206D_206B_206D_202E_200E_202A_206C_206C_200C_202E_202D_206D_206F_206E_202E_202B_200E_202E()
|
|
{
|
|
ImGui.SameLine();
|
|
}
|
|
|
|
static string _202D_200D_202B_206D_206F_206C_202E_202A_200D_206C_206B_200B_200D_202C_202E_206A_200F_202A_200F_200C_202C_202B_202E_206C_206B_202C_200E_200B_202C_202B_206F_202C_206B_200E_206D_206C_202D_200F_206D_206D_202E(string P_0)
|
|
{
|
|
return WindowsSounds.ResolvePath(P_0);
|
|
}
|
|
|
|
static void _202B_206C_200E_206E_200B_200E_200F_206E_200C_200B_202E_202E_202D_206E_200E_206E_202B_200F_202E_206C_202C_200C_202A_200F_202C_202B_202E_206C_206A_202D_200F_200F_206B_200C_206A_200E_202A_206D_206B_206D_202E(OutOfGameNotifier P_0, string P_1)
|
|
{
|
|
P_0.PlayAlertSound(P_1);
|
|
}
|
|
|
|
static IEnumerable<int> _200F_206E_206E_200F_200E_202D_202C_202E_202B_200D_202B_200F_200B_206D_202B_202E_200D_200B_200E_200F_200E_202D_200B_202C_206D_206F_200C_206F_200C_200B_206B_202A_206E_200C_206C_202B_200D_200D_206E_202B_202E(int P_0, int P_1)
|
|
{
|
|
return Enumerable.Range(P_0, P_1);
|
|
}
|
|
}
|