forked from aly/qstbak
muffin v7.5.6
This commit is contained in:
parent
6266f9e6b7
commit
addf2d530f
619 changed files with 264792 additions and 446022 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
|
|
@ -11,64 +12,304 @@ internal static class ChangelogCategoryComponent
|
|||
{
|
||||
public static void DrawCategoryGroup(EChangeCategory category, List<ChangeEntry> changes, float baseX)
|
||||
{
|
||||
DrawCategoryHeader(category switch
|
||||
FontAwesomeIcon fontAwesomeIcon = default(FontAwesomeIcon);
|
||||
Vector4 vector = default(Vector4);
|
||||
FontAwesomeIcon icon = default(FontAwesomeIcon);
|
||||
int num;
|
||||
switch (category)
|
||||
{
|
||||
EChangeCategory.Added => FontAwesomeIcon.Plus,
|
||||
EChangeCategory.Changed => FontAwesomeIcon.Edit,
|
||||
EChangeCategory.Fixed => FontAwesomeIcon.Wrench,
|
||||
EChangeCategory.Removed => FontAwesomeIcon.Minus,
|
||||
EChangeCategory.QuestUpdates => FontAwesomeIcon.Map,
|
||||
_ => FontAwesomeIcon.Circle,
|
||||
}, category switch
|
||||
{
|
||||
EChangeCategory.Added => new Vector4(0.5f, 1f, 0.6f, 1f),
|
||||
EChangeCategory.Changed => new Vector4(0.6f, 0.85f, 1f, 1f),
|
||||
EChangeCategory.Fixed => new Vector4(1f, 0.85f, 0.5f, 1f),
|
||||
EChangeCategory.Removed => new Vector4(1f, 0.5f, 0.5f, 1f),
|
||||
EChangeCategory.QuestUpdates => new Vector4(1f, 1f, 0.6f, 1f),
|
||||
_ => new Vector4(0.9f, 0.9f, 0.9f, 1f),
|
||||
}, category.ToDisplayString(), baseX);
|
||||
ImGui.Spacing();
|
||||
float changeIndent = 28f;
|
||||
foreach (ChangeEntry change in changes)
|
||||
{
|
||||
DrawChange(change, baseX, changeIndent);
|
||||
default:
|
||||
num = -3418486;
|
||||
goto IL_0026;
|
||||
case EChangeCategory.Fixed:
|
||||
fontAwesomeIcon = FontAwesomeIcon.Wrench;
|
||||
num = -3418482;
|
||||
goto IL_0026;
|
||||
case EChangeCategory.Added:
|
||||
goto IL_00b4;
|
||||
case EChangeCategory.Changed:
|
||||
goto IL_0131;
|
||||
case EChangeCategory.Removed:
|
||||
goto IL_016b;
|
||||
case EChangeCategory.QuestUpdates:
|
||||
goto IL_017d;
|
||||
IL_0026:
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -3418489;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 4:
|
||||
goto end_IL_0026;
|
||||
case 13:
|
||||
num = -3418495;
|
||||
break;
|
||||
case 1:
|
||||
num = -3418491;
|
||||
break;
|
||||
case 15:
|
||||
goto IL_00b4;
|
||||
case 8:
|
||||
vector = UiThemeUtils.StatusLocked;
|
||||
num = -3418487;
|
||||
break;
|
||||
case 7:
|
||||
goto IL_00d9;
|
||||
case 11:
|
||||
goto IL_00ec;
|
||||
case 16:
|
||||
num = -3418486;
|
||||
break;
|
||||
case 5:
|
||||
goto IL_010b;
|
||||
case 3:
|
||||
goto IL_011e;
|
||||
case 10:
|
||||
goto IL_0131;
|
||||
case 9:
|
||||
icon = fontAwesomeIcon;
|
||||
switch (category)
|
||||
{
|
||||
case EChangeCategory.Removed:
|
||||
break;
|
||||
case EChangeCategory.Fixed:
|
||||
goto IL_00d9;
|
||||
case EChangeCategory.QuestUpdates:
|
||||
goto IL_00ec;
|
||||
case EChangeCategory.Changed:
|
||||
goto IL_010b;
|
||||
case EChangeCategory.Added:
|
||||
goto IL_011e;
|
||||
default:
|
||||
goto IL_015f;
|
||||
}
|
||||
goto case 8;
|
||||
case 12:
|
||||
goto IL_016b;
|
||||
case 0:
|
||||
goto IL_017d;
|
||||
case 6:
|
||||
fontAwesomeIcon = FontAwesomeIcon.Circle;
|
||||
num = -3418482;
|
||||
break;
|
||||
case 2:
|
||||
vector = UiThemeUtils.DimTextColor;
|
||||
num = -3418487;
|
||||
break;
|
||||
case 14:
|
||||
{
|
||||
Vector4 color = vector;
|
||||
DrawCategoryHeader(icon, color, category.ToDisplayString(), baseX);
|
||||
_206E_202C_202B_206A_206C_200D_200B_200E_206B_206B_202B_200B_206E_202B_206A_206D_202C_200B_200F_200D_206A_202E_200F_206A_200D_200C_200F_206F_202C_206C_202C_200B_200F_200C_206C_206E_206D_202E_206C_202A_202E();
|
||||
float changeIndent = 28f;
|
||||
using List<ChangeEntry>.Enumerator enumerator = changes.GetEnumerator();
|
||||
num = -835962102;
|
||||
while (true)
|
||||
{
|
||||
int num5 = num;
|
||||
num3 = -835962104;
|
||||
num4 = num5;
|
||||
int num6 = num4 + num3;
|
||||
int num7 = num4 & num3;
|
||||
switch (num6 - (num7 + num7))
|
||||
{
|
||||
case 2:
|
||||
num = (enumerator.MoveNext() ? (-835962103) : (-835962104));
|
||||
break;
|
||||
case 1:
|
||||
DrawChange(enumerator.Current, baseX, changeIndent);
|
||||
num = -835962102;
|
||||
break;
|
||||
case 3:
|
||||
num = -835962102;
|
||||
break;
|
||||
case 0:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
IL_015f:
|
||||
num = -3418490;
|
||||
break;
|
||||
IL_011e:
|
||||
vector = UiThemeUtils.StatusComplete;
|
||||
num = -3418487;
|
||||
break;
|
||||
IL_010b:
|
||||
vector = UiThemeUtils.StatusActive;
|
||||
num = -3418487;
|
||||
break;
|
||||
IL_00ec:
|
||||
vector = UiThemeUtils.AccentColor;
|
||||
num = -3418487;
|
||||
break;
|
||||
IL_00d9:
|
||||
vector = UiThemeUtils.StatusAvailableComplete;
|
||||
num = -3418487;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_0026:
|
||||
break;
|
||||
}
|
||||
goto case EChangeCategory.Fixed;
|
||||
IL_017d:
|
||||
fontAwesomeIcon = FontAwesomeIcon.Map;
|
||||
num = -3418482;
|
||||
goto IL_0026;
|
||||
IL_016b:
|
||||
fontAwesomeIcon = FontAwesomeIcon.Minus;
|
||||
num = -3418482;
|
||||
goto IL_0026;
|
||||
IL_0131:
|
||||
fontAwesomeIcon = FontAwesomeIcon.Edit;
|
||||
num = -3418482;
|
||||
goto IL_0026;
|
||||
IL_00b4:
|
||||
fontAwesomeIcon = FontAwesomeIcon.Plus;
|
||||
num = -3418482;
|
||||
goto IL_0026;
|
||||
}
|
||||
}
|
||||
|
||||
private static void DrawCategoryHeader(FontAwesomeIcon icon, Vector4 color, string text, float baseX)
|
||||
{
|
||||
float cursorPosY = ImGui.GetCursorPosY();
|
||||
ImGui.SetCursorPosX(baseX);
|
||||
using (ImRaii.PushFont(UiBuilder.IconFont))
|
||||
float num = _206E_206F_206F_206F_206A_202C_200C_206C_202E_206B_206B_200E_206D_206D_206A_202A_206F_202D_206B_206C_200E_206A_200F_206A_202E_200D_202E_202D_206F_206C_200D_206F_206A_206F_202C_200F_200B_202D_206B_202A_202E();
|
||||
_206A_200E_206D_206D_202B_202C_202A_206E_200D_202E_202B_206F_206D_200C_202D_206C_202E_200E_202C_202A_202D_206D_202E_206A_206D_202A_206C_202B_202A_206C_202C_206A_200D_206F_200E_202B_200F_206A_206B_206B_202E(baseX);
|
||||
ImRaii.FontDisposable fontDisposable = _206A_202C_200C_206A_206E_200B_206B_200B_202E_206C_206E_202B_200D_200F_200E_206A_200E_202C_206D_206C_202A_200F_206A_200E_200E_206E_206C_200F_202D_202D_206C_202B_206E_206D_202E_200C_206F_206C_206E_202C_202E(_206B_206A_206B_200B_206A_206E_202D_202E_206A_202B_200D_202D_202C_200C_206F_206C_202C_206F_200F_200D_200F_206A_202E_202E_206D_206D_206E_206A_200D_200D_202A_202E_202B_206C_202C_202A_206E_202B_202C_202D_202E(), true);
|
||||
try
|
||||
{
|
||||
ImGui.TextColored(in color, icon.ToIconString());
|
||||
_206D_202B_202C_206B_200B_206A_202C_202A_200C_202D_202C_202D_200B_202E_206A_202B_200B_200E_200C_200E_206A_200E_202A_206A_202E_206C_202B_200D_200C_202A_202C_202E_206A_206B_200F_202A_202A_200D_202C_206A_202E(ref color, (ImU8String)_202A_200C_202C_200D_206F_200D_206C_200F_202D_202A_206B_202E_200E_206E_206C_200F_202A_200C_200F_206F_202A_200C_206D_206F_202D_202D_206A_200C_202C_202B_206A_202B_202C_206F_202A_206F_200D_202B_200E_206E_202E(icon));
|
||||
}
|
||||
ImGui.SameLine();
|
||||
ImGui.SetCursorPosY(cursorPosY);
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, color))
|
||||
finally
|
||||
{
|
||||
ImGui.TextUnformatted(text);
|
||||
int num2 = ((fontDisposable == null) ? (-1204111214) : (-1204111215));
|
||||
while (true)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = -1204111216;
|
||||
int num5 = num3;
|
||||
switch ((num5 | num4) - (num5 & num4))
|
||||
{
|
||||
case 0:
|
||||
num2 = -1204111215;
|
||||
break;
|
||||
case 2:
|
||||
goto end_IL_004b;
|
||||
case 1:
|
||||
_206B_202B_206E_206B_200B_200B_206A_206B_200B_206C_202E_202C_206C_202C_200C_202B_206E_202C_206F_200F_202A_206F_206D_206D_202B_200B_206B_200F_202C_200B_200C_202C_206E_202A_206F_206C_202E_206D_202B_206A_202E((IDisposable)fontDisposable);
|
||||
num2 = -1204111214;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_004b:
|
||||
break;
|
||||
}
|
||||
}
|
||||
_200B_200C_202A_206F_200D_206F_200B_200B_202C_206E_202C_206F_206F_202C_206F_200C_206D_200E_200F_202C_206E_206A_202B_200F_206C_206D_200C_200C_200F_200C_200F_202B_202D_206C_202B_206A_202C_200B_200F_202D_202E();
|
||||
_200B_206F_206F_206D_206D_202D_206E_200D_206C_206E_206D_202E_200E_202E_206A_202B_200C_202D_202B_200D_206C_200C_200B_202D_206D_202D_206F_200B_206E_206D_202A_206A_206A_200E_202A_200E_200C_206D_206F_200E_202E(num);
|
||||
ImRaii.ColorDisposable colorDisposable = _202A_200F_206A_202D_200D_200D_202B_206C_206B_206A_200E_202D_206D_202B_206B_206C_206F_200F_202C_200D_206F_200E_200C_206D_202C_206A_206A_206F_206F_206D_206F_200C_202B_202B_206A_202C_206C_202A_206E_206A_202E(ImGuiCol.Text, color, true);
|
||||
try
|
||||
{
|
||||
_206D_206C_202B_206D_202B_206E_200D_202E_202C_206A_206D_206D_202B_206E_206C_202B_202A_202E_206A_200E_200F_206E_202A_206A_206A_200B_202C_206C_206A_202A_200C_202A_206F_206B_206A_200E_202E_206D_206D_202E((ImU8String)text);
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num2 = ((colorDisposable == null) ? (-1954991280) : (-1954991279));
|
||||
while (true)
|
||||
{
|
||||
int num6 = num2;
|
||||
int num4 = -1954991280;
|
||||
int num5 = num6;
|
||||
int num7 = num5 + num4;
|
||||
int num8 = num5 & num4;
|
||||
switch (num7 - (num8 + num8))
|
||||
{
|
||||
case 0:
|
||||
goto end_IL_00d3;
|
||||
case 1:
|
||||
_206B_202B_206E_206B_200B_200B_206A_206B_200B_206C_202E_202C_206C_202C_200C_202B_206E_202C_206F_200F_202A_206F_206D_206D_202B_200B_206B_200F_202C_200B_200C_202C_206E_202A_206F_206C_202E_206D_202B_206A_202E((IDisposable)colorDisposable);
|
||||
num2 = -1954991280;
|
||||
break;
|
||||
case 2:
|
||||
num2 = -1954991279;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_00d3:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void DrawChange(ChangeEntry change, float baseX, float changeIndent)
|
||||
{
|
||||
ImGui.SetCursorPosX(baseX + changeIndent);
|
||||
float cursorPosY = ImGui.GetCursorPosY();
|
||||
using (ImRaii.PushFont(UiBuilder.IconFont))
|
||||
_206A_200E_206D_206D_202B_202C_202A_206E_200D_202E_202B_206F_206D_200C_202D_206C_202E_200E_202C_202A_202D_206D_202E_206A_206D_202A_206C_202B_202A_206C_202C_206A_200D_206F_200E_202B_200F_206A_206B_206B_202E(baseX + changeIndent);
|
||||
float num = _206E_206F_206F_206F_206A_202C_200C_206C_202E_206B_206B_200E_206D_206D_206A_202A_206F_202D_206B_206C_200E_206A_200F_206A_202E_200D_202E_202D_206F_206C_200D_206F_206A_206F_202C_200F_200B_202D_206B_202A_202E();
|
||||
ImRaii.FontDisposable fontDisposable = _206A_202C_200C_206A_206E_200B_206B_200B_202E_206C_206E_202B_200D_200F_200E_206A_200E_202C_206D_206C_202A_200F_206A_200E_200E_206E_206C_200F_202D_202D_206C_202B_206E_206D_202E_200C_206F_206C_206E_202C_202E(_206B_206A_206B_200B_206A_206E_202D_202E_206A_202B_200D_202D_202C_200C_206F_206C_202C_206F_200F_200D_200F_206A_202E_202E_206D_206D_206E_206A_200D_200D_202A_202E_202B_206C_202C_202A_206E_202B_202C_202D_202E(), true);
|
||||
int num2;
|
||||
try
|
||||
{
|
||||
ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), FontAwesomeIcon.CaretRight.ToIconString());
|
||||
_206D_202B_202C_206B_200B_206A_202C_202A_200C_202D_202C_202D_200B_202E_206A_202B_200B_200E_200C_200E_206A_200E_202A_206A_202E_206C_202B_200D_200C_202A_202C_202E_206A_206B_200F_202A_202A_200D_202C_206A_202E(ref UiThemeUtils.PrimaryTextColor, (ImU8String)_202A_200C_202C_200D_206F_200D_206C_200F_202D_202A_206B_202E_200E_206E_206C_200F_202A_200C_200F_206F_202A_200C_206D_206F_202D_202D_206A_200C_202C_202B_206A_202B_202C_206F_202A_206F_200D_202B_200E_206E_202E(FontAwesomeIcon.CaretRight));
|
||||
}
|
||||
ImGui.SameLine();
|
||||
ImGui.SetCursorPosY(cursorPosY);
|
||||
float num = ImGui.GetContentRegionAvail().X - 8f;
|
||||
ImGui.PushTextWrapPos(ImGui.GetCursorPosX() + num);
|
||||
ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), change.Description);
|
||||
ImGui.PopTextWrapPos();
|
||||
if (change.SubItems != null && change.SubItems.Count > 0)
|
||||
finally
|
||||
{
|
||||
DrawSubItems(change.SubItems, baseX, changeIndent);
|
||||
num2 = ((fontDisposable == null) ? 90155660 : 90155663);
|
||||
while (true)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = 90155661;
|
||||
int num5 = num3;
|
||||
int num6 = num5 + num4;
|
||||
int num7 = num5 & num4;
|
||||
switch (num6 - (num7 + num7))
|
||||
{
|
||||
case 0:
|
||||
num2 = 90155663;
|
||||
break;
|
||||
case 2:
|
||||
_206B_202B_206E_206B_200B_200B_206A_206B_200B_206C_202E_202C_206C_202C_200C_202B_206E_202C_206F_200F_202A_206F_206D_206D_202B_200B_206B_200F_202C_200B_200C_202C_206E_202A_206F_206C_202E_206D_202B_206A_202E((IDisposable)fontDisposable);
|
||||
num2 = 90155660;
|
||||
break;
|
||||
case 1:
|
||||
goto end_IL_0054;
|
||||
}
|
||||
continue;
|
||||
end_IL_0054:
|
||||
break;
|
||||
}
|
||||
}
|
||||
_200B_200C_202A_206F_200D_206F_200B_200B_202C_206E_202C_206F_206F_202C_206F_200C_206D_200E_200F_202C_206E_206A_202B_200F_206C_206D_200C_200C_200F_200C_200F_202B_202D_206C_202B_206A_202C_200B_200F_202D_202E();
|
||||
_200B_206F_206F_206D_206D_202D_206E_200D_206C_206E_206D_202E_200E_202E_206A_202B_200C_202D_202B_200D_206C_200C_200B_202D_206D_202D_206F_200B_206E_206D_202A_206A_206A_200E_202A_200E_200C_206D_206F_200E_202E(num);
|
||||
float num8 = _206C_206D_202A_206F_200C_206C_202A_206A_206D_202C_206E_202A_202B_206E_202E_200E_200D_200B_206F_200D_202C_202E_200C_202A_202A_206B_202C_202A_202E_202C_206A_206D_200B_200C_206D_206B_206C_200D_206F_202D_202E().X - 8f;
|
||||
_200D_202C_206F_200B_206D_200E_206D_202C_202B_206B_202B_206E_200F_206C_206D_202E_202B_206C_202A_200F_206A_202C_206F_202A_202E_202E_202E_206F_200D_200D_202D_200C_202E_202D_200B_202E_206C_202D_206C_200F_202E(_202C_200B_200D_206A_202B_200E_200C_200F_202B_200C_200B_202E_202A_200B_202C_206A_206A_206A_200B_200D_202A_206E_206D_202E_206F_200B_202D_202A_202D_202B_200C_206E_200F_202E_206E_200C_200D_206D_202A_206C_202E() + num8);
|
||||
_206D_202B_202C_206B_200B_206A_202C_202A_200C_202D_202C_202D_200B_202E_206A_202B_200B_200E_200C_200E_206A_200E_202A_206A_202E_206C_202B_200D_200C_202A_202C_202E_206A_206B_200F_202A_202A_200D_202C_206A_202E(ref UiThemeUtils.PrimaryTextColor, (ImU8String)change.Description);
|
||||
_206D_202C_206D_200E_202D_206E_202D_206E_202A_206D_202A_206F_200E_202E_206D_202D_206C_206B_206F_206F_202A_202C_206F_200B_200E_206C_206D_200C_202D_200D_206E_206E_202A_202D_202E_202A_202A_206C_200E_206F_202E();
|
||||
num2 = ((change.SubItems == null) ? 622444501 : 622444500);
|
||||
while (true)
|
||||
{
|
||||
int num9 = num2;
|
||||
int num4 = 622444502;
|
||||
int num5 = num9;
|
||||
int num10 = num5 + num4;
|
||||
int num11 = num5 & num4;
|
||||
switch (num10 - (num11 + num11))
|
||||
{
|
||||
case 0:
|
||||
num2 = 622444500;
|
||||
break;
|
||||
case 1:
|
||||
DrawSubItems(change.SubItems, baseX, changeIndent);
|
||||
num2 = 622444501;
|
||||
break;
|
||||
case 3:
|
||||
return;
|
||||
case 2:
|
||||
num2 = ((change.SubItems.Count <= 0) ? 622444501 : 622444503);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -77,18 +318,126 @@ internal static class ChangelogCategoryComponent
|
|||
float num = changeIndent + 20f;
|
||||
foreach (string subItem in subItems)
|
||||
{
|
||||
ImGui.SetCursorPosX(baseX + num);
|
||||
float cursorPosY = ImGui.GetCursorPosY();
|
||||
using (ImRaii.PushFont(UiBuilder.IconFont))
|
||||
_206A_200E_206D_206D_202B_202C_202A_206E_200D_202E_202B_206F_206D_200C_202D_206C_202E_200E_202C_202A_202D_206D_202E_206A_206D_202A_206C_202B_202A_206C_202C_206A_200D_206F_200E_202B_200F_206A_206B_206B_202E(baseX + num);
|
||||
float num2 = _206E_206F_206F_206F_206A_202C_200C_206C_202E_206B_206B_200E_206D_206D_206A_202A_206F_202D_206B_206C_200E_206A_200F_206A_202E_200D_202E_202D_206F_206C_200D_206F_206A_206F_202C_200F_200B_202D_206B_202A_202E();
|
||||
ImRaii.FontDisposable fontDisposable = _206A_202C_200C_206A_206E_200B_206B_200B_202E_206C_206E_202B_200D_200F_200E_206A_200E_202C_206D_206C_202A_200F_206A_200E_200E_206E_206C_200F_202D_202D_206C_202B_206E_206D_202E_200C_206F_206C_206E_202C_202E(_206B_206A_206B_200B_206A_206E_202D_202E_206A_202B_200D_202D_202C_200C_206F_206C_202C_206F_200F_200D_200F_206A_202E_202E_206D_206D_206E_206A_200D_200D_202A_202E_202B_206C_202C_202A_206E_202B_202C_202D_202E(), true);
|
||||
try
|
||||
{
|
||||
ImGui.TextColored(new Vector4(0.85f, 0.85f, 0.92f, 1f), FontAwesomeIcon.AngleRight.ToIconString());
|
||||
_206D_202B_202C_206B_200B_206A_202C_202A_200C_202D_202C_202D_200B_202E_206A_202B_200B_200E_200C_200E_206A_200E_202A_206A_202E_206C_202B_200D_200C_202A_202C_202E_206A_206B_200F_202A_202A_200D_202C_206A_202E(ref UiThemeUtils.DimTextColor, (ImU8String)_202A_200C_202C_200D_206F_200D_206C_200F_202D_202A_206B_202E_200E_206E_206C_200F_202A_200C_200F_206F_202A_200C_206D_206F_202D_202D_206A_200C_202C_202B_206A_202B_202C_206F_202A_206F_200D_202B_200E_206E_202E(FontAwesomeIcon.AngleRight));
|
||||
}
|
||||
ImGui.SameLine();
|
||||
ImGui.SetCursorPosY(cursorPosY);
|
||||
float num2 = ImGui.GetContentRegionAvail().X - 8f;
|
||||
ImGui.PushTextWrapPos(ImGui.GetCursorPosX() + num2);
|
||||
ImGui.TextColored(new Vector4(0.85f, 0.85f, 0.92f, 1f), subItem);
|
||||
ImGui.PopTextWrapPos();
|
||||
finally
|
||||
{
|
||||
int num3 = ((fontDisposable == null) ? (-940511254) : (-940511255));
|
||||
while (true)
|
||||
{
|
||||
int num4 = num3;
|
||||
int num5 = -940511256;
|
||||
int num6 = num4;
|
||||
int num7 = num6 + num5;
|
||||
int num8 = num6 & num5;
|
||||
switch (num7 - (num8 + num8))
|
||||
{
|
||||
case 2:
|
||||
goto end_IL_0074;
|
||||
case 1:
|
||||
_206B_202B_206E_206B_200B_200B_206A_206B_200B_206C_202E_202C_206C_202C_200C_202B_206E_202C_206F_200F_202A_206F_206D_206D_202B_200B_206B_200F_202C_200B_200C_202C_206E_202A_206F_206C_202E_206D_202B_206A_202E((IDisposable)fontDisposable);
|
||||
num3 = -940511254;
|
||||
break;
|
||||
case 0:
|
||||
num3 = -940511255;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_0074:
|
||||
break;
|
||||
}
|
||||
}
|
||||
_200B_200C_202A_206F_200D_206F_200B_200B_202C_206E_202C_206F_206F_202C_206F_200C_206D_200E_200F_202C_206E_206A_202B_200F_206C_206D_200C_200C_200F_200C_200F_202B_202D_206C_202B_206A_202C_200B_200F_202D_202E();
|
||||
_200B_206F_206F_206D_206D_202D_206E_200D_206C_206E_206D_202E_200E_202E_206A_202B_200C_202D_202B_200D_206C_200C_200B_202D_206D_202D_206F_200B_206E_206D_202A_206A_206A_200E_202A_200E_200C_206D_206F_200E_202E(num2);
|
||||
float num9 = _206C_206D_202A_206F_200C_206C_202A_206A_206D_202C_206E_202A_202B_206E_202E_200E_200D_200B_206F_200D_202C_202E_200C_202A_202A_206B_202C_202A_202E_202C_206A_206D_200B_200C_206D_206B_206C_200D_206F_202D_202E().X - 8f;
|
||||
_200D_202C_206F_200B_206D_200E_206D_202C_202B_206B_202B_206E_200F_206C_206D_202E_202B_206C_202A_200F_206A_202C_206F_202A_202E_202E_202E_206F_200D_200D_202D_200C_202E_202D_200B_202E_206C_202D_206C_200F_202E(_202C_200B_200D_206A_202B_200E_200C_200F_202B_200C_200B_202E_202A_200B_202C_206A_206A_206A_200B_200D_202A_206E_206D_202E_206F_200B_202D_202A_202D_202B_200C_206E_200F_202E_206E_200C_200D_206D_202A_206C_202E() + num9);
|
||||
_206D_202B_202C_206B_200B_206A_202C_202A_200C_202D_202C_202D_200B_202E_206A_202B_200B_200E_200C_200E_206A_200E_202A_206A_202E_206C_202B_200D_200C_202A_202C_202E_206A_206B_200F_202A_202A_200D_202C_206A_202E(ref UiThemeUtils.DimTextColor, (ImU8String)subItem);
|
||||
_206D_202C_206D_200E_202D_206E_202D_206E_202A_206D_202A_206F_200E_202E_206D_202D_206C_206B_206F_206F_202A_202C_206F_200B_200E_206C_206D_200C_202D_200D_206E_206E_202A_202D_202E_202A_202A_206C_200E_206F_202E();
|
||||
}
|
||||
}
|
||||
|
||||
static void _206E_202C_202B_206A_206C_200D_200B_200E_206B_206B_202B_200B_206E_202B_206A_206D_202C_200B_200F_200D_206A_202E_200F_206A_200D_200C_200F_206F_202C_206C_202C_200B_200F_200C_206C_206E_206D_202E_206C_202A_202E()
|
||||
{
|
||||
ImGui.Spacing();
|
||||
}
|
||||
|
||||
static float _206E_206F_206F_206F_206A_202C_200C_206C_202E_206B_206B_200E_206D_206D_206A_202A_206F_202D_206B_206C_200E_206A_200F_206A_202E_200D_202E_202D_206F_206C_200D_206F_206A_206F_202C_200F_200B_202D_206B_202A_202E()
|
||||
{
|
||||
return ImGui.GetCursorPosY();
|
||||
}
|
||||
|
||||
static void _206A_200E_206D_206D_202B_202C_202A_206E_200D_202E_202B_206F_206D_200C_202D_206C_202E_200E_202C_202A_202D_206D_202E_206A_206D_202A_206C_202B_202A_206C_202C_206A_200D_206F_200E_202B_200F_206A_206B_206B_202E(float P_0)
|
||||
{
|
||||
ImGui.SetCursorPosX(P_0);
|
||||
}
|
||||
|
||||
static ImFontPtr _206B_206A_206B_200B_206A_206E_202D_202E_206A_202B_200D_202D_202C_200C_206F_206C_202C_206F_200F_200D_200F_206A_202E_202E_206D_206D_206E_206A_200D_200D_202A_202E_202B_206C_202C_202A_206E_202B_202C_202D_202E()
|
||||
{
|
||||
return UiBuilder.IconFont;
|
||||
}
|
||||
|
||||
static ImRaii.FontDisposable _206A_202C_200C_206A_206E_200B_206B_200B_202E_206C_206E_202B_200D_200F_200E_206A_200E_202C_206D_206C_202A_200F_206A_200E_200E_206E_206C_200F_202D_202D_206C_202B_206E_206D_202E_200C_206F_206C_206E_202C_202E(ImFontPtr P_0, bool P_1)
|
||||
{
|
||||
return ImRaii.PushFont(P_0, P_1);
|
||||
}
|
||||
|
||||
static string _202A_200C_202C_200D_206F_200D_206C_200F_202D_202A_206B_202E_200E_206E_206C_200F_202A_200C_200F_206F_202A_200C_206D_206F_202D_202D_206A_200C_202C_202B_206A_202B_202C_206F_202A_206F_200D_202B_200E_206E_202E(FontAwesomeIcon P_0)
|
||||
{
|
||||
return P_0.ToIconString();
|
||||
}
|
||||
|
||||
static void _206D_202B_202C_206B_200B_206A_202C_202A_200C_202D_202C_202D_200B_202E_206A_202B_200B_200E_200C_200E_206A_200E_202A_206A_202E_206C_202B_200D_200C_202A_202C_202E_206A_206B_200F_202A_202A_200D_202C_206A_202E(ref Vector4 P_0, ImU8String P_1)
|
||||
{
|
||||
ImGui.TextColored(in P_0, P_1);
|
||||
}
|
||||
|
||||
static void _206B_202B_206E_206B_200B_200B_206A_206B_200B_206C_202E_202C_206C_202C_200C_202B_206E_202C_206F_200F_202A_206F_206D_206D_202B_200B_206B_200F_202C_200B_200C_202C_206E_202A_206F_206C_202E_206D_202B_206A_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
|
||||
static void _200B_200C_202A_206F_200D_206F_200B_200B_202C_206E_202C_206F_206F_202C_206F_200C_206D_200E_200F_202C_206E_206A_202B_200F_206C_206D_200C_200C_200F_200C_200F_202B_202D_206C_202B_206A_202C_200B_200F_202D_202E()
|
||||
{
|
||||
ImGui.SameLine();
|
||||
}
|
||||
|
||||
static void _200B_206F_206F_206D_206D_202D_206E_200D_206C_206E_206D_202E_200E_202E_206A_202B_200C_202D_202B_200D_206C_200C_200B_202D_206D_202D_206F_200B_206E_206D_202A_206A_206A_200E_202A_200E_200C_206D_206F_200E_202E(float P_0)
|
||||
{
|
||||
ImGui.SetCursorPosY(P_0);
|
||||
}
|
||||
|
||||
static ImRaii.ColorDisposable _202A_200F_206A_202D_200D_200D_202B_206C_206B_206A_200E_202D_206D_202B_206B_206C_206F_200F_202C_200D_206F_200E_200C_206D_202C_206A_206A_206F_206F_206D_206F_200C_202B_202B_206A_202C_206C_202A_206E_206A_202E(ImGuiCol P_0, Vector4 P_1, bool P_2)
|
||||
{
|
||||
return ImRaii.PushColor(P_0, P_1, P_2);
|
||||
}
|
||||
|
||||
static void _206D_206C_202B_206D_202B_206E_200D_202E_202C_206A_206D_206D_202B_206E_206C_202B_202A_202E_206A_200E_200F_206E_202A_206A_206A_200B_202C_206C_206A_202A_200C_202A_206F_206B_206A_200E_202E_206D_206D_202E(ImU8String P_0)
|
||||
{
|
||||
ImGui.TextUnformatted(P_0);
|
||||
}
|
||||
|
||||
static Vector2 _206C_206D_202A_206F_200C_206C_202A_206A_206D_202C_206E_202A_202B_206E_202E_200E_200D_200B_206F_200D_202C_202E_200C_202A_202A_206B_202C_202A_202E_202C_206A_206D_200B_200C_206D_206B_206C_200D_206F_202D_202E()
|
||||
{
|
||||
return ImGui.GetContentRegionAvail();
|
||||
}
|
||||
|
||||
static float _202C_200B_200D_206A_202B_200E_200C_200F_202B_200C_200B_202E_202A_200B_202C_206A_206A_206A_200B_200D_202A_206E_206D_202E_206F_200B_202D_202A_202D_202B_200C_206E_200F_202E_206E_200C_200D_206D_202A_206C_202E()
|
||||
{
|
||||
return ImGui.GetCursorPosX();
|
||||
}
|
||||
|
||||
static void _200D_202C_206F_200B_206D_200E_206D_202C_202B_206B_202B_206E_200F_206C_206D_202E_202B_206C_202A_200F_206A_202C_206F_202A_202E_202E_202E_206F_200D_200D_202D_200C_202E_202D_200B_202E_206C_202D_206C_200F_202E(float P_0)
|
||||
{
|
||||
ImGui.PushTextWrapPos(P_0);
|
||||
}
|
||||
|
||||
static void _206D_202C_206D_200E_202D_206E_202D_206E_202A_206D_202A_206F_200E_202E_206D_202D_206C_206B_206F_206F_202A_202C_206F_200B_200E_206C_206D_200C_202D_200D_206E_206E_202A_202D_202E_202A_202A_206C_200E_206F_202E()
|
||||
{
|
||||
ImGui.PopTextWrapPos();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
|
|
@ -25,128 +28,422 @@ internal sealed class ChangelogEntryComponent
|
|||
_animationTime = animationTime;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public void Draw(ChangelogEntry changelog, bool isLatest, bool hasSetInitialState)
|
||||
{
|
||||
bool isNew = changelog.IsNewVersion(_configuration.LastViewedChangelogVersion, ChangelogData.Changelogs);
|
||||
ImGui.GetWindowDrawList();
|
||||
string text = changelog.ReleaseDate.ToString("MMMM dd, yyyy", CultureInfo.InvariantCulture);
|
||||
if (!hasSetInitialState)
|
||||
_206D_206D_206A_206F_202C_206C_206A_202D_206C_200F_206B_206B_200D_206E_206B_206A_200B_206C_206E_202B_202B_206B_202B_206E_202E_200C_200E_206B_206F_202E_200B_202B_206B_206F_206C_202E_206E_202D_200B_206B_202E();
|
||||
string text = changelog.ReleaseDate.ToString(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>(-1240136689), _202A_206F_206F_206A_200F_202E_200B_206C_202A_206F_202B_200D_206C_202A_206E_202C_206F_202C_200B_202E_206F_202E_206F_200B_206F_200C_206B_206A_202D_202D_202E_206A_200C_206F_200B_206E_202C_200B_206B_202A_202E());
|
||||
int num = (hasSetInitialState ? 1911348857 : 1911348856);
|
||||
while (true)
|
||||
{
|
||||
ImGui.SetNextItemOpen(isLatest, ImGuiCond.Always);
|
||||
}
|
||||
string text2 = "v" + changelog.Version;
|
||||
float fontSize = ImGui.GetFontSize();
|
||||
float num = fontSize;
|
||||
Vector2 versionSize;
|
||||
using (ImRaii.PushFont(UiBuilder.MonoFont))
|
||||
{
|
||||
versionSize = ImGui.CalcTextSize(text2);
|
||||
}
|
||||
Vector2 dateSize = ImGui.CalcTextSize(text);
|
||||
float scaledIconFontSize = fontSize * 0.85f;
|
||||
float x = ImGui.GetContentRegionAvail().X;
|
||||
bool flag;
|
||||
using (ImRaii.PushColor(ImGuiCol.Header, new Vector4(0.2f, 0.18f, 0.25f, 0.6f)))
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.HeaderHovered, new Vector4(0.3f, 0.25f, 0.35f, 0.8f)))
|
||||
int num2 = num;
|
||||
int num3 = 1911348857;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.HeaderActive, new Vector4(0.25f, 0.22f, 0.3f, 1f)))
|
||||
case 2:
|
||||
num = 1911348856;
|
||||
break;
|
||||
case 1:
|
||||
_202A_206A_206F_202E_202C_206D_206E_200E_206B_202D_206D_202D_202E_202E_200C_202B_206F_200F_202A_200B_202D_206A_206F_200F_200C_202C_200E_202D_202A_200C_206D_206C_200C_200D_200F_200B_206F_202E_200F_200C_202E(isLatest, ImGuiCond.Always);
|
||||
num = 1911348857;
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
string text2 = _200E_200B_202C_200B_206E_206F_206C_202B_206F_206B_202C_202C_202E_202D_202B_206D_202B_202A_200C_202E_206A_202A_206F_206B_206C_202B_200E_206D_200B_200C_206E_200C_206F_206A_202B_200F_206C_202B_206A_206D_202E(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>(198217444), changelog.Version);
|
||||
float num7 = _202E_206D_206F_202D_200E_206A_206B_206A_202C_200B_202B_200D_202B_200F_206B_206B_202A_200C_206E_202E_206A_202D_200C_202B_200F_206E_200D_202D_202A_200C_200F_206B_206B_200D_200D_206D_202B_206B_206A_206B_202E();
|
||||
float num8 = num7;
|
||||
ImRaii.FontDisposable fontDisposable = _202D_206C_206A_200C_200C_206A_206A_206E_200B_202B_200D_202D_200D_200F_206A_200F_200E_206A_202C_200C_202D_202B_202D_202D_206E_206A_202B_206B_200C_206B_206B_206C_202C_206B_202E_202B_200C_206D_206E_206A_202E(_206D_206D_200B_206C_202B_202B_200F_200B_206E_200D_202C_206E_200F_206D_200F_202B_202E_202D_200F_202A_202A_206F_200E_206B_206C_202C_202C_200E_206A_202B_200F_200D_202C_202A_206C_200C_206A_200B_206D_200D_202E(), true);
|
||||
Vector2 versionSize;
|
||||
try
|
||||
{
|
||||
Vector2 cursorPos = ImGui.GetCursorPos();
|
||||
Vector2 cursorScreenPos = ImGui.GetCursorScreenPos();
|
||||
ImU8String label = new ImU8String(19, 2);
|
||||
label.AppendLiteral("###header_");
|
||||
label.AppendFormatted(changelog.Version);
|
||||
label.AppendLiteral("_changes_");
|
||||
label.AppendFormatted(_windowOpenCount);
|
||||
flag = ImGui.CollapsingHeader(label);
|
||||
Vector2 cursorPos2 = ImGui.GetCursorPos();
|
||||
float verticalOffset = (cursorPos2.Y - cursorPos.Y - num) * 0.5f - 1f;
|
||||
DrawVersionText(text2, versionSize, cursorPos, verticalOffset);
|
||||
DrawNewBadge(isNew, cursorScreenPos, x);
|
||||
DrawDateWithIcon(text, dateSize, scaledIconFontSize, cursorScreenPos, cursorPos, x, verticalOffset, fontSize);
|
||||
ImGui.SetCursorPos(cursorPos2);
|
||||
versionSize = _206A_200D_200D_206B_206B_200C_200E_202D_206C_206B_200D_202E_206F_202C_206D_200F_202C_202C_202A_206E_200B_206D_202D_202E_200B_200C_202A_200D_206E_206A_200E_206C_202A_202E_200D_202E_202C_206A_200D_206A_202E((ImU8String)text2, false, -1f);
|
||||
}
|
||||
finally
|
||||
{
|
||||
num = ((fontDisposable == null) ? (-1789217360) : (-1789217357));
|
||||
while (true)
|
||||
{
|
||||
int num9 = num;
|
||||
num3 = -1789217359;
|
||||
num4 = num9;
|
||||
int num10 = num4 + num3;
|
||||
int num11 = num4 & num3;
|
||||
switch (num10 - (num11 + num11))
|
||||
{
|
||||
case 0:
|
||||
num = -1789217357;
|
||||
break;
|
||||
case 2:
|
||||
_206C_200C_202D_200C_202C_206E_206F_206D_200D_202B_206B_200F_206D_202A_206F_200F_200E_206C_200D_206C_206C_200E_200B_200F_206C_206A_202B_200C_202B_202B_202E_202E_200F_202A_200E_206B_206E_200F_200F_206D_202E((IDisposable)fontDisposable);
|
||||
num = -1789217360;
|
||||
break;
|
||||
case 1:
|
||||
goto end_IL_010a;
|
||||
}
|
||||
continue;
|
||||
end_IL_010a:
|
||||
break;
|
||||
}
|
||||
}
|
||||
Vector2 dateSize = _206A_200D_200D_206B_206B_200C_200E_202D_206C_206B_200D_202E_206F_202C_206D_200F_202C_202C_202A_206E_200B_206D_202D_202E_200B_200C_202A_200D_206E_206A_200E_206C_202A_202E_200D_202E_202C_206A_200D_206A_202E((ImU8String)text, false, -1f);
|
||||
float scaledIconFontSize = num7 * 0.85f;
|
||||
float x = _206E_206C_202A_200C_200E_202E_202E_206C_200E_206A_200F_206E_202C_206B_200D_202C_200B_202D_200F_202E_206A_200D_202C_206F_206D_206C_200F_206A_202D_206F_202D_202B_206B_206B_202D_206E_206D_206F_206D_202A_202E().X;
|
||||
Vector2 headerStartPos = _206D_202B_202D_206A_206F_206C_206A_202D_206E_206C_200F_206B_206F_202B_206B_206B_200F_202B_206D_200D_200D_206F_206C_206F_202B_202B_202C_202B_200F_200E_206F_202A_206E_200D_206D_206D_206E_206D_202A_200C_202E();
|
||||
Vector2 headerStartScreenPos = _206C_202E_206D_202B_206B_200E_206B_202B_200B_206F_206F_202C_200E_200D_200B_206B_206A_202D_206C_206F_200B_202B_206C_202B_202A_206B_202A_206D_206D_206A_202A_206C_200E_206A_206D_200B_200D_206B_206B_202E_202E();
|
||||
ImU8String imU8String = new ImU8String(19, 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>(1977092887));
|
||||
imU8String.AppendFormatted(changelog.Version);
|
||||
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>(47339251));
|
||||
imU8String.AppendFormatted(_windowOpenCount);
|
||||
bool num12 = _200F_202C_206F_200F_206A_200F_202C_202C_206C_202B_200D_202D_206B_202B_200B_206F_200D_206E_200F_202E_202C_206F_200F_200B_200B_200D_206B_206E_206C_200C_206C_202C_202E_200E_200B_206A_202B_206C_202E_200D_202E(imU8String, ImGuiTreeNodeFlags.None);
|
||||
Vector2 vector = _206D_202B_202D_206A_206F_206C_206A_202D_206E_206C_200F_206B_206F_202B_206B_206B_200F_202B_206D_200D_200D_206F_206C_206F_202B_202B_202C_202B_200F_200E_206F_202A_206E_200D_206D_206D_206E_206D_202A_200C_202E();
|
||||
float verticalOffset = (vector.Y - headerStartPos.Y - num8) * 0.5f - 1f;
|
||||
DrawVersionText(text2, versionSize, headerStartPos, verticalOffset);
|
||||
DrawNewBadge(isNew, headerStartScreenPos, x);
|
||||
DrawDateWithIcon(text, dateSize, scaledIconFontSize, headerStartScreenPos, headerStartPos, x, verticalOffset, num7);
|
||||
_206A_206C_200B_206C_202D_200E_202B_206F_206F_206E_206C_200D_202A_206A_202E_206E_200E_202E_200D_200C_200B_200C_202D_202D_200D_202C_200C_200B_206F_200E_206F_202D_200B_206A_202D_206E_200F_202C_206D_202E_202E(vector);
|
||||
num = (num12 ? 301162147 : 301162144);
|
||||
while (true)
|
||||
{
|
||||
int num13 = num;
|
||||
num3 = 301162145;
|
||||
num4 = num13;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
DrawChangelogContent(changelog);
|
||||
return;
|
||||
case 1:
|
||||
return;
|
||||
case 0:
|
||||
goto IL_0280;
|
||||
}
|
||||
continue;
|
||||
IL_0280:
|
||||
num = 301162144;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
DrawChangelogContent(changelog);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void DrawVersionText(string versionText, Vector2 versionSize, Vector2 headerStartPos, float verticalOffset)
|
||||
{
|
||||
float x = headerStartPos.X + ImGui.GetStyle().FramePadding.X * 2f + 20f;
|
||||
using (ImRaii.PushFont(UiBuilder.MonoFont))
|
||||
float x = headerStartPos.X + _200F_200C_200D_202A_206B_200F_206B_200D_200E_202E_202B_202C_206A_202A_206A_202D_200C_206C_202D_202C_200B_206D_202B_200B_202B_206B_206F_202B_200C_202E_206C_200E_206E_206E_202B_202E_206A_200E_206C_206C_202E().FramePadding.X * 2f + 20f;
|
||||
ImRaii.FontDisposable fontDisposable = _202D_206C_206A_200C_200C_206A_206A_206E_200B_202B_200D_202D_200D_200F_206A_200F_200E_206A_202C_200C_202D_202B_202D_202D_206E_206A_202B_206B_200C_206B_206B_206C_202C_206B_202E_202B_200C_206D_206E_206A_202E(_206D_206D_200B_206C_202B_202B_200F_200B_206E_200D_202C_206E_200F_206D_200F_202B_202E_202D_200F_202A_202A_206F_200E_206B_206C_202C_202C_200E_206A_202B_200F_200D_202C_202A_206C_200C_206A_200B_206D_200D_202E(), true);
|
||||
try
|
||||
{
|
||||
ImGui.SetCursorPos(new Vector2(x, headerStartPos.Y + verticalOffset));
|
||||
ImGui.TextColored(new Vector4(0.95f, 0.95f, 0.95f, 1f), versionText);
|
||||
_206A_206C_200B_206C_202D_200E_202B_206F_206F_206E_206C_200D_202A_206A_202E_206E_200E_202E_200D_200C_200B_200C_202D_202D_200D_202C_200C_200B_206F_200E_206F_202D_200B_206A_202D_206E_200F_202C_206D_202E_202E(new Vector2(x, headerStartPos.Y + verticalOffset));
|
||||
_200D_202D_200F_202E_200E_202E_206C_202C_206B_200B_200E_202A_206C_206E_200F_202D_206E_206F_206B_200E_200F_206B_200C_202D_200E_206A_202C_202E_206F_200E_206E_202D_206B_200C_206A_206A_206C_200F_206A_200E_202E(ref UiThemeUtils.PrimaryTextColor, (ImU8String)versionText);
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((fontDisposable == null) ? (-657911003) : (-657911004));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -657911003;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = -657911004;
|
||||
break;
|
||||
case 1:
|
||||
_206C_200C_202D_200C_202C_206E_206F_206D_200D_202B_206B_200F_206D_202A_206F_200F_200E_206C_200D_206C_206C_200E_200B_200F_206C_206A_202B_200C_202B_202B_202E_202E_200F_202A_200E_206B_206E_200F_200F_206D_202E((IDisposable)fontDisposable);
|
||||
num = -657911003;
|
||||
break;
|
||||
case 0:
|
||||
goto end_IL_0076;
|
||||
}
|
||||
continue;
|
||||
end_IL_0076:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawNewBadge(bool isNew, Vector2 headerStartScreenPos, float availableWidth)
|
||||
{
|
||||
if (isNew)
|
||||
int num = (isNew ? 1708716040 : 1708716041);
|
||||
while (true)
|
||||
{
|
||||
float num = 2.5f;
|
||||
float w = (MathF.Sin(_animationTime * num) + 1f) * 0.5f * 0.15f;
|
||||
float frameHeight = ImGui.GetFrameHeight();
|
||||
float frameRounding = ImGui.GetStyle().FrameRounding;
|
||||
ImGui.GetWindowDrawList().AddRectFilled(headerStartScreenPos, headerStartScreenPos + new Vector2(availableWidth, frameHeight), ImGui.ColorConvertFloat4ToU32(new Vector4(0.5f, 1f, 0.6f, w)), frameRounding);
|
||||
int num2 = num;
|
||||
int num3 = 1708716040;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
goto IL_004a;
|
||||
case 1:
|
||||
return;
|
||||
case 0:
|
||||
{
|
||||
float num5 = 2.5f;
|
||||
float w = (_200E_202E_206E_202D_200F_206C_202B_202B_202A_200B_202B_202C_202C_200C_200B_206B_200E_200B_200B_200B_200F_200C_206C_202D_206A_206E_200F_206C_200B_202E_206B_206F_202E_202B_202A_200E_202B_206F_206F_202E_202E(_animationTime * num5) + 1f) * 0.5f * 0.15f;
|
||||
float y = _206C_200C_206D_206B_200F_202A_202A_202A_202E_206E_206F_202D_202C_206D_200D_206E_200B_206B_202C_206D_200B_206F_206B_206C_202E_200E_206B_202D_202A_200E_206F_200C_202C_200D_200D_202C_202C_200B_206F_202A_202E();
|
||||
float frameRounding = _200F_200C_200D_202A_206B_200F_206B_200D_200E_202E_202B_202C_206A_202A_206A_202D_200C_206C_202D_202C_200B_206D_202B_200B_202B_206B_206F_202B_200C_202E_206C_200E_206E_206E_202B_202E_206A_200E_206C_206C_202E().FrameRounding;
|
||||
_206D_206D_206A_206F_202C_206C_206A_202D_206C_200F_206B_206B_200D_206E_206B_206A_200B_206C_206E_202B_202B_206B_202B_206E_202E_200C_200E_206B_206F_202E_200B_202B_206B_206F_206C_202E_206E_202D_200B_206B_202E().AddRectFilled(headerStartScreenPos, headerStartScreenPos + new Vector2(availableWidth, y), _206F_206E_206D_202B_200C_206E_206E_200E_206C_206B_206C_200E_206E_202B_202C_202E_206E_200D_202D_202D_202C_200E_200F_200B_202B_206B_206C_202A_202E_202C_206F_200C_206E_206E_200B_206C_200B_206B_200C_200D_202E(new Vector4(0.5f, 1f, 0.6f, w)), frameRounding);
|
||||
return;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
IL_004a:
|
||||
num = 1708716041;
|
||||
}
|
||||
}
|
||||
|
||||
private static void DrawDateWithIcon(string dateText, Vector2 dateSize, float scaledIconFontSize, Vector2 headerStartScreenPos, Vector2 headerStartPos, float availableWidth, float verticalOffset, float defaultFontSize)
|
||||
{
|
||||
string text = FontAwesomeIcon.Calendar.ToIconString();
|
||||
string text = _206D_200D_206B_202B_202E_202A_202D_206F_206C_206E_200C_200E_202E_200F_202E_206C_202A_206D_200F_202E_206D_202A_206D_202E_202E_200D_202D_200D_206D_202D_202A_202B_200E_206D_200E_206A_202B_202D_202E_206F_202E(FontAwesomeIcon.Calendar);
|
||||
ImRaii.FontDisposable fontDisposable = _202D_206C_206A_200C_200C_206A_206A_206E_200B_202B_200D_202D_200D_200F_206A_200F_200E_206A_202C_200C_202D_202B_202D_202D_206E_206A_202B_206B_200C_206B_206B_206C_202C_206B_202E_202B_200C_206D_206E_206A_202E(_200B_206F_206C_200B_202B_200D_200B_206D_202B_200F_202E_200E_202B_202E_200F_206D_202A_202C_206E_200C_206B_206C_202D_202D_200F_200F_206A_206A_200C_202B_202D_200D_200C_200E_206C_206B_206E_202C_202A_202E(), true);
|
||||
Vector2 vector;
|
||||
using (ImRaii.PushFont(UiBuilder.IconFont))
|
||||
try
|
||||
{
|
||||
vector = ImGui.CalcTextSize(text);
|
||||
vector = _206A_200D_200D_206B_206B_200C_200E_202D_206C_206B_200D_202E_206F_202C_206D_200F_202C_202C_202A_206E_200B_206D_202D_202E_200B_200C_202A_200D_206E_206A_200E_206C_202A_202E_200D_202E_202C_206A_200D_206A_202E((ImU8String)text, false, -1f);
|
||||
}
|
||||
float num = vector.X * (scaledIconFontSize / defaultFontSize);
|
||||
float num2 = num + 4f + dateSize.X;
|
||||
float num3 = availableWidth - num2 - 12f;
|
||||
Vector2 pos = headerStartScreenPos + new Vector2(num3, verticalOffset);
|
||||
ImGui.GetWindowDrawList().AddText(UiBuilder.IconFont, scaledIconFontSize, pos, ImGui.ColorConvertFloat4ToU32(new Vector4(0.65f, 0.6f, 0.8f, 1f)), text);
|
||||
ImGui.SetCursorPos(new Vector2(num3 + num + 4f, headerStartPos.Y + verticalOffset));
|
||||
ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), dateText);
|
||||
finally
|
||||
{
|
||||
int num = ((fontDisposable == null) ? (-485668874) : (-485668873));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -485668874;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
goto end_IL_004e;
|
||||
case 1:
|
||||
_206C_200C_202D_200C_202C_206E_206F_206D_200D_202B_206B_200F_206D_202A_206F_200F_200E_206C_200D_206C_206C_200E_200B_200F_206C_206A_202B_200C_202B_202B_202E_202E_200F_202A_200E_206B_206E_200F_200F_206D_202E((IDisposable)fontDisposable);
|
||||
num = -485668874;
|
||||
break;
|
||||
case 2:
|
||||
num = -485668873;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_004e:
|
||||
break;
|
||||
}
|
||||
}
|
||||
float num7 = vector.X * (scaledIconFontSize / defaultFontSize);
|
||||
float num8 = num7 + 4f + dateSize.X;
|
||||
float num9 = availableWidth - num8 - 12f;
|
||||
Vector2 pos = headerStartScreenPos + new Vector2(num9, verticalOffset);
|
||||
_206D_206D_206A_206F_202C_206C_206A_202D_206C_200F_206B_206B_200D_206E_206B_206A_200B_206C_206E_202B_202B_206B_202B_206E_202E_200C_200E_206B_206F_202E_200B_202B_206B_206F_206C_202E_206E_202D_200B_206B_202E().AddText(_200B_206F_206C_200B_202B_200D_200B_206D_202B_200F_202E_200E_202B_202E_200F_206D_202A_202C_206E_200C_206B_206C_202D_202D_200F_200F_206A_206A_200C_202B_202D_200D_200C_200E_206C_206B_206E_202C_202A_202E(), scaledIconFontSize, pos, _206F_206E_206D_202B_200C_206E_206E_200E_206C_206B_206C_200E_206E_202B_202C_202E_206E_200D_202D_202D_202C_200E_200F_200B_202B_206B_206C_202A_202E_202C_206F_200C_206E_206E_200B_206C_200B_206B_200C_200D_202E(UiThemeUtils.DimTextColor), text);
|
||||
_206A_206C_200B_206C_202D_200E_202B_206F_206F_206E_206C_200D_202A_206A_202E_206E_200E_202E_200D_200C_200B_200C_202D_202D_200D_202C_200C_200B_206F_200E_206F_202D_200B_206A_202D_206E_200F_202C_206D_202E_202E(new Vector2(num9 + num7 + 4f, headerStartPos.Y + verticalOffset));
|
||||
_200D_202D_200F_202E_200E_202E_206C_202C_206B_200B_200E_202A_206C_206E_200F_202D_206E_206F_206B_200E_200F_206B_200C_202D_200E_206A_202C_202E_206F_200E_206E_202D_206B_200C_206A_206A_206C_200F_206A_200E_202E(ref UiThemeUtils.PrimaryTextColor, (ImU8String)dateText);
|
||||
}
|
||||
|
||||
private static void DrawChangelogContent(ChangelogEntry changelog)
|
||||
{
|
||||
Vector2 cursorPos = ImGui.GetCursorPos();
|
||||
Vector2 vector = new Vector2(16f, 8f);
|
||||
float x = ImGui.GetContentRegionAvail().X;
|
||||
IOrderedEnumerable<IGrouping<EChangeCategory, ChangeEntry>> orderedEnumerable = from changeEntry in changelog.Changes
|
||||
group changeEntry by changeEntry.Category into g
|
||||
IOrderedEnumerable<IGrouping<EChangeCategory, ChangeEntry>> orderedEnumerable = from x in changelog.Changes
|
||||
group x by x.Category into g
|
||||
orderby g.Key
|
||||
select g;
|
||||
ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList();
|
||||
windowDrawList.ChannelsSplit(2);
|
||||
windowDrawList.ChannelsSetCurrent(1);
|
||||
float baseX = cursorPos.X + vector.X;
|
||||
ImGui.SetCursorPos(cursorPos + new Vector2(vector.X, vector.Y));
|
||||
(Vector2 ContentStartPos, float AvailableWidth, ImDrawListPtr DrawList) tuple = UiThemeUtils.BeginCard();
|
||||
Vector2 item = tuple.ContentStartPos;
|
||||
float item2 = tuple.AvailableWidth;
|
||||
ImDrawListPtr item3 = tuple.DrawList;
|
||||
float baseX = _206C_202E_200E_202E_206A_206A_202C_206C_202A_200F_202E_200E_202C_206F_200D_206C_200E_200F_202E_206F_206A_202D_206D_202B_206A_202E_202D_206C_200E_206E_206B_206D_200F_200C_200C_206B_206F_200C_200F_206D_202E();
|
||||
bool flag = true;
|
||||
foreach (IGrouping<EChangeCategory, ChangeEntry> item in orderedEnumerable)
|
||||
IEnumerator<IGrouping<EChangeCategory, ChangeEntry>> enumerator = orderedEnumerable.GetEnumerator();
|
||||
try
|
||||
{
|
||||
if (!flag)
|
||||
int num = -775563470;
|
||||
IGrouping<EChangeCategory, ChangeEntry> current = default(IGrouping<EChangeCategory, ChangeEntry>);
|
||||
while (true)
|
||||
{
|
||||
ImGui.Spacing();
|
||||
int num2 = num;
|
||||
int num3 = -775563465;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = -775563470;
|
||||
break;
|
||||
case 5:
|
||||
num = (_202C_206C_200E_202E_202B_202A_206B_202D_206D_200E_206C_200F_202A_202D_202C_206E_200D_206E_206C_206C_202B_206D_206D_206B_206E_206E_206E_206A_202D_202B_206C_200C_206C_206A_200C_202B_200C_206D_206E_200F_202E((IEnumerator)enumerator) ? (-775563467) : (-775563468));
|
||||
break;
|
||||
case 4:
|
||||
_202B_206B_202A_206B_202C_200C_200F_200D_200F_206F_202C_200D_200B_202B_202E_206D_206D_206A_206F_202D_206F_200E_206F_200F_206F_206A_202C_202A_206B_202D_206E_206E_202D_206C_200B_206E_202E_206D_200C_206E_202E();
|
||||
num = -775563466;
|
||||
break;
|
||||
case 2:
|
||||
current = enumerator.Current;
|
||||
num = (flag ? (-775563466) : (-775563469));
|
||||
break;
|
||||
case 1:
|
||||
ChangelogCategoryComponent.DrawCategoryGroup(current.Key, current.ToList(), baseX);
|
||||
flag = false;
|
||||
num = -775563470;
|
||||
break;
|
||||
case 3:
|
||||
goto end_IL_0089;
|
||||
}
|
||||
continue;
|
||||
end_IL_0089:
|
||||
break;
|
||||
}
|
||||
ChangelogCategoryComponent.DrawCategoryGroup(item.Key, item.ToList(), baseX);
|
||||
flag = false;
|
||||
}
|
||||
Vector2 cursorPos2 = ImGui.GetCursorPos();
|
||||
windowDrawList.ChannelsSetCurrent(0);
|
||||
ImGui.SetCursorPos(cursorPos);
|
||||
Vector2 cursorScreenPos = ImGui.GetCursorScreenPos();
|
||||
ImGui.SetCursorPos(cursorPos2 + new Vector2(0f, vector.Y));
|
||||
Vector2 cursorScreenPos2 = ImGui.GetCursorScreenPos();
|
||||
windowDrawList.AddRectFilled(cursorScreenPos, new Vector2(cursorScreenPos.X + x, cursorScreenPos2.Y), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.5f)), 4f);
|
||||
windowDrawList.AddRect(cursorScreenPos, new Vector2(cursorScreenPos.X + x, cursorScreenPos2.Y), ImGui.ColorConvertFloat4ToU32(new Vector4(0.55f, 0.45f, 0.75f, 0.15f)), 4f, ImDrawFlags.None, 1f);
|
||||
windowDrawList.ChannelsMerge();
|
||||
ImGui.SetCursorPos(new Vector2(cursorPos.X, cursorPos2.Y + vector.Y + 2f));
|
||||
finally
|
||||
{
|
||||
int num = ((enumerator == null) ? 420575280 : 420575281);
|
||||
while (true)
|
||||
{
|
||||
int num7 = num;
|
||||
int num3 = 420575280;
|
||||
int num4 = num7;
|
||||
int num8 = num4 + num3;
|
||||
int num9 = num4 & num3;
|
||||
switch (num8 - (num9 + num9))
|
||||
{
|
||||
case 0:
|
||||
goto end_IL_0173;
|
||||
case 1:
|
||||
_206C_200C_202D_200C_202C_206E_206F_206D_200D_202B_206B_200F_206D_202A_206F_200F_200E_206C_200D_206C_206C_200E_200B_200F_206C_206A_202B_200C_202B_202B_202E_202E_200F_202A_200E_206B_206E_200F_200F_206D_202E((IDisposable)enumerator);
|
||||
num = 420575280;
|
||||
break;
|
||||
case 2:
|
||||
num = 420575281;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_0173:
|
||||
break;
|
||||
}
|
||||
}
|
||||
UiThemeUtils.EndCard(item, item2, item3);
|
||||
}
|
||||
|
||||
static ImDrawListPtr _206D_206D_206A_206F_202C_206C_206A_202D_206C_200F_206B_206B_200D_206E_206B_206A_200B_206C_206E_202B_202B_206B_202B_206E_202E_200C_200E_206B_206F_202E_200B_202B_206B_206F_206C_202E_206E_202D_200B_206B_202E()
|
||||
{
|
||||
return ImGui.GetWindowDrawList();
|
||||
}
|
||||
|
||||
static CultureInfo _202A_206F_206F_206A_200F_202E_200B_206C_202A_206F_202B_200D_206C_202A_206E_202C_206F_202C_200B_202E_206F_202E_206F_200B_206F_200C_206B_206A_202D_202D_202E_206A_200C_206F_200B_206E_202C_200B_206B_202A_202E()
|
||||
{
|
||||
return CultureInfo.InvariantCulture;
|
||||
}
|
||||
|
||||
static void _202A_206A_206F_202E_202C_206D_206E_200E_206B_202D_206D_202D_202E_202E_200C_202B_206F_200F_202A_200B_202D_206A_206F_200F_200C_202C_200E_202D_202A_200C_206D_206C_200C_200D_200F_200B_206F_202E_200F_200C_202E(bool P_0, ImGuiCond P_1)
|
||||
{
|
||||
ImGui.SetNextItemOpen(P_0, P_1);
|
||||
}
|
||||
|
||||
static string _200E_200B_202C_200B_206E_206F_206C_202B_206F_206B_202C_202C_202E_202D_202B_206D_202B_202A_200C_202E_206A_202A_206F_206B_206C_202B_200E_206D_200B_200C_206E_200C_206F_206A_202B_200F_206C_202B_206A_206D_202E(string P_0, string P_1)
|
||||
{
|
||||
return P_0 + P_1;
|
||||
}
|
||||
|
||||
static float _202E_206D_206F_202D_200E_206A_206B_206A_202C_200B_202B_200D_202B_200F_206B_206B_202A_200C_206E_202E_206A_202D_200C_202B_200F_206E_200D_202D_202A_200C_200F_206B_206B_200D_200D_206D_202B_206B_206A_206B_202E()
|
||||
{
|
||||
return ImGui.GetFontSize();
|
||||
}
|
||||
|
||||
static ImFontPtr _206D_206D_200B_206C_202B_202B_200F_200B_206E_200D_202C_206E_200F_206D_200F_202B_202E_202D_200F_202A_202A_206F_200E_206B_206C_202C_202C_200E_206A_202B_200F_200D_202C_202A_206C_200C_206A_200B_206D_200D_202E()
|
||||
{
|
||||
return UiBuilder.MonoFont;
|
||||
}
|
||||
|
||||
static ImRaii.FontDisposable _202D_206C_206A_200C_200C_206A_206A_206E_200B_202B_200D_202D_200D_200F_206A_200F_200E_206A_202C_200C_202D_202B_202D_202D_206E_206A_202B_206B_200C_206B_206B_206C_202C_206B_202E_202B_200C_206D_206E_206A_202E(ImFontPtr P_0, bool P_1)
|
||||
{
|
||||
return ImRaii.PushFont(P_0, P_1);
|
||||
}
|
||||
|
||||
static Vector2 _206A_200D_200D_206B_206B_200C_200E_202D_206C_206B_200D_202E_206F_202C_206D_200F_202C_202C_202A_206E_200B_206D_202D_202E_200B_200C_202A_200D_206E_206A_200E_206C_202A_202E_200D_202E_202C_206A_200D_206A_202E(ImU8String P_0, bool P_1, float P_2)
|
||||
{
|
||||
return ImGui.CalcTextSize(P_0, P_1, P_2);
|
||||
}
|
||||
|
||||
static void _206C_200C_202D_200C_202C_206E_206F_206D_200D_202B_206B_200F_206D_202A_206F_200F_200E_206C_200D_206C_206C_200E_200B_200F_206C_206A_202B_200C_202B_202B_202E_202E_200F_202A_200E_206B_206E_200F_200F_206D_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
|
||||
static Vector2 _206E_206C_202A_200C_200E_202E_202E_206C_200E_206A_200F_206E_202C_206B_200D_202C_200B_202D_200F_202E_206A_200D_202C_206F_206D_206C_200F_206A_202D_206F_202D_202B_206B_206B_202D_206E_206D_206F_206D_202A_202E()
|
||||
{
|
||||
return ImGui.GetContentRegionAvail();
|
||||
}
|
||||
|
||||
static Vector2 _206D_202B_202D_206A_206F_206C_206A_202D_206E_206C_200F_206B_206F_202B_206B_206B_200F_202B_206D_200D_200D_206F_206C_206F_202B_202B_202C_202B_200F_200E_206F_202A_206E_200D_206D_206D_206E_206D_202A_200C_202E()
|
||||
{
|
||||
return ImGui.GetCursorPos();
|
||||
}
|
||||
|
||||
static Vector2 _206C_202E_206D_202B_206B_200E_206B_202B_200B_206F_206F_202C_200E_200D_200B_206B_206A_202D_206C_206F_200B_202B_206C_202B_202A_206B_202A_206D_206D_206A_202A_206C_200E_206A_206D_200B_200D_206B_206B_202E_202E()
|
||||
{
|
||||
return ImGui.GetCursorScreenPos();
|
||||
}
|
||||
|
||||
static bool _200F_202C_206F_200F_206A_200F_202C_202C_206C_202B_200D_202D_206B_202B_200B_206F_200D_206E_200F_202E_202C_206F_200F_200B_200B_200D_206B_206E_206C_200C_206C_202C_202E_200E_200B_206A_202B_206C_202E_200D_202E(ImU8String P_0, ImGuiTreeNodeFlags P_1)
|
||||
{
|
||||
return ImGui.CollapsingHeader(P_0, P_1);
|
||||
}
|
||||
|
||||
static void _206A_206C_200B_206C_202D_200E_202B_206F_206F_206E_206C_200D_202A_206A_202E_206E_200E_202E_200D_200C_200B_200C_202D_202D_200D_202C_200C_200B_206F_200E_206F_202D_200B_206A_202D_206E_200F_202C_206D_202E_202E(Vector2 P_0)
|
||||
{
|
||||
ImGui.SetCursorPos(P_0);
|
||||
}
|
||||
|
||||
static ImGuiStylePtr _200F_200C_200D_202A_206B_200F_206B_200D_200E_202E_202B_202C_206A_202A_206A_202D_200C_206C_202D_202C_200B_206D_202B_200B_202B_206B_206F_202B_200C_202E_206C_200E_206E_206E_202B_202E_206A_200E_206C_206C_202E()
|
||||
{
|
||||
return ImGui.GetStyle();
|
||||
}
|
||||
|
||||
static void _200D_202D_200F_202E_200E_202E_206C_202C_206B_200B_200E_202A_206C_206E_200F_202D_206E_206F_206B_200E_200F_206B_200C_202D_200E_206A_202C_202E_206F_200E_206E_202D_206B_200C_206A_206A_206C_200F_206A_200E_202E(ref Vector4 P_0, ImU8String P_1)
|
||||
{
|
||||
ImGui.TextColored(in P_0, P_1);
|
||||
}
|
||||
|
||||
static float _200E_202E_206E_202D_200F_206C_202B_202B_202A_200B_202B_202C_202C_200C_200B_206B_200E_200B_200B_200B_200F_200C_206C_202D_206A_206E_200F_206C_200B_202E_206B_206F_202E_202B_202A_200E_202B_206F_206F_202E_202E(float P_0)
|
||||
{
|
||||
return MathF.Sin(P_0);
|
||||
}
|
||||
|
||||
static float _206C_200C_206D_206B_200F_202A_202A_202A_202E_206E_206F_202D_202C_206D_200D_206E_200B_206B_202C_206D_200B_206F_206B_206C_202E_200E_206B_202D_202A_200E_206F_200C_202C_200D_200D_202C_202C_200B_206F_202A_202E()
|
||||
{
|
||||
return ImGui.GetFrameHeight();
|
||||
}
|
||||
|
||||
static uint _206F_206E_206D_202B_200C_206E_206E_200E_206C_206B_206C_200E_206E_202B_202C_202E_206E_200D_202D_202D_202C_200E_200F_200B_202B_206B_206C_202A_202E_202C_206F_200C_206E_206E_200B_206C_200B_206B_200C_200D_202E(Vector4 P_0)
|
||||
{
|
||||
return ImGui.ColorConvertFloat4ToU32(P_0);
|
||||
}
|
||||
|
||||
static string _206D_200D_206B_202B_202E_202A_202D_206F_206C_206E_200C_200E_202E_200F_202E_206C_202A_206D_200F_202E_206D_202A_206D_202E_202E_200D_202D_200D_206D_202D_202A_202B_200E_206D_200E_206A_202B_202D_202E_206F_202E(FontAwesomeIcon P_0)
|
||||
{
|
||||
return P_0.ToIconString();
|
||||
}
|
||||
|
||||
static ImFontPtr _200B_206F_206C_200B_202B_200D_200B_206D_202B_200F_202E_200E_202B_202E_200F_206D_202A_202C_206E_200C_206B_206C_202D_202D_200F_200F_206A_206A_200C_202B_202D_200D_200C_200E_206C_206B_206E_202C_202A_202E()
|
||||
{
|
||||
return UiBuilder.IconFont;
|
||||
}
|
||||
|
||||
static float _206C_202E_200E_202E_206A_206A_202C_206C_202A_200F_202E_200E_202C_206F_200D_206C_200E_200F_202E_206F_206A_202D_206D_202B_206A_202E_202D_206C_200E_206E_206B_206D_200F_200C_200C_206B_206F_200C_200F_206D_202E()
|
||||
{
|
||||
return ImGui.GetCursorPosX();
|
||||
}
|
||||
|
||||
static void _202B_206B_202A_206B_202C_200C_200F_200D_200F_206F_202C_200D_200B_202B_202E_206D_206D_206A_206F_202D_206F_200E_206F_200F_206F_206A_202C_202A_206B_202D_206E_206E_202D_206C_200B_206E_202E_206D_200C_206E_202E()
|
||||
{
|
||||
ImGui.Spacing();
|
||||
}
|
||||
|
||||
static bool _202C_206C_200E_202E_202B_202A_206B_202D_206D_200E_206C_200F_202A_202D_202C_206E_200D_206E_206C_206C_202B_206D_206D_206B_206E_206E_206E_206A_202D_202B_206C_200C_206C_206A_200C_202B_200C_206D_206E_200F_202E(IEnumerator P_0)
|
||||
{
|
||||
return P_0.MoveNext();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,36 +1,281 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Components;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
|
||||
namespace Questionable.Windows.ChangelogComponents;
|
||||
|
||||
internal sealed class ChangelogFooterComponent
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public static void Draw(Action onConfirm)
|
||||
{
|
||||
ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList();
|
||||
Vector2 cursorScreenPos = ImGui.GetCursorScreenPos();
|
||||
float x = ImGui.GetContentRegionAvail().X;
|
||||
windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, 2f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.4f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 1f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 1f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.4f)));
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 8f);
|
||||
float num = 120f;
|
||||
float num2 = (ImGui.GetContentRegionAvail().X - num) * 0.5f;
|
||||
ImGui.SetCursorPosX(ImGui.GetCursorPosX() + num2);
|
||||
using (ImRaii.PushColor(ImGuiCol.Button, new Vector4(0.55f, 0.45f, 0.75f, 0.6f)))
|
||||
ImDrawListPtr imDrawListPtr = _206A_200D_202D_206D_206F_206E_202B_206F_200F_206C_200D_200C_206D_202D_206B_206B_202A_202C_202C_206C_202E_206A_206C_202D_200D_202D_200F_202A_206C_200F_206C_202A_206F_206C_206E_200F_200E_202D_202A_202C_202E();
|
||||
Vector2 vector = _206B_206B_200B_206B_206C_206D_202D_200D_200B_202D_206A_202A_202E_206C_206C_202C_200D_206F_202E_202D_202C_200C_206C_200C_202D_206B_206C_206D_200F_206C_206C_202D_200E_200C_202C_206E_202D_202E_200B_202B_202E();
|
||||
float x = _202C_200C_202E_202D_206A_202C_200F_202C_206E_200E_200C_200F_202E_200C_206D_202E_200E_206F_200F_202D_202C_202C_200C_206F_200E_202A_200F_200B_200D_200F_202E_200C_200B_206C_202C_202B_202C_200B_202C_202E_202E().X;
|
||||
Vector2 pMax = vector + new Vector2(x, 2f);
|
||||
Vector4 accentColor = UiThemeUtils.AccentColor;
|
||||
accentColor.W = 0.4f;
|
||||
uint colUprLeft = _202B_206B_200C_206E_202B_202C_202B_200F_200D_206C_206A_206B_206C_206D_206D_202C_202B_206C_202B_206E_206A_206E_202B_206F_206C_202D_206C_200D_200B_206F_206F_202B_206C_202A_202A_206B_200B_202A_206E_206C_202E(accentColor);
|
||||
uint colUprRight = _202B_206B_200C_206E_202B_202C_202B_200F_200D_206C_206A_206B_206C_206D_206D_202C_202B_206C_202B_206E_206A_206E_202B_206F_206C_202D_206C_200D_200B_206F_206F_202B_206C_202A_202A_206B_200B_202A_206E_206C_202E(UiThemeUtils.AccentColor);
|
||||
uint colBotRight = _202B_206B_200C_206E_202B_202C_202B_200F_200D_206C_206A_206B_206C_206D_206D_202C_202B_206C_202B_206E_206A_206E_202B_206F_206C_202D_206C_200D_200B_206F_206F_202B_206C_202A_202A_206B_200B_202A_206E_206C_202E(UiThemeUtils.AccentColor);
|
||||
accentColor = UiThemeUtils.AccentColor;
|
||||
accentColor.W = 0.4f;
|
||||
imDrawListPtr.AddRectFilledMultiColor(vector, pMax, colUprLeft, colUprRight, colBotRight, _202B_206B_200C_206E_202B_202C_202B_200F_200D_206C_206A_206B_206C_206D_206D_202C_202B_206C_202B_206E_206A_206E_202B_206F_206C_202D_206C_200D_200B_206F_206F_202B_206C_202A_202A_206B_200B_202A_206E_206C_202E(accentColor));
|
||||
_200C_200C_206F_200C_206D_202A_206B_206B_202C_206D_200C_200F_206B_200B_202A_206C_206E_200D_200B_200B_202C_200B_200D_206B_200C_202A_200F_206A_202E_206B_206D_202A_200F_202B_200D_206E_200E_202A_200B_202B_202E(_206D_202D_200F_200E_200C_202A_200C_206C_200D_200E_202E_202B_200F_202C_200F_206C_202C_206C_200B_206C_206C_200E_206A_206E_206E_202E_202C_206E_200F_206E_200C_200F_200D_206F_200C_202C_206E_202E_206A_200C_202E() + 8f);
|
||||
ImRaii.FontDisposable fontDisposable = _202E_202D_206B_206A_206B_200C_202B_202D_200D_202C_206D_206E_202E_200F_200F_200F_202B_206A_202B_200C_206C_202D_200B_202C_202D_202B_206C_200F_206E_206A_200C_202A_200F_200B_202B_200D_200B_202C_206D_206A_202E(_206D_202E_202A_206E_200D_206E_202E_202A_206A_202D_206C_206E_202B_202B_206A_206E_202C_202E_206C_202A_202A_202A_202B_206E_200D_202C_206D_206C_200D_206C_200E_200E_206D_206D_200F_202D_206C_206E_202D_200C_202E(), true);
|
||||
float x2;
|
||||
try
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.ButtonHovered, new Vector4(0.65f, 0.55f, 0.85f, 0.8f)))
|
||||
x2 = _206F_202D_200B_202A_202D_206A_202D_202E_200E_202B_202E_206B_200C_202E_206B_202D_202E_206D_200B_206D_206A_200C_200F_202C_202C_202E_200E_200E_200E_200D_206E_202C_206E_202A_206D_206A_202B_200D_200F_202C_202E((ImU8String)_206F_200B_200D_202A_202C_200E_206A_200F_206C_206F_202D_206F_202C_206B_206F_206A_206B_200B_206C_206F_206E_202D_206D_200D_206E_202C_200E_202D_200B_206F_202D_202E_206F_200B_206B_202B_206E_202E_200B_200E_202E(FontAwesomeIcon.CheckCircle), false, -1f).X;
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((fontDisposable == null) ? (-552404026) : (-552404025));
|
||||
while (true)
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.ButtonActive, new Vector4(0.75f, 0.55f, 0.95f, 1f)))
|
||||
int num2 = num;
|
||||
int num3 = -552404026;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.CheckCircle, "Got It!"))
|
||||
case 0:
|
||||
goto end_IL_00d9;
|
||||
case 1:
|
||||
_202D_206D_202A_200B_200D_202A_202D_202C_200F_202D_202D_200B_200B_202E_200B_200C_200C_200D_206A_202B_206D_202E_202B_202D_200C_202A_206F_202B_200E_200D_202E_206B_206A_200F_200E_206D_200E_206B_200D_206C_202E((IDisposable)fontDisposable);
|
||||
num = -552404026;
|
||||
break;
|
||||
case 2:
|
||||
num = -552404025;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_00d9:
|
||||
break;
|
||||
}
|
||||
}
|
||||
float num7 = x2 + 6f + _206F_202D_200B_202A_202D_206A_202D_202E_200E_202B_202E_206B_200C_202E_206B_202D_202E_206D_200B_206D_206A_200C_200F_202C_202C_202E_200E_200E_200E_200D_206E_202C_206E_202A_206D_206A_202B_200D_200F_202C_202E((ImU8String)global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1882414385), false, -1f).X + _206C_206B_200B_206E_206C_200E_200E_206E_200D_202C_200D_202D_202D_202D_206B_200C_202B_200B_202B_200C_206F_206F_200F_202B_202B_200B_200C_206A_202E_206B_202A_200E_202A_200B_206D_200B_200F_206C_200D_206D_202E().FramePadding.X * 2f;
|
||||
float num8 = (_202C_200C_202E_202D_206A_202C_200F_202C_206E_200E_200C_200F_202E_200C_206D_202E_200E_206F_200F_202D_202C_202C_200C_206F_200E_202A_200F_200B_200D_200F_202E_200C_200B_206C_202C_202B_202C_200B_202C_202E_202E().X - num7) * 0.5f;
|
||||
_206C_200C_206D_200D_200F_202C_202E_202C_202A_200F_202B_202C_200D_206F_206A_206C_206B_200E_200C_202D_202C_202D_200B_206B_202A_200C_200D_200F_206E_200F_202A_200B_202B_202E_202C_202B_202B_200D_206F_200C_202E(_202A_206C_206F_200E_206B_206B_202A_200D_202A_200E_202B_206A_200E_206D_200F_200D_202E_206E_202C_206D_206D_202B_206D_200C_202B_200C_206A_202B_200E_202D_206A_202E_206B_202E_200D_200B_206C_206C_202A_202C_202E() + num8);
|
||||
ImRaii.ColorDisposable colorDisposable = _206D_200E_202C_206F_206D_200B_200F_200D_206D_202A_202B_206D_200E_206A_206A_206A_206D_206E_202C_202E_200E_202B_206B_200E_200B_200E_202D_206F_206B_206E_202D_206F_202E_202D_200C_200E_202B_200C_206E_202E_202E(ImGuiCol.Button, UiThemeUtils.PlayButtonColor, true);
|
||||
try
|
||||
{
|
||||
ImRaii.ColorDisposable colorDisposable2 = _206D_200E_202C_206F_206D_200B_200F_200D_206D_202A_202B_206D_200E_206A_206A_206A_206D_206E_202C_202E_200E_202B_206B_200E_200B_200E_202D_206F_206B_206E_202D_206F_202E_202D_200C_200E_202B_200C_206E_202E_202E(ImGuiCol.ButtonHovered, UiThemeUtils.PlayButtonHover, true);
|
||||
try
|
||||
{
|
||||
ImRaii.ColorDisposable colorDisposable3 = _206D_200E_202C_206F_206D_200B_200F_200D_206D_202A_202B_206D_200E_206A_206A_206A_206D_206E_202C_202E_200E_202B_206B_200E_200B_200E_202D_206F_206B_206E_202D_206F_202E_202D_200C_200E_202B_200C_206E_202E_202E(ImGuiCol.ButtonActive, UiThemeUtils.PlayButtonActive, true);
|
||||
try
|
||||
{
|
||||
ImRaii.ColorDisposable colorDisposable4 = _206D_200E_202C_206F_206D_200B_200F_200D_206D_202A_202B_206D_200E_206A_206A_206A_206D_206E_202C_202E_200E_202B_206B_200E_200B_200E_202D_206F_206B_206E_202D_206F_202E_202D_200C_200E_202B_200C_206E_202E_202E(ImGuiCol.Text, UiThemeUtils.PlayButtonText, true);
|
||||
try
|
||||
{
|
||||
onConfirm();
|
||||
int num = ((!UiThemeUtils.IconTextButton(FontAwesomeIcon.CheckCircle, 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>(1608333301), num7)) ? (-1623045989) : (-1623045990));
|
||||
while (true)
|
||||
{
|
||||
int num9 = num;
|
||||
int num3 = -1623045989;
|
||||
int num4 = num9;
|
||||
int num10 = num4 + num3;
|
||||
int num11 = num4 & num3;
|
||||
switch (num10 - (num11 + num11))
|
||||
{
|
||||
case 2:
|
||||
num = -1623045990;
|
||||
break;
|
||||
case 1:
|
||||
onConfirm();
|
||||
num = -1623045989;
|
||||
break;
|
||||
case 0:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((colorDisposable4 == null) ? 1005398311 : 1005398308);
|
||||
while (true)
|
||||
{
|
||||
int num12 = num;
|
||||
int num3 = 1005398309;
|
||||
int num4 = num12;
|
||||
int num13 = num4 + num3;
|
||||
int num14 = num4 & num3;
|
||||
switch (num13 - (num14 + num14))
|
||||
{
|
||||
case 0:
|
||||
num = 1005398308;
|
||||
break;
|
||||
case 1:
|
||||
_202D_206D_202A_200B_200D_202A_202D_202C_200F_202D_202D_200B_200B_202E_200B_200C_200C_200D_206A_202B_206D_202E_202B_202D_200C_202A_206F_202B_200E_200D_202E_206B_206A_200F_200E_206D_200E_206B_200D_206C_202E((IDisposable)colorDisposable4);
|
||||
num = 1005398311;
|
||||
break;
|
||||
case 2:
|
||||
goto end_IL_026a;
|
||||
}
|
||||
continue;
|
||||
end_IL_026a:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((colorDisposable3 == null) ? (-259716919) : (-259716918));
|
||||
while (true)
|
||||
{
|
||||
int num15 = num;
|
||||
int num3 = -259716917;
|
||||
int num4 = num15;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = -259716918;
|
||||
break;
|
||||
case 2:
|
||||
goto end_IL_02d7;
|
||||
case 1:
|
||||
_202D_206D_202A_200B_200D_202A_202D_202C_200F_202D_202D_200B_200B_202E_200B_200C_200C_200D_206A_202B_206D_202E_202B_202D_200C_202A_206F_202B_200E_200D_202E_206B_206A_200F_200E_206D_200E_206B_200D_206C_202E((IDisposable)colorDisposable3);
|
||||
num = -259716919;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_02d7:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((colorDisposable2 == null) ? (-1298176791) : (-1298176792));
|
||||
while (true)
|
||||
{
|
||||
int num16 = num;
|
||||
int num3 = -1298176791;
|
||||
int num4 = num16;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
goto end_IL_0342;
|
||||
case 1:
|
||||
_202D_206D_202A_200B_200D_202A_202D_202C_200F_202D_202D_200B_200B_202E_200B_200C_200C_200D_206A_202B_206D_202E_202B_202D_200C_202A_206F_202B_200E_200D_202E_206B_206A_200F_200E_206D_200E_206B_200D_206C_202E((IDisposable)colorDisposable2);
|
||||
num = -1298176791;
|
||||
break;
|
||||
case 2:
|
||||
num = -1298176792;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_0342:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((colorDisposable == null) ? (-313871180) : (-313871177));
|
||||
while (true)
|
||||
{
|
||||
int num17 = num;
|
||||
int num3 = -313871178;
|
||||
int num4 = num17;
|
||||
int num18 = num4 + num3;
|
||||
int num19 = num4 & num3;
|
||||
switch (num18 - (num19 + num19))
|
||||
{
|
||||
case 2:
|
||||
goto end_IL_03ad;
|
||||
case 1:
|
||||
_202D_206D_202A_200B_200D_202A_202D_202C_200F_202D_202D_200B_200B_202E_200B_200C_200C_200D_206A_202B_206D_202E_202B_202D_200C_202A_206F_202B_200E_200D_202E_206B_206A_200F_200E_206D_200E_206B_200D_206C_202E((IDisposable)colorDisposable);
|
||||
num = -313871180;
|
||||
break;
|
||||
case 0:
|
||||
num = -313871177;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
end_IL_03ad:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static ImDrawListPtr _206A_200D_202D_206D_206F_206E_202B_206F_200F_206C_200D_200C_206D_202D_206B_206B_202A_202C_202C_206C_202E_206A_206C_202D_200D_202D_200F_202A_206C_200F_206C_202A_206F_206C_206E_200F_200E_202D_202A_202C_202E()
|
||||
{
|
||||
return ImGui.GetWindowDrawList();
|
||||
}
|
||||
|
||||
static Vector2 _206B_206B_200B_206B_206C_206D_202D_200D_200B_202D_206A_202A_202E_206C_206C_202C_200D_206F_202E_202D_202C_200C_206C_200C_202D_206B_206C_206D_200F_206C_206C_202D_200E_200C_202C_206E_202D_202E_200B_202B_202E()
|
||||
{
|
||||
return ImGui.GetCursorScreenPos();
|
||||
}
|
||||
|
||||
static Vector2 _202C_200C_202E_202D_206A_202C_200F_202C_206E_200E_200C_200F_202E_200C_206D_202E_200E_206F_200F_202D_202C_202C_200C_206F_200E_202A_200F_200B_200D_200F_202E_200C_200B_206C_202C_202B_202C_200B_202C_202E_202E()
|
||||
{
|
||||
return ImGui.GetContentRegionAvail();
|
||||
}
|
||||
|
||||
static uint _202B_206B_200C_206E_202B_202C_202B_200F_200D_206C_206A_206B_206C_206D_206D_202C_202B_206C_202B_206E_206A_206E_202B_206F_206C_202D_206C_200D_200B_206F_206F_202B_206C_202A_202A_206B_200B_202A_206E_206C_202E(Vector4 P_0)
|
||||
{
|
||||
return ImGui.ColorConvertFloat4ToU32(P_0);
|
||||
}
|
||||
|
||||
static float _206D_202D_200F_200E_200C_202A_200C_206C_200D_200E_202E_202B_200F_202C_200F_206C_202C_206C_200B_206C_206C_200E_206A_206E_206E_202E_202C_206E_200F_206E_200C_200F_200D_206F_200C_202C_206E_202E_206A_200C_202E()
|
||||
{
|
||||
return ImGui.GetCursorPosY();
|
||||
}
|
||||
|
||||
static void _200C_200C_206F_200C_206D_202A_206B_206B_202C_206D_200C_200F_206B_200B_202A_206C_206E_200D_200B_200B_202C_200B_200D_206B_200C_202A_200F_206A_202E_206B_206D_202A_200F_202B_200D_206E_200E_202A_200B_202B_202E(float P_0)
|
||||
{
|
||||
ImGui.SetCursorPosY(P_0);
|
||||
}
|
||||
|
||||
static ImFontPtr _206D_202E_202A_206E_200D_206E_202E_202A_206A_202D_206C_206E_202B_202B_206A_206E_202C_202E_206C_202A_202A_202A_202B_206E_200D_202C_206D_206C_200D_206C_200E_200E_206D_206D_200F_202D_206C_206E_202D_200C_202E()
|
||||
{
|
||||
return UiBuilder.IconFont;
|
||||
}
|
||||
|
||||
static ImRaii.FontDisposable _202E_202D_206B_206A_206B_200C_202B_202D_200D_202C_206D_206E_202E_200F_200F_200F_202B_206A_202B_200C_206C_202D_200B_202C_202D_202B_206C_200F_206E_206A_200C_202A_200F_200B_202B_200D_200B_202C_206D_206A_202E(ImFontPtr P_0, bool P_1)
|
||||
{
|
||||
return ImRaii.PushFont(P_0, P_1);
|
||||
}
|
||||
|
||||
static string _206F_200B_200D_202A_202C_200E_206A_200F_206C_206F_202D_206F_202C_206B_206F_206A_206B_200B_206C_206F_206E_202D_206D_200D_206E_202C_200E_202D_200B_206F_202D_202E_206F_200B_206B_202B_206E_202E_200B_200E_202E(FontAwesomeIcon P_0)
|
||||
{
|
||||
return P_0.ToIconString();
|
||||
}
|
||||
|
||||
static Vector2 _206F_202D_200B_202A_202D_206A_202D_202E_200E_202B_202E_206B_200C_202E_206B_202D_202E_206D_200B_206D_206A_200C_200F_202C_202C_202E_200E_200E_200E_200D_206E_202C_206E_202A_206D_206A_202B_200D_200F_202C_202E(ImU8String P_0, bool P_1, float P_2)
|
||||
{
|
||||
return ImGui.CalcTextSize(P_0, P_1, P_2);
|
||||
}
|
||||
|
||||
static void _202D_206D_202A_200B_200D_202A_202D_202C_200F_202D_202D_200B_200B_202E_200B_200C_200C_200D_206A_202B_206D_202E_202B_202D_200C_202A_206F_202B_200E_200D_202E_206B_206A_200F_200E_206D_200E_206B_200D_206C_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
|
||||
static ImGuiStylePtr _206C_206B_200B_206E_206C_200E_200E_206E_200D_202C_200D_202D_202D_202D_206B_200C_202B_200B_202B_200C_206F_206F_200F_202B_202B_200B_200C_206A_202E_206B_202A_200E_202A_200B_206D_200B_200F_206C_200D_206D_202E()
|
||||
{
|
||||
return ImGui.GetStyle();
|
||||
}
|
||||
|
||||
static float _202A_206C_206F_200E_206B_206B_202A_200D_202A_200E_202B_206A_200E_206D_200F_200D_202E_206E_202C_206D_206D_202B_206D_200C_202B_200C_206A_202B_200E_202D_206A_202E_206B_202E_200D_200B_206C_206C_202A_202C_202E()
|
||||
{
|
||||
return ImGui.GetCursorPosX();
|
||||
}
|
||||
|
||||
static void _206C_200C_206D_200D_200F_202C_202E_202C_202A_200F_202B_202C_200D_206F_206A_206C_206B_200E_200C_202D_202C_202D_200B_206B_202A_200C_200D_200F_206E_200F_202A_200B_202B_202E_202C_202B_202B_200D_206F_200C_202E(float P_0)
|
||||
{
|
||||
ImGui.SetCursorPosX(P_0);
|
||||
}
|
||||
|
||||
static ImRaii.ColorDisposable _206D_200E_202C_206F_206D_200B_200F_200D_206D_202A_202B_206D_200E_206A_206A_206A_206D_206E_202C_202E_200E_202B_206B_200E_200B_200E_202D_206F_206B_206E_202D_206F_202E_202D_200C_200E_202B_200C_206E_202E_202E(ImGuiCol P_0, Vector4 P_1, bool P_2)
|
||||
{
|
||||
return ImRaii.PushColor(P_0, P_1, P_2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
|
|
@ -17,25 +18,25 @@ internal sealed class ChangelogHeaderComponent
|
|||
|
||||
public void Draw(Action<bool> onCloseClicked)
|
||||
{
|
||||
_animationTime += ImGui.GetIO().DeltaTime;
|
||||
ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList();
|
||||
Vector2 cursorScreenPos = ImGui.GetCursorScreenPos();
|
||||
float x = ImGui.GetContentRegionAvail().X;
|
||||
_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(windowDrawList, cursorScreenPos, x, headerHeight);
|
||||
DrawAnimatedBorder(windowDrawList, cursorScreenPos, x, headerHeight);
|
||||
DrawSparkles(windowDrawList, cursorScreenPos, x, headerHeight);
|
||||
DrawCloseButton(windowDrawList, cursorScreenPos, x, onCloseClicked);
|
||||
DrawHeaderContent(cursorScreenPos, x, headerHeight);
|
||||
DrawAccentLine(windowDrawList, cursorScreenPos, x, headerHeight);
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 8f);
|
||||
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 = (MathF.Sin(_animationTime * 1.5f) + 1f) * 0.5f * 0.03f;
|
||||
uint num2 = ImGui.ColorConvertFloat4ToU32(new Vector4(0.15f + num, 0.1f + num, 0.2f + num, 0.95f));
|
||||
uint num3 = ImGui.ColorConvertFloat4ToU32(new Vector4(0.08f, 0.05f, 0.12f, 0.95f));
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
@ -44,27 +45,68 @@ internal sealed class ChangelogHeaderComponent
|
|||
float num = 100f;
|
||||
float num2 = 250f;
|
||||
float num3 = _animationTime * num % num2;
|
||||
float num4 = MathF.Ceiling(contentWidth / num2) + 2f;
|
||||
for (int i = 0; (float)i < num4; i++)
|
||||
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)
|
||||
{
|
||||
float num5 = (float)i * num2 - num3;
|
||||
float num6 = num5 + num2;
|
||||
if (!(num6 < 0f) && !(num5 > contentWidth))
|
||||
int num7 = num6;
|
||||
int num8 = 1598045893;
|
||||
int num9 = num7;
|
||||
switch ((num9 | num8) - (num9 & num8))
|
||||
{
|
||||
float num7 = MathF.Max(0f, num5);
|
||||
float num8 = MathF.Min(contentWidth, num6);
|
||||
float num9 = (num7 - num5) / num2;
|
||||
float num10 = (num8 - num5) / num2;
|
||||
float num11 = (MathF.Sin(num9 * (float)Math.PI * 2f - (float)Math.PI / 2f) + 1f) * 0.5f;
|
||||
float num12 = (MathF.Sin(num10 * (float)Math.PI * 2f - (float)Math.PI / 2f) + 1f) * 0.5f;
|
||||
Vector4 value = new Vector4(0.75f, 0.55f, 0.95f, num11 * 0.8f);
|
||||
Vector4 value2 = new Vector4(0.55f, 0.75f, 0.95f, num11 * 0.8f);
|
||||
Vector4 value3 = new Vector4(0.75f, 0.55f, 0.95f, num12 * 0.8f);
|
||||
Vector4 value4 = new Vector4(0.55f, 0.75f, 0.95f, num12 * 0.8f);
|
||||
float num13 = (num9 + num10) * 0.5f;
|
||||
Vector4 input = Vector4.Lerp(value, value2, num13);
|
||||
Vector4 input2 = Vector4.Lerp(value3, value4, num13 + 0.2f);
|
||||
drawList.AddRectFilledMultiColor(headerStartPos + new Vector2(num7, 0f), headerStartPos + new Vector2(num8, 3f), ImGui.ColorConvertFloat4ToU32(input), ImGui.ColorConvertFloat4ToU32(input2), ImGui.ColorConvertFloat4ToU32(input2), ImGui.ColorConvertFloat4ToU32(input));
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -72,18 +114,47 @@ internal sealed class ChangelogHeaderComponent
|
|||
private void DrawSparkles(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight)
|
||||
{
|
||||
int num = 12;
|
||||
for (int i = 0; i < num; i++)
|
||||
int num2 = 0;
|
||||
int num3 = -726160502;
|
||||
while (true)
|
||||
{
|
||||
float num2 = (float)i * 123.456f;
|
||||
float num3 = 0.8f + (float)(i % 3) * 0.15f;
|
||||
float num4 = _animationTime * num3;
|
||||
float x = num2 * 12.345f % 1f * contentWidth;
|
||||
float y = (MathF.Sin(num4 + num2) + 1f) * 0.5f * headerHeight;
|
||||
Vector2 pos = headerStartPos + new Vector2(x, y);
|
||||
float num5 = (MathF.Sin(num4 * 3f + num2 * 2f) + 1f) * 0.5f;
|
||||
float alpha = num5 * 0.6f;
|
||||
float size = 2f + num5 * 1.5f;
|
||||
DrawSparkleShape(drawList, pos, size, alpha, i % 4, num4);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -91,28 +162,64 @@ internal sealed class ChangelogHeaderComponent
|
|||
{
|
||||
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);
|
||||
break;
|
||||
case 1:
|
||||
DrawDiamondSparkle(drawList, pos, size, alpha);
|
||||
break;
|
||||
return;
|
||||
case 2:
|
||||
DrawStarSparkle(drawList, pos, size, alpha, time);
|
||||
goto IL_0059;
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
DrawCircleSparkle(drawList, pos, size, alpha);
|
||||
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 = MathF.Max(1f, size * 0.3f);
|
||||
drawList.AddLine(pos - new Vector2(num, 0f), pos + new Vector2(num, 0f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha)), thickness);
|
||||
drawList.AddLine(pos - new Vector2(0f, num), pos + new Vector2(0f, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha)), thickness);
|
||||
drawList.AddCircleFilled(pos, size * 1.5f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.2f)));
|
||||
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)
|
||||
|
|
@ -122,49 +229,162 @@ internal sealed class ChangelogHeaderComponent
|
|||
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, ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha * 0.8f)));
|
||||
drawList.AddCircleFilled(pos, size * 1.6f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.25f)));
|
||||
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)
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
int num = 0;
|
||||
int num2 = -1819671031;
|
||||
while (true)
|
||||
{
|
||||
float num = (float)i * (float)Math.PI * 0.5f;
|
||||
float num2 = size * 0.3f;
|
||||
float num3 = size * 0.9f;
|
||||
float x = num - 0.3f;
|
||||
float x2 = num + 0.3f;
|
||||
Vector2 p = pos + new Vector2(MathF.Cos(x) * num2, MathF.Sin(x) * num2);
|
||||
Vector2 p2 = pos + new Vector2(MathF.Cos(num) * num3, MathF.Sin(num) * num3);
|
||||
Vector2 p3 = pos + new Vector2(MathF.Cos(x2) * num2, MathF.Sin(x2) * num2);
|
||||
drawList.AddTriangleFilled(p, p2, p3, ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha)));
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
drawList.AddCircleFilled(pos, size * 1.7f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.3f)));
|
||||
}
|
||||
|
||||
private static void DrawCircleSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha)
|
||||
{
|
||||
drawList.AddCircleFilled(pos, size, ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha)));
|
||||
drawList.AddCircleFilled(pos, size * 1.8f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.3f)));
|
||||
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 mousePos = ImGui.GetMousePos();
|
||||
bool flag = mousePos.X >= vector.X && mousePos.X <= vector.X + num && mousePos.Y >= vector.Y && mousePos.Y <= vector.Y + num;
|
||||
float w = (flag ? 0.9f : 0.5f);
|
||||
float num2 = (flag ? ((MathF.Sin(_animationTime * 4f) + 1f) * 0.5f * 0.1f) : 0f);
|
||||
uint col = (flag ? ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f + num2, 0.55f, 0.95f, w)) : ImGui.ColorConvertFloat4ToU32(new Vector4(0.55f, 0.45f, 0.75f, w)));
|
||||
drawList.AddCircleFilled(center, num * 0.4f, col);
|
||||
DrawAnimatedCross(drawList, center, flag);
|
||||
ImGui.SetCursorScreenPos(vector);
|
||||
if (ImGui.InvisibleButton("CloseButton", new Vector2(num, num)))
|
||||
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)
|
||||
{
|
||||
onCloseClicked(obj: false);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,23 +392,23 @@ internal sealed class ChangelogHeaderComponent
|
|||
{
|
||||
float thickness = 2f;
|
||||
float w = (isHovered ? 1f : 0.8f);
|
||||
float x = (isHovered ? (MathF.Sin(_animationTime * 6f) * 0.1f) : 0f);
|
||||
float num = MathF.Cos(x);
|
||||
float num2 = MathF.Sin(x);
|
||||
float num3 = 8f * 0.5f;
|
||||
Vector2 vector = new Vector2((0f - num3) * num - (0f - num3) * num2, (0f - num3) * num2 + (0f - num3) * num);
|
||||
Vector2 vector2 = new Vector2(num3 * num - num3 * num2, num3 * num2 + num3 * num);
|
||||
Vector2 vector3 = new Vector2((0f - num3) * num - num3 * num2, (0f - num3) * num2 + num3 * num);
|
||||
Vector2 vector4 = new Vector2(num3 * num - (0f - num3) * num2, num3 * num2 + (0f - num3) * num);
|
||||
drawList.AddLine(center + vector, center + vector2, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, w)), thickness);
|
||||
drawList.AddLine(center + vector3, center + vector4, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, w)), thickness);
|
||||
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 = MathF.Min(1f, _animationTime * 2f);
|
||||
ImGui.SetCursorScreenPos(headerStartPos);
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 30f);
|
||||
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);
|
||||
|
|
@ -197,54 +417,282 @@ internal sealed class ChangelogHeaderComponent
|
|||
|
||||
private void DrawIcon(float centerX, float fadeIn)
|
||||
{
|
||||
float num = MathF.Sin(_animationTime * 2f) * 3f;
|
||||
float num2 = MathF.Sin(_animationTime * 1.5f + (float)Math.PI / 2f) * 1.5f;
|
||||
using (ImRaii.PushFont(UiBuilder.IconFont))
|
||||
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 = FontAwesomeIcon.FileAlt.ToIconString();
|
||||
ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f + num2);
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + num);
|
||||
float w = (MathF.Sin(_animationTime * 3f) + 1f) * 0.5f * 0.3f;
|
||||
Vector4 input = ((_animationTime * 0.5f % 1f < 0.5f) ? new Vector4(0.75f, 0.55f, 0.95f, w) : new Vector4(0.55f, 0.75f, 0.95f, w));
|
||||
Vector2 cursorScreenPos = ImGui.GetCursorScreenPos();
|
||||
ImGui.GetWindowDrawList().AddText(UiBuilder.IconFont, ImGui.GetFontSize() * 1.2f, cursorScreenPos + new Vector2(2f, 2f), ImGui.ColorConvertFloat4ToU32(input), text);
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, fadeIn);
|
||||
ImGui.TextColored(new Vector4(0.75f, 0.55f, 0.95f, 1f), text);
|
||||
ImGui.PopStyleVar();
|
||||
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();
|
||||
}
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() - num + 4f);
|
||||
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 = MathF.Max(0f, 1f - (_animationTime - 0.1f) * 3f);
|
||||
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;
|
||||
using (ImRaii.PushFont(UiBuilder.MonoFont))
|
||||
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 = "What's New in Questionable?";
|
||||
ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f - num2);
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, fadeIn);
|
||||
ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), text);
|
||||
ImGui.PopStyleVar();
|
||||
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();
|
||||
}
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 6f);
|
||||
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 val = MathF.Max(0f, MathF.Min(1f, (_animationTime - 0.3f) * 2f));
|
||||
string text = "Stay up to date with the latest features and improvements";
|
||||
ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f);
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, val);
|
||||
ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 0.9f), text);
|
||||
ImGui.PopStyleVar();
|
||||
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)
|
||||
{
|
||||
ImGui.SetCursorScreenPos(headerStartPos + new Vector2(0f, headerHeight));
|
||||
Vector2 cursorScreenPos = ImGui.GetCursorScreenPos();
|
||||
float num = (MathF.Sin(_animationTime * 2f + (float)Math.PI) + 1f) * 0.5f;
|
||||
drawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(contentWidth, 2f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.6f + num * 0.4f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.2f + num * 0.2f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.2f + num * 0.2f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.6f + num * 0.4f)));
|
||||
_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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue