forked from aly/qstbak
muffin v7.5.0
This commit is contained in:
parent
afafd5e377
commit
a6481e7b9a
67 changed files with 4281 additions and 2372 deletions
|
|
@ -200,7 +200,8 @@ internal sealed class ChangelogHeaderComponent
|
|||
{
|
||||
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))
|
||||
FontDisposable val = ImRaii.PushFont(UiBuilder.IconFont, true);
|
||||
try
|
||||
{
|
||||
string text = FontAwesomeIcon.FileAlt.ToIconString();
|
||||
ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f + num2);
|
||||
|
|
@ -213,6 +214,10 @@ internal sealed class ChangelogHeaderComponent
|
|||
ImGui.TextColored(new Vector4(0.75f, 0.55f, 0.95f, 1f), text);
|
||||
ImGui.PopStyleVar();
|
||||
}
|
||||
finally
|
||||
{
|
||||
((IDisposable)val)?.Dispose();
|
||||
}
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() - num + 4f);
|
||||
}
|
||||
|
||||
|
|
@ -220,7 +225,8 @@ internal sealed class ChangelogHeaderComponent
|
|||
{
|
||||
float num = MathF.Max(0f, 1f - (_animationTime - 0.1f) * 3f);
|
||||
float num2 = num * num * (3f - 2f * num) * 20f;
|
||||
using (ImRaii.PushFont(UiBuilder.MonoFont))
|
||||
FontDisposable val = ImRaii.PushFont(UiBuilder.MonoFont, true);
|
||||
try
|
||||
{
|
||||
string text = "What's New in Questionable?";
|
||||
ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f - num2);
|
||||
|
|
@ -228,6 +234,10 @@ internal sealed class ChangelogHeaderComponent
|
|||
ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), text);
|
||||
ImGui.PopStyleVar();
|
||||
}
|
||||
finally
|
||||
{
|
||||
((IDisposable)val)?.Dispose();
|
||||
}
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 6f);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue