forked from aly/qstbak
698 lines
42 KiB
C#
698 lines
42 KiB
C#
using System;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using Dalamud.Bindings.ImGui;
|
|
using Dalamud.Interface;
|
|
using Dalamud.Interface.Utility.Raii;
|
|
|
|
namespace Questionable.Windows.ChangelogComponents;
|
|
|
|
internal sealed class ChangelogHeaderComponent
|
|
{
|
|
private float _animationTime;
|
|
|
|
public void Reset()
|
|
{
|
|
_animationTime = 0f;
|
|
}
|
|
|
|
public void Draw(Action<bool> onCloseClicked)
|
|
{
|
|
_animationTime += _200B_202C_206B_200C_200E_206D_202C_202C_206C_202D_200B_206C_202A_206A_206E_200B_202B_200F_206A_200F_200E_200D_206F_202D_206E_202E_206C_200C_206C_200B_202E_200F_200B_206A_206C_202A_200C_206B_202B_200E_202E().DeltaTime;
|
|
ImDrawListPtr drawList = _200C_200E_200C_202D_206F_206A_200D_202B_206D_202A_206E_202B_206F_202D_200F_202D_206E_206B_202B_206F_200B_206F_200C_202D_202B_200E_206D_206C_202A_200B_206A_206B_206E_206B_200E_200C_206F_200E_202A_206B_202E();
|
|
Vector2 headerStartPos = _202B_206D_200C_206E_200E_206E_202E_202A_200C_202C_200D_206F_202A_202C_206D_200F_200C_206C_200B_200C_202A_202C_206B_200D_206D_206A_200D_200D_200B_206E_200D_206F_206B_206C_200D_206C_202A_206E_206D_202D_202E();
|
|
float x = _200F_202B_206C_202B_200C_202D_200B_206C_202E_202B_206D_200D_206C_200D_206F_206C_206A_200D_200F_200F_202C_202C_200D_206E_200B_200D_202E_202C_206A_206F_200C_206A_206E_206B_206A_206E_206E_206A_206A_200C_202E().X;
|
|
float headerHeight = 120f;
|
|
DrawBackground(drawList, headerStartPos, x, headerHeight);
|
|
DrawAnimatedBorder(drawList, headerStartPos, x, headerHeight);
|
|
DrawSparkles(drawList, headerStartPos, x, headerHeight);
|
|
DrawCloseButton(drawList, headerStartPos, x, onCloseClicked);
|
|
DrawHeaderContent(headerStartPos, x, headerHeight);
|
|
DrawAccentLine(drawList, headerStartPos, x, headerHeight);
|
|
_206B_200F_206E_202D_202E_206F_206C_206B_206F_202E_202B_202A_206F_202B_206D_200C_200B_206D_202D_200C_200E_200E_206E_206E_202B_200E_202D_202D_206F_202C_200B_206B_206B_206D_202B_206A_206D_200B_202D_206F_202E(_206A_200D_200B_200E_206A_200F_200E_202A_206F_200F_206A_202C_202A_202C_200E_200D_200E_200F_206A_202D_206E_202D_202C_206B_206E_202D_206F_200F_202E_206D_206E_200E_206C_200B_206A_206F_206A_200B_206B_202E() + 8f);
|
|
}
|
|
|
|
private void DrawBackground(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight)
|
|
{
|
|
float num = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 1.5f) + 1f) * 0.5f * 0.03f;
|
|
uint num2 = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.15f + num, 0.1f + num, 0.2f + num, 0.95f));
|
|
uint num3 = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.08f, 0.05f, 0.12f, 0.95f));
|
|
drawList.AddRectFilledMultiColor(headerStartPos, headerStartPos + new Vector2(contentWidth, headerHeight), num2, num2, num3, num3);
|
|
}
|
|
|
|
private void DrawAnimatedBorder(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight)
|
|
{
|
|
float num = 100f;
|
|
float num2 = 250f;
|
|
float num3 = _animationTime * num % num2;
|
|
float num4 = _200E_202A_206B_206E_200E_200C_200F_200D_206F_202A_202C_202E_206E_200C_206F_202D_206F_202D_200F_202D_206D_206D_206E_200C_206A_206E_200E_202B_206C_206C_200E_200F_206E_202C_200F_206A_206A_202A_206C_206B_202E(contentWidth / num2) + 2f;
|
|
int num5 = 0;
|
|
int num6 = 1598045895;
|
|
float num10 = default(float);
|
|
float num16 = default(float);
|
|
while (true)
|
|
{
|
|
int num7 = num6;
|
|
int num8 = 1598045893;
|
|
int num9 = num7;
|
|
switch ((num9 | num8) - (num9 & num8))
|
|
{
|
|
case 6:
|
|
{
|
|
int num11 = num5;
|
|
num8 = 1;
|
|
num9 = num11;
|
|
int num12 = num9 ^ num8;
|
|
int num13 = num9 & num8;
|
|
num5 = num12 + (num13 + num13);
|
|
num6 = 1598045895;
|
|
break;
|
|
}
|
|
case 1:
|
|
num10 = (float)num5 * num2 - num3;
|
|
num16 = num10 + num2;
|
|
num6 = ((num16 < 0f) ? 1598045891 : 1598045888);
|
|
break;
|
|
case 3:
|
|
{
|
|
float num14 = _206C_202A_206D_200B_206E_206E_200B_202B_202E_202B_206B_200C_202D_202B_202A_200E_206F_200D_200F_206D_200D_206A_202A_206D_200D_200F_206B_200E_200C_206A_200F_200B_200D_200D_206B_206B_202B_200D_202E_206A_202E(0f, num10);
|
|
float num15 = _202E_206E_202E_202D_200C_202A_206D_202A_200C_202C_206F_202B_206D_206C_202E_202D_202C_206B_206D_200F_206C_202D_202B_206C_206F_202B_206C_202B_200E_202D_206D_202A_202B_202D_206D_206C_206B_202A_200C_202E_202E(contentWidth, num16);
|
|
float num17 = (num14 - num10) / num2;
|
|
float num18 = (num15 - num10) / num2;
|
|
float num19 = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num17 * MathF.PI * 2f - MathF.PI / 2f) + 1f) * 0.5f;
|
|
float num20 = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num18 * MathF.PI * 2f - MathF.PI / 2f) + 1f) * 0.5f;
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = num19 * 0.8f;
|
|
Vector4 value = accentColor;
|
|
Vector4 value2 = new Vector4(0.55f, 0.75f, 0.95f, num19 * 0.8f);
|
|
accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = num20 * 0.8f;
|
|
Vector4 value3 = accentColor;
|
|
Vector4 value4 = new Vector4(0.55f, 0.75f, 0.95f, num20 * 0.8f);
|
|
float num21 = (num17 + num18) * 0.5f;
|
|
Vector4 vector = Vector4.Lerp(value, value2, num21);
|
|
Vector4 vector2 = Vector4.Lerp(value3, value4, num21 + 0.2f);
|
|
drawList.AddRectFilledMultiColor(headerStartPos + new Vector2(num14, 0f), headerStartPos + new Vector2(num15, 3f), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(vector), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(vector2), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(vector2), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(vector));
|
|
num6 = 1598045891;
|
|
break;
|
|
}
|
|
case 2:
|
|
num6 = (((float)num5 < num4) ? 1598045892 : 1598045893);
|
|
break;
|
|
case 0:
|
|
return;
|
|
case 5:
|
|
num6 = ((num10 > contentWidth) ? 1598045891 : 1598045894);
|
|
break;
|
|
case 4:
|
|
num6 = 1598045895;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
private void DrawSparkles(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight)
|
|
{
|
|
int num = 12;
|
|
int num2 = 0;
|
|
int num3 = -726160502;
|
|
while (true)
|
|
{
|
|
int num4 = num3;
|
|
int num5 = -726160503;
|
|
int num6 = num4;
|
|
int num7 = num6 + num5;
|
|
int num8 = num6 & num5;
|
|
switch (num7 - (num8 + num8))
|
|
{
|
|
case 2:
|
|
num3 = -726160502;
|
|
break;
|
|
case 3:
|
|
num3 = ((num2 < num) ? (-726160504) : (-726160503));
|
|
break;
|
|
case 1:
|
|
{
|
|
float num9 = (float)num2 * 123.456f;
|
|
float num10 = 0.8f + (float)(num2 % 3) * 0.15f;
|
|
float num11 = _animationTime * num10;
|
|
float x = num9 * 12.345f % 1f * contentWidth;
|
|
float y = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num11 + num9) + 1f) * 0.5f * headerHeight;
|
|
Vector2 pos = headerStartPos + new Vector2(x, y);
|
|
float num12 = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num11 * 3f + num9 * 2f) + 1f) * 0.5f;
|
|
float alpha = num12 * 0.6f;
|
|
float size = 2f + num12 * 1.5f;
|
|
DrawSparkleShape(drawList, pos, size, alpha, num2 % 4, num11);
|
|
int num13 = num2;
|
|
num5 = 1;
|
|
num6 = num13;
|
|
int num14 = num6 ^ num5;
|
|
int num15 = num6 & num5;
|
|
num2 = num14 + (num15 + num15);
|
|
num3 = -726160502;
|
|
break;
|
|
}
|
|
case 0:
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
private static void DrawSparkleShape(ImDrawListPtr drawList, Vector2 pos, float size, float alpha, int type, float time)
|
|
{
|
|
switch (type)
|
|
{
|
|
default:
|
|
{
|
|
int num = 510670740;
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 510670741;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
goto end_IL_001e;
|
|
case 0:
|
|
goto IL_0059;
|
|
case 3:
|
|
num = 510670740;
|
|
break;
|
|
case 1:
|
|
num = 510670737;
|
|
break;
|
|
case 4:
|
|
DrawCircleSparkle(drawList, pos, size, alpha);
|
|
return;
|
|
case 5:
|
|
goto end_IL_0002;
|
|
}
|
|
continue;
|
|
end_IL_001e:
|
|
break;
|
|
}
|
|
goto case 0;
|
|
}
|
|
case 0:
|
|
DrawCrossSparkle(drawList, pos, size, alpha);
|
|
return;
|
|
case 2:
|
|
goto IL_0059;
|
|
case 1:
|
|
break;
|
|
IL_0059:
|
|
DrawStarSparkle(drawList, pos, size, alpha, time);
|
|
return;
|
|
end_IL_0002:
|
|
break;
|
|
}
|
|
DrawDiamondSparkle(drawList, pos, size, alpha);
|
|
}
|
|
|
|
private static void DrawCrossSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha)
|
|
{
|
|
float num = size * 0.8f;
|
|
float thickness = _206C_202A_206D_200B_206E_206E_200B_202B_202E_202B_206B_200C_202D_202B_202A_200E_206F_200D_200F_206D_200D_206A_202A_206D_200D_200F_206B_200E_200C_206A_200F_200B_200D_200D_206B_206B_202B_200D_202E_206A_202E(1f, size * 0.3f);
|
|
drawList.AddLine(pos - new Vector2(num, 0f), pos + new Vector2(num, 0f), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.9f, 0.8f, 1f, alpha)), thickness);
|
|
drawList.AddLine(pos - new Vector2(0f, num), pos + new Vector2(0f, num), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.9f, 0.8f, 1f, alpha)), thickness);
|
|
float radius = size * 1.5f;
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = alpha * 0.2f;
|
|
drawList.AddCircleFilled(pos, radius, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor));
|
|
}
|
|
|
|
private static void DrawDiamondSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha)
|
|
{
|
|
float num = size * 0.7f;
|
|
Vector2 p = pos + new Vector2(0f, 0f - num);
|
|
Vector2 p2 = pos + new Vector2(num, 0f);
|
|
Vector2 p3 = pos + new Vector2(0f, num);
|
|
Vector2 p4 = pos + new Vector2(0f - num, 0f);
|
|
drawList.AddQuadFilled(p, p2, p3, p4, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.9f, 0.8f, 1f, alpha * 0.8f)));
|
|
float radius = size * 1.6f;
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = alpha * 0.25f;
|
|
drawList.AddCircleFilled(pos, radius, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor));
|
|
}
|
|
|
|
private static void DrawStarSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha, float time)
|
|
{
|
|
int num = 0;
|
|
int num2 = -1819671031;
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1819671032;
|
|
int num5 = num3;
|
|
int num6 = num5 + num4;
|
|
int num7 = num5 & num4;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
case 0:
|
|
num2 = -1819671031;
|
|
break;
|
|
case 3:
|
|
{
|
|
float radius = size * 1.7f;
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = alpha * 0.3f;
|
|
drawList.AddCircleFilled(pos, radius, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor));
|
|
return;
|
|
}
|
|
case 1:
|
|
num2 = ((num < 4) ? (-1819671030) : (-1819671029));
|
|
break;
|
|
case 2:
|
|
{
|
|
float num8 = (float)num * MathF.PI * 0.5f;
|
|
float num9 = size * 0.3f;
|
|
float num10 = size * 0.9f;
|
|
float num11 = num8 - 0.3f;
|
|
float num12 = num8 + 0.3f;
|
|
Vector2 p = pos + new Vector2(_200F_206E_200F_206E_206B_202D_206C_206C_202B_206E_200F_202D_200B_202B_200E_202A_206D_206F_206D_206E_202C_202D_202D_206B_202D_206A_202E_200C_200C_202B_206A_206E_206A_200C_202E_200C_200C_202B_202D_202E(num11) * num9, _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num11) * num9);
|
|
Vector2 p2 = pos + new Vector2(_200F_206E_200F_206E_206B_202D_206C_206C_202B_206E_200F_202D_200B_202B_200E_202A_206D_206F_206D_206E_202C_202D_202D_206B_202D_206A_202E_200C_200C_202B_206A_206E_206A_200C_202E_200C_200C_202B_202D_202E(num8) * num10, _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num8) * num10);
|
|
Vector2 p3 = pos + new Vector2(_200F_206E_200F_206E_206B_202D_206C_206C_202B_206E_200F_202D_200B_202B_200E_202A_206D_206F_206D_206E_202C_202D_202D_206B_202D_206A_202E_200C_200C_202B_206A_206E_206A_200C_202E_200C_200C_202B_202D_202E(num12) * num9, _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num12) * num9);
|
|
drawList.AddTriangleFilled(p, p2, p3, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.9f, 0.8f, 1f, alpha)));
|
|
int num13 = num;
|
|
num4 = 1;
|
|
num5 = num13;
|
|
int num14 = num5 ^ num4;
|
|
int num15 = num5 & num4;
|
|
num = num14 + (num15 + num15);
|
|
num2 = -1819671031;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
private static void DrawCircleSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha)
|
|
{
|
|
drawList.AddCircleFilled(pos, size, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.9f, 0.8f, 1f, alpha)));
|
|
float radius = size * 1.8f;
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = alpha * 0.3f;
|
|
drawList.AddCircleFilled(pos, radius, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor));
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private void DrawCloseButton(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, Action<bool> onCloseClicked)
|
|
{
|
|
float num = 32f;
|
|
Vector2 vector = headerStartPos + new Vector2(contentWidth - num - 8f, 8f);
|
|
Vector2 center = vector + new Vector2(num * 0.5f, num * 0.5f);
|
|
Vector2 vector2 = _202C_200D_206E_206A_202D_202C_206C_202E_206B_200B_206B_200F_206E_202E_202E_200E_206A_202D_206D_206E_202C_200F_206A_200E_206B_200F_202D_200C_202D_206C_202D_200B_200D_202E_206E_206D_206A_202C_200B_206F_202E();
|
|
int num2 = ((!(vector2.X >= vector.X)) ? (-1181352748) : (-1181352739));
|
|
float num8 = default(float);
|
|
float w = default(float);
|
|
bool flag = default(bool);
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1181352748;
|
|
int num5 = num3;
|
|
float num9;
|
|
int num10;
|
|
float num6;
|
|
uint num7;
|
|
uint col;
|
|
switch ((num5 | num4) - (num5 & num4))
|
|
{
|
|
case 2:
|
|
num9 = 0.9f;
|
|
goto IL_00c2;
|
|
case 5:
|
|
onCloseClicked(obj: false);
|
|
num2 = -1181352747;
|
|
break;
|
|
case 0:
|
|
num10 = 0;
|
|
goto IL_00f8;
|
|
case 9:
|
|
num2 = ((!(vector2.X <= vector.X + num)) ? (-1181352748) : (-1181352745));
|
|
break;
|
|
case 4:
|
|
num10 = ((vector2.Y <= vector.Y + num) ? 1 : 0);
|
|
goto IL_00f8;
|
|
case 7:
|
|
num6 = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 4f) + 1f) * 0.5f * 0.1f;
|
|
goto IL_018b;
|
|
case 10:
|
|
num9 = 0.5f;
|
|
goto IL_00c2;
|
|
case 3:
|
|
num2 = ((!(vector2.Y >= vector.Y)) ? (-1181352748) : (-1181352752));
|
|
break;
|
|
case 6:
|
|
{
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.X = UiThemeUtils.AccentColor.X + num8;
|
|
accentColor.W = w;
|
|
num7 = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor);
|
|
goto IL_0216;
|
|
}
|
|
case 1:
|
|
return;
|
|
case 11:
|
|
num2 = -1181352739;
|
|
break;
|
|
case 8:
|
|
num7 = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(0.55f, 0.45f, 0.75f, w));
|
|
goto IL_0216;
|
|
case 12:
|
|
{
|
|
num6 = 0f;
|
|
goto IL_018b;
|
|
}
|
|
IL_0216:
|
|
col = num7;
|
|
drawList.AddCircleFilled(center, num * 0.4f, col);
|
|
DrawAnimatedCross(drawList, center, flag);
|
|
_202E_206E_200B_200E_202B_200B_206A_200F_200E_206E_202E_202C_200C_200D_206D_202D_200D_202B_202C_206C_200C_200C_202D_206F_206A_200F_202C_206B_200C_200F_206E_206C_200E_206A_206A_200C_202A_206F_202E_206D_202E(vector);
|
|
num2 = ((!_200F_200F_206B_200E_202C_200C_206E_206B_200F_206A_200D_206A_200C_200B_206A_200E_206F_200B_206D_202B_206D_202A_206E_202D_206C_206F_202C_206F_206E_206F_206F_206E_202A_202E_202C_206D_202E_200E_202B_200C_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>(-2026980897), new Vector2(num, num), ImGuiButtonFlags.None)) ? (-1181352747) : (-1181352751));
|
|
break;
|
|
IL_00c2:
|
|
w = num9;
|
|
num2 = (flag ? (-1181352749) : (-1181352744));
|
|
break;
|
|
IL_018b:
|
|
num8 = num6;
|
|
num2 = (flag ? (-1181352750) : (-1181352740));
|
|
break;
|
|
IL_00f8:
|
|
flag = (byte)num10 != 0;
|
|
num2 = (flag ? (-1181352746) : (-1181352738));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
private void DrawAnimatedCross(ImDrawListPtr drawList, Vector2 center, bool isHovered)
|
|
{
|
|
float thickness = 2f;
|
|
float w = (isHovered ? 1f : 0.8f);
|
|
float num = (isHovered ? (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 6f) * 0.1f) : 0f);
|
|
float num2 = _200F_206E_200F_206E_206B_202D_206C_206C_202B_206E_200F_202D_200B_202B_200E_202A_206D_206F_206D_206E_202C_202D_202D_206B_202D_206A_202E_200C_200C_202B_206A_206E_206A_200C_202E_200C_200C_202B_202D_202E(num);
|
|
float num3 = _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(num);
|
|
float num4 = 8f * 0.5f;
|
|
Vector2 vector = new Vector2((0f - num4) * num2 - (0f - num4) * num3, (0f - num4) * num3 + (0f - num4) * num2);
|
|
Vector2 vector2 = new Vector2(num4 * num2 - num4 * num3, num4 * num3 + num4 * num2);
|
|
Vector2 vector3 = new Vector2((0f - num4) * num2 - num4 * num3, (0f - num4) * num3 + num4 * num2);
|
|
Vector2 vector4 = new Vector2(num4 * num2 - (0f - num4) * num3, num4 * num3 + (0f - num4) * num2);
|
|
drawList.AddLine(center + vector, center + vector2, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(1f, 1f, 1f, w)), thickness);
|
|
drawList.AddLine(center + vector3, center + vector4, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(new Vector4(1f, 1f, 1f, w)), thickness);
|
|
}
|
|
|
|
private void DrawHeaderContent(Vector2 headerStartPos, float contentWidth, float headerHeight)
|
|
{
|
|
float fadeIn = _202E_206E_202E_202D_200C_202A_206D_202A_200C_202C_206F_202B_206D_206C_202E_202D_202C_206B_206D_200F_206C_202D_202B_206C_206F_202B_206C_202B_200E_202D_206D_202A_202B_202D_206D_206C_206B_202A_200C_202E_202E(1f, _animationTime * 2f);
|
|
_202E_206E_200B_200E_202B_200B_206A_200F_200E_206E_202E_202C_200C_200D_206D_202D_200D_202B_202C_206C_200C_200C_202D_206F_206A_200F_202C_206B_200C_200F_206E_206C_200E_206A_206A_200C_202A_206F_202E_206D_202E(headerStartPos);
|
|
_206B_200F_206E_202D_202E_206F_206C_206B_206F_202E_202B_202A_206F_202B_206D_200C_200B_206D_202D_200C_200E_200E_206E_206E_202B_200E_202D_202D_206F_202C_200B_206B_206B_206D_202B_206A_206D_200B_202D_206F_202E(_206A_200D_200B_200E_206A_200F_200E_202A_206F_200F_206A_202C_202A_202C_200E_200D_200E_200F_206A_202D_206E_202D_202C_206B_206E_202D_206F_200F_202E_206D_206E_200E_206C_200B_206A_206F_206A_200B_206B_202E() + 30f);
|
|
float centerX = contentWidth * 0.5f;
|
|
DrawIcon(centerX, fadeIn);
|
|
DrawTitle(centerX, fadeIn);
|
|
DrawSubtitle(centerX);
|
|
}
|
|
|
|
private void DrawIcon(float centerX, float fadeIn)
|
|
{
|
|
float num = _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 2f) * 3f;
|
|
float num2 = _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 1.5f + MathF.PI / 2f) * 1.5f;
|
|
ImRaii.FontDisposable fontDisposable = _200F_202D_200C_200C_206B_206B_200D_200F_206D_202E_202D_200D_202C_202C_200B_206D_206B_206F_206B_200D_200E_206A_206C_200D_202B_202D_202B_202D_206F_206C_202C_200F_200F_206A_202E_202B_206E_200C_202A_202A_202E(_202E_200B_202A_202E_206E_202B_200D_202D_206A_202A_200B_202B_202C_202E_200C_200E_202D_202C_206C_200B_200C_200E_206F_200F_202B_202A_206F_200D_206F_202D_202E_200F_206D_202C_200E_206A_202B_200D_206E_206B_202E(), true);
|
|
try
|
|
{
|
|
string text = _200F_202C_206A_206A_206E_206F_202B_200E_200E_206A_202E_202D_200F_200C_206E_200E_202E_206D_206C_206A_200D_200F_206C_200D_206C_206E_202A_206C_200F_206C_206A_202B_206C_202C_206C_202E_200D_202E_206D_202D_202E(FontAwesomeIcon.FileAlt);
|
|
_200B_200F_206D_206E_200F_206E_206F_200D_206D_202A_202B_200B_206A_202A_206E_200F_202D_206D_200F_200E_206F_202E_200F_200F_206F_206A_200C_200B_200B_200D_200D_202C_200F_202A_206F_202E_202A_206F_202C_202C_202E(centerX - _202C_202B_206E_206D_200C_200B_206C_206A_202C_202B_200F_202C_202E_202E_206F_202B_200D_200B_200E_200C_206F_202E_206A_206D_206B_202C_206E_202C_206A_206C_200F_206B_206D_206F_200D_202A_202B_206E_206A_206E_202E((ImU8String)text, false, -1f).X * 0.5f + num2);
|
|
_206B_200F_206E_202D_202E_206F_206C_206B_206F_202E_202B_202A_206F_202B_206D_200C_200B_206D_202D_200C_200E_200E_206E_206E_202B_200E_202D_202D_206F_202C_200B_206B_206B_206D_202B_206A_206D_200B_202D_206F_202E(_206A_200D_200B_200E_206A_200F_200E_202A_206F_200F_206A_202C_202A_202C_200E_200D_200E_200F_206A_202D_206E_202D_202C_206B_206E_202D_206F_200F_202E_206D_206E_200E_206C_200B_206A_206F_206A_200B_206B_202E() + num);
|
|
float w = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 3f) + 1f) * 0.5f * 0.3f;
|
|
int num3 = ((_animationTime * 0.5f % 1f < 0.5f) ? 769686031 : 769686028);
|
|
Vector4 vector;
|
|
while (true)
|
|
{
|
|
int num4 = num3;
|
|
int num5 = 769686030;
|
|
int num6 = num4;
|
|
switch ((num6 | num5) - (num6 & num5))
|
|
{
|
|
default:
|
|
continue;
|
|
case 0:
|
|
goto IL_0107;
|
|
case 2:
|
|
vector = new Vector4(0.55f, 0.75f, 0.95f, w);
|
|
break;
|
|
case 1:
|
|
{
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = w;
|
|
vector = accentColor;
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
IL_0107:
|
|
num3 = 769686028;
|
|
}
|
|
Vector4 vector2 = vector;
|
|
Vector2 vector3 = _202B_206D_200C_206E_200E_206E_202E_202A_200C_202C_200D_206F_202A_202C_206D_200F_200C_206C_200B_200C_202A_202C_206B_200D_206D_206A_200D_200D_200B_206E_200D_206F_206B_206C_200D_206C_202A_206E_206D_202D_202E();
|
|
_200C_200E_200C_202D_206F_206A_200D_202B_206D_202A_206E_202B_206F_202D_200F_202D_206E_206B_202B_206F_200B_206F_200C_202D_202B_200E_206D_206C_202A_200B_206A_206B_206E_206B_200E_200C_206F_200E_202A_206B_202E().AddText(_202E_200B_202A_202E_206E_202B_200D_202D_206A_202A_200B_202B_202C_202E_200C_200E_202D_202C_206C_200B_200C_200E_206F_200F_202B_202A_206F_200D_206F_202D_202E_200F_206D_202C_200E_206A_202B_200D_206E_206B_202E(), _206A_202D_206A_206F_200F_206B_200C_200F_200B_200D_200F_200C_206B_206F_206F_206C_202A_202B_202D_200D_202B_200C_202E_200E_202E_200B_202B_200D_206B_200E_200D_206E_206A_200B_206F_200D_206C_202D_206E_206D_202E() * 1.2f, vector3 + new Vector2(2f, 2f), _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(vector2), text);
|
|
_200C_202A_206E_206B_206B_206F_206F_206D_202B_202C_200D_206C_202B_202A_200B_206E_206F_202C_202D_206B_202D_206F_206B_206C_206C_202E_202E_202A_202A_206E_202E_206B_206D_202C_200C_202E_202B_202A_202A_202A_202E(ImGuiStyleVar.Alpha, fadeIn);
|
|
_200C_202C_200B_206B_202C_200D_206A_206F_200F_206B_206E_206F_202C_202C_200F_206C_200B_202B_206F_200D_202C_206C_206F_206F_200C_206B_206D_202D_200B_200D_202A_206C_200D_200C_200C_202E_200E_200E_202A_202E(ref UiThemeUtils.AccentColor, (ImU8String)text);
|
|
_200C_202C_206C_202D_202A_200F_206C_200B_202C_200C_206C_200B_202D_206D_202D_206C_200E_206D_206E_206D_200B_200D_200C_200F_200C_202B_202D_206D_202C_206A_200D_202A_200F_200F_200F_202D_200B_200B_200E_202B_202E();
|
|
}
|
|
finally
|
|
{
|
|
int num3 = ((fontDisposable == null) ? 201353111 : 201353108);
|
|
while (true)
|
|
{
|
|
int num7 = num3;
|
|
int num5 = 201353109;
|
|
int num6 = num7;
|
|
switch ((num6 | num5) - (num6 & num5))
|
|
{
|
|
case 2:
|
|
goto end_IL_01da;
|
|
case 1:
|
|
_202E_202E_200F_202E_200E_206B_202E_202B_206B_202A_206C_206E_206A_206A_206D_206B_200C_200C_202A_202A_200C_202C_200C_202A_202B_206F_200E_200C_206B_206C_206A_206D_202D_202D_202A_206E_202A_206E_206B_206C_202E((IDisposable)fontDisposable);
|
|
num3 = 201353111;
|
|
break;
|
|
case 0:
|
|
num3 = 201353108;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_01da:
|
|
break;
|
|
}
|
|
}
|
|
_206B_200F_206E_202D_202E_206F_206C_206B_206F_202E_202B_202A_206F_202B_206D_200C_200B_206D_202D_200C_200E_200E_206E_206E_202B_200E_202D_202D_206F_202C_200B_206B_206B_206D_202B_206A_206D_200B_202D_206F_202E(_206A_200D_200B_200E_206A_200F_200E_202A_206F_200F_206A_202C_202A_202C_200E_200D_200E_200F_206A_202D_206E_202D_202C_206B_206E_202D_206F_200F_202E_206D_206E_200E_206C_200B_206A_206F_206A_200B_206B_202E() - num + 4f);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private void DrawTitle(float centerX, float fadeIn)
|
|
{
|
|
float num = _206C_202A_206D_200B_206E_206E_200B_202B_202E_202B_206B_200C_202D_202B_202A_200E_206F_200D_200F_206D_200D_206A_202A_206D_200D_200F_206B_200E_200C_206A_200F_200B_200D_200D_206B_206B_202B_200D_202E_206A_202E(0f, 1f - (_animationTime - 0.1f) * 3f);
|
|
float num2 = num * num * (3f - 2f * num) * 20f;
|
|
ImRaii.FontDisposable fontDisposable = _200F_202D_200C_200C_206B_206B_200D_200F_206D_202E_202D_200D_202C_202C_200B_206D_206B_206F_206B_200D_200E_206A_206C_200D_202B_202D_202B_202D_206F_206C_202C_200F_200F_206A_202E_202B_206E_200C_202A_202A_202E(_202A_202E_206F_202B_200C_202E_206F_206B_202E_200E_200C_200E_206D_206C_200C_200B_200F_200B_206B_202B_200E_206F_200C_200D_206C_202D_200C_206A_206C_206F_200F_206E_206C_200F_202B_200C_206C_202A_200F_202A_202E(), true);
|
|
try
|
|
{
|
|
string text = 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>(1908424869);
|
|
_200B_200F_206D_206E_200F_206E_206F_200D_206D_202A_202B_200B_206A_202A_206E_200F_202D_206D_200F_200E_206F_202E_200F_200F_206F_206A_200C_200B_200B_200D_200D_202C_200F_202A_206F_202E_202A_206F_202C_202C_202E(centerX - _202C_202B_206E_206D_200C_200B_206C_206A_202C_202B_200F_202C_202E_202E_206F_202B_200D_200B_200E_200C_206F_202E_206A_206D_206B_202C_206E_202C_206A_206C_200F_206B_206D_206F_200D_202A_202B_206E_206A_206E_202E((ImU8String)text, false, -1f).X * 0.5f - num2);
|
|
_200C_202A_206E_206B_206B_206F_206F_206D_202B_202C_200D_206C_202B_202A_200B_206E_206F_202C_202D_206B_202D_206F_206B_206C_206C_202E_202E_202A_202A_206E_202E_206B_206D_202C_200C_202E_202B_202A_202A_202A_202E(ImGuiStyleVar.Alpha, fadeIn);
|
|
Vector4 vector = new Vector4(0.95f, 0.95f, 1f, 1f);
|
|
_200C_202C_200B_206B_202C_200D_206A_206F_200F_206B_206E_206F_202C_202C_200F_206C_200B_202B_206F_200D_202C_206C_206F_206F_200C_206B_206D_202D_200B_200D_202A_206C_200D_200C_200C_202E_200E_200E_202A_202E(ref vector, (ImU8String)text);
|
|
_200C_202C_206C_202D_202A_200F_206C_200B_202C_200C_206C_200B_202D_206D_202D_206C_200E_206D_206E_206D_200B_200D_200C_200F_200C_202B_202D_206D_202C_206A_200D_202A_200F_200F_200F_202D_200B_200B_200E_202B_202E();
|
|
}
|
|
finally
|
|
{
|
|
int num3 = ((fontDisposable == null) ? 537868865 : 537868866);
|
|
while (true)
|
|
{
|
|
int num4 = num3;
|
|
int num5 = 537868867;
|
|
int num6 = num4;
|
|
int num7 = num6 + num5;
|
|
int num8 = num6 & num5;
|
|
switch (num7 - (num8 + num8))
|
|
{
|
|
case 0:
|
|
num3 = 537868866;
|
|
break;
|
|
case 1:
|
|
_202E_202E_200F_202E_200E_206B_202E_202B_206B_202A_206C_206E_206A_206A_206D_206B_200C_200C_202A_202A_200C_202C_200C_202A_202B_206F_200E_200C_206B_206C_206A_206D_202D_202D_202A_206E_202A_206E_206B_206C_202E((IDisposable)fontDisposable);
|
|
num3 = 537868865;
|
|
break;
|
|
case 2:
|
|
goto end_IL_00d2;
|
|
}
|
|
continue;
|
|
end_IL_00d2:
|
|
break;
|
|
}
|
|
}
|
|
_206B_200F_206E_202D_202E_206F_206C_206B_206F_202E_202B_202A_206F_202B_206D_200C_200B_206D_202D_200C_200E_200E_206E_206E_202B_200E_202D_202D_206F_202C_200B_206B_206B_206D_202B_206A_206D_200B_202D_206F_202E(_206A_200D_200B_200E_206A_200F_200E_202A_206F_200F_206A_202C_202A_202C_200E_200D_200E_200F_206A_202D_206E_202D_202C_206B_206E_202D_206F_200F_202E_206D_206E_200E_206C_200B_206A_206F_206A_200B_206B_202E() + 6f);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private void DrawSubtitle(float centerX)
|
|
{
|
|
float num = _206C_202A_206D_200B_206E_206E_200B_202B_202E_202B_206B_200C_202D_202B_202A_200E_206F_200D_200F_206D_200D_206A_202A_206D_200D_200F_206B_200E_200C_206A_200F_200B_200D_200D_206B_206B_202B_200D_202E_206A_202E(0f, _202E_206E_202E_202D_200C_202A_206D_202A_200C_202C_206F_202B_206D_206C_202E_202D_202C_206B_206D_200F_206C_202D_202B_206C_206F_202B_206C_202B_200E_202D_206D_202A_202B_202D_206D_206C_206B_202A_200C_202E_202E(1f, (_animationTime - 0.3f) * 2f));
|
|
string text = 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>(1284431139);
|
|
_200B_200F_206D_206E_200F_206E_206F_200D_206D_202A_202B_200B_206A_202A_206E_200F_202D_206D_200F_200E_206F_202E_200F_200F_206F_206A_200C_200B_200B_200D_200D_202C_200F_202A_206F_202E_202A_206F_202C_202C_202E(centerX - _202C_202B_206E_206D_200C_200B_206C_206A_202C_202B_200F_202C_202E_202E_206F_202B_200D_200B_200E_200C_206F_202E_206A_206D_206B_202C_206E_202C_206A_206C_200F_206B_206D_206F_200D_202A_202B_206E_206A_206E_202E((ImU8String)text, false, -1f).X * 0.5f);
|
|
_200C_202A_206E_206B_206B_206F_206F_206D_202B_202C_200D_206C_202B_202A_200B_206E_206F_202C_202D_206B_202D_206F_206B_206C_206C_202E_202E_202A_202A_206E_202E_206B_206D_202C_200C_202E_202B_202A_202A_202A_202E(ImGuiStyleVar.Alpha, num);
|
|
Vector4 vector = new Vector4(0.7f, 0.7f, 0.8f, 0.9f);
|
|
_200C_202C_200B_206B_202C_200D_206A_206F_200F_206B_206E_206F_202C_202C_200F_206C_200B_202B_206F_200D_202C_206C_206F_206F_200C_206B_206D_202D_200B_200D_202A_206C_200D_200C_200C_202E_200E_200E_202A_202E(ref vector, (ImU8String)text);
|
|
_200C_202C_206C_202D_202A_200F_206C_200B_202C_200C_206C_200B_202D_206D_202D_206C_200E_206D_206E_206D_200B_200D_200C_200F_200C_202B_202D_206D_202C_206A_200D_202A_200F_200F_200F_202D_200B_200B_200E_202B_202E();
|
|
}
|
|
|
|
private void DrawAccentLine(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight)
|
|
{
|
|
_202E_206E_200B_200E_202B_200B_206A_200F_200E_206E_202E_202C_200C_200D_206D_202D_200D_202B_202C_206C_200C_200C_202D_206F_206A_200F_202C_206B_200C_200F_206E_206C_200E_206A_206A_200C_202A_206F_202E_206D_202E(headerStartPos + new Vector2(0f, headerHeight));
|
|
Vector2 vector = _202B_206D_200C_206E_200E_206E_202E_202A_200C_202C_200D_206F_202A_202C_206D_200F_200C_206C_200B_200C_202A_202C_206B_200D_206D_206A_200D_200D_200B_206E_200D_206F_206B_206C_200D_206C_202A_206E_206D_202D_202E();
|
|
float num = (_200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(_animationTime * 2f + MathF.PI) + 1f) * 0.5f;
|
|
Vector2 pMax = vector + new Vector2(contentWidth, 2f);
|
|
Vector4 accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = 0.6f + num * 0.4f;
|
|
uint colUprLeft = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor);
|
|
accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = 0.2f + num * 0.2f;
|
|
uint colUprRight = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor);
|
|
accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = 0.2f + num * 0.2f;
|
|
uint colBotRight = _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor);
|
|
accentColor = UiThemeUtils.AccentColor;
|
|
accentColor.W = 0.6f + num * 0.4f;
|
|
drawList.AddRectFilledMultiColor(vector, pMax, colUprLeft, colUprRight, colBotRight, _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(accentColor));
|
|
}
|
|
|
|
static ImGuiIOPtr _200B_202C_206B_200C_200E_206D_202C_202C_206C_202D_200B_206C_202A_206A_206E_200B_202B_200F_206A_200F_200E_200D_206F_202D_206E_202E_206C_200C_206C_200B_202E_200F_200B_206A_206C_202A_200C_206B_202B_200E_202E()
|
|
{
|
|
return ImGui.GetIO();
|
|
}
|
|
|
|
static ImDrawListPtr _200C_200E_200C_202D_206F_206A_200D_202B_206D_202A_206E_202B_206F_202D_200F_202D_206E_206B_202B_206F_200B_206F_200C_202D_202B_200E_206D_206C_202A_200B_206A_206B_206E_206B_200E_200C_206F_200E_202A_206B_202E()
|
|
{
|
|
return ImGui.GetWindowDrawList();
|
|
}
|
|
|
|
static Vector2 _202B_206D_200C_206E_200E_206E_202E_202A_200C_202C_200D_206F_202A_202C_206D_200F_200C_206C_200B_200C_202A_202C_206B_200D_206D_206A_200D_200D_200B_206E_200D_206F_206B_206C_200D_206C_202A_206E_206D_202D_202E()
|
|
{
|
|
return ImGui.GetCursorScreenPos();
|
|
}
|
|
|
|
static Vector2 _200F_202B_206C_202B_200C_202D_200B_206C_202E_202B_206D_200D_206C_200D_206F_206C_206A_200D_200F_200F_202C_202C_200D_206E_200B_200D_202E_202C_206A_206F_200C_206A_206E_206B_206A_206E_206E_206A_206A_200C_202E()
|
|
{
|
|
return ImGui.GetContentRegionAvail();
|
|
}
|
|
|
|
static float _206A_200D_200B_200E_206A_200F_200E_202A_206F_200F_206A_202C_202A_202C_200E_200D_200E_200F_206A_202D_206E_202D_202C_206B_206E_202D_206F_200F_202E_206D_206E_200E_206C_200B_206A_206F_206A_200B_206B_202E()
|
|
{
|
|
return ImGui.GetCursorPosY();
|
|
}
|
|
|
|
static void _206B_200F_206E_202D_202E_206F_206C_206B_206F_202E_202B_202A_206F_202B_206D_200C_200B_206D_202D_200C_200E_200E_206E_206E_202B_200E_202D_202D_206F_202C_200B_206B_206B_206D_202B_206A_206D_200B_202D_206F_202E(float P_0)
|
|
{
|
|
ImGui.SetCursorPosY(P_0);
|
|
}
|
|
|
|
static float _200F_202B_202B_206E_200E_202E_202C_206D_206C_200E_202D_200F_200B_202D_206B_202D_202C_200C_206F_206F_202C_206A_206E_200C_206D_200C_202C_202A_206F_202D_202C_202E_202B_200E_200C_200C_200F_206D_202E_200C_202E(float P_0)
|
|
{
|
|
return MathF.Sin(P_0);
|
|
}
|
|
|
|
static uint _206A_200E_202B_200B_200B_200E_202A_202E_202D_202C_206C_206A_202A_206E_206D_202C_202B_206A_200E_206E_202A_200D_202A_206D_206C_202C_206F_206C_202C_200F_200B_206D_200D_202E_206C_206E_202B_200E_200D_206E_202E(Vector4 P_0)
|
|
{
|
|
return ImGui.ColorConvertFloat4ToU32(P_0);
|
|
}
|
|
|
|
static float _200E_202A_206B_206E_200E_200C_200F_200D_206F_202A_202C_202E_206E_200C_206F_202D_206F_202D_200F_202D_206D_206D_206E_200C_206A_206E_200E_202B_206C_206C_200E_200F_206E_202C_200F_206A_206A_202A_206C_206B_202E(float P_0)
|
|
{
|
|
return MathF.Ceiling(P_0);
|
|
}
|
|
|
|
static float _206C_202A_206D_200B_206E_206E_200B_202B_202E_202B_206B_200C_202D_202B_202A_200E_206F_200D_200F_206D_200D_206A_202A_206D_200D_200F_206B_200E_200C_206A_200F_200B_200D_200D_206B_206B_202B_200D_202E_206A_202E(float P_0, float P_1)
|
|
{
|
|
return MathF.Max(P_0, P_1);
|
|
}
|
|
|
|
static float _202E_206E_202E_202D_200C_202A_206D_202A_200C_202C_206F_202B_206D_206C_202E_202D_202C_206B_206D_200F_206C_202D_202B_206C_206F_202B_206C_202B_200E_202D_206D_202A_202B_202D_206D_206C_206B_202A_200C_202E_202E(float P_0, float P_1)
|
|
{
|
|
return MathF.Min(P_0, P_1);
|
|
}
|
|
|
|
static float _200F_206E_200F_206E_206B_202D_206C_206C_202B_206E_200F_202D_200B_202B_200E_202A_206D_206F_206D_206E_202C_202D_202D_206B_202D_206A_202E_200C_200C_202B_206A_206E_206A_200C_202E_200C_200C_202B_202D_202E(float P_0)
|
|
{
|
|
return MathF.Cos(P_0);
|
|
}
|
|
|
|
static Vector2 _202C_200D_206E_206A_202D_202C_206C_202E_206B_200B_206B_200F_206E_202E_202E_200E_206A_202D_206D_206E_202C_200F_206A_200E_206B_200F_202D_200C_202D_206C_202D_200B_200D_202E_206E_206D_206A_202C_200B_206F_202E()
|
|
{
|
|
return ImGui.GetMousePos();
|
|
}
|
|
|
|
static void _202E_206E_200B_200E_202B_200B_206A_200F_200E_206E_202E_202C_200C_200D_206D_202D_200D_202B_202C_206C_200C_200C_202D_206F_206A_200F_202C_206B_200C_200F_206E_206C_200E_206A_206A_200C_202A_206F_202E_206D_202E(Vector2 P_0)
|
|
{
|
|
ImGui.SetCursorScreenPos(P_0);
|
|
}
|
|
|
|
static bool _200F_200F_206B_200E_202C_200C_206E_206B_200F_206A_200D_206A_200C_200B_206A_200E_206F_200B_206D_202B_206D_202A_206E_202D_206C_206F_202C_206F_206E_206F_206F_206E_202A_202E_202C_206D_202E_200E_202B_200C_202E(ImU8String P_0, Vector2 P_1, ImGuiButtonFlags P_2)
|
|
{
|
|
return ImGui.InvisibleButton(P_0, P_1, P_2);
|
|
}
|
|
|
|
static ImFontPtr _202E_200B_202A_202E_206E_202B_200D_202D_206A_202A_200B_202B_202C_202E_200C_200E_202D_202C_206C_200B_200C_200E_206F_200F_202B_202A_206F_200D_206F_202D_202E_200F_206D_202C_200E_206A_202B_200D_206E_206B_202E()
|
|
{
|
|
return UiBuilder.IconFont;
|
|
}
|
|
|
|
static ImRaii.FontDisposable _200F_202D_200C_200C_206B_206B_200D_200F_206D_202E_202D_200D_202C_202C_200B_206D_206B_206F_206B_200D_200E_206A_206C_200D_202B_202D_202B_202D_206F_206C_202C_200F_200F_206A_202E_202B_206E_200C_202A_202A_202E(ImFontPtr P_0, bool P_1)
|
|
{
|
|
return ImRaii.PushFont(P_0, P_1);
|
|
}
|
|
|
|
static string _200F_202C_206A_206A_206E_206F_202B_200E_200E_206A_202E_202D_200F_200C_206E_200E_202E_206D_206C_206A_200D_200F_206C_200D_206C_206E_202A_206C_200F_206C_206A_202B_206C_202C_206C_202E_200D_202E_206D_202D_202E(FontAwesomeIcon P_0)
|
|
{
|
|
return P_0.ToIconString();
|
|
}
|
|
|
|
static Vector2 _202C_202B_206E_206D_200C_200B_206C_206A_202C_202B_200F_202C_202E_202E_206F_202B_200D_200B_200E_200C_206F_202E_206A_206D_206B_202C_206E_202C_206A_206C_200F_206B_206D_206F_200D_202A_202B_206E_206A_206E_202E(ImU8String P_0, bool P_1, float P_2)
|
|
{
|
|
return ImGui.CalcTextSize(P_0, P_1, P_2);
|
|
}
|
|
|
|
static void _200B_200F_206D_206E_200F_206E_206F_200D_206D_202A_202B_200B_206A_202A_206E_200F_202D_206D_200F_200E_206F_202E_200F_200F_206F_206A_200C_200B_200B_200D_200D_202C_200F_202A_206F_202E_202A_206F_202C_202C_202E(float P_0)
|
|
{
|
|
ImGui.SetCursorPosX(P_0);
|
|
}
|
|
|
|
static float _206A_202D_206A_206F_200F_206B_200C_200F_200B_200D_200F_200C_206B_206F_206F_206C_202A_202B_202D_200D_202B_200C_202E_200E_202E_200B_202B_200D_206B_200E_200D_206E_206A_200B_206F_200D_206C_202D_206E_206D_202E()
|
|
{
|
|
return ImGui.GetFontSize();
|
|
}
|
|
|
|
static void _200C_202A_206E_206B_206B_206F_206F_206D_202B_202C_200D_206C_202B_202A_200B_206E_206F_202C_202D_206B_202D_206F_206B_206C_206C_202E_202E_202A_202A_206E_202E_206B_206D_202C_200C_202E_202B_202A_202A_202A_202E(ImGuiStyleVar P_0, float P_1)
|
|
{
|
|
ImGui.PushStyleVar(P_0, P_1);
|
|
}
|
|
|
|
static void _200C_202C_200B_206B_202C_200D_206A_206F_200F_206B_206E_206F_202C_202C_200F_206C_200B_202B_206F_200D_202C_206C_206F_206F_200C_206B_206D_202D_200B_200D_202A_206C_200D_200C_200C_202E_200E_200E_202A_202E(ref Vector4 P_0, ImU8String P_1)
|
|
{
|
|
ImGui.TextColored(in P_0, P_1);
|
|
}
|
|
|
|
static void _200C_202C_206C_202D_202A_200F_206C_200B_202C_200C_206C_200B_202D_206D_202D_206C_200E_206D_206E_206D_200B_200D_200C_200F_200C_202B_202D_206D_202C_206A_200D_202A_200F_200F_200F_202D_200B_200B_200E_202B_202E()
|
|
{
|
|
ImGui.PopStyleVar();
|
|
}
|
|
|
|
static void _202E_202E_200F_202E_200E_206B_202E_202B_206B_202A_206C_206E_206A_206A_206D_206B_200C_200C_202A_202A_200C_202C_200C_202A_202B_206F_200E_200C_206B_206C_206A_206D_202D_202D_202A_206E_202A_206E_206B_206C_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
|
|
static ImFontPtr _202A_202E_206F_202B_200C_202E_206F_206B_202E_200E_200C_200E_206D_206C_200C_200B_200F_200B_206B_202B_200E_206F_200C_200D_206C_202D_200C_206A_206C_206F_200F_206E_206C_200F_202B_200C_206C_202A_200F_202A_202E()
|
|
{
|
|
return UiBuilder.MonoFont;
|
|
}
|
|
}
|