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,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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue