clamp value of all easings by default

(cherry picked from commit 1aada98393)
This commit is contained in:
goat 2024-12-29 16:53:16 +01:00 committed by Kaz Wolfe
parent c3df199e29
commit 1676522ea8
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
17 changed files with 41 additions and 38 deletions

View file

@ -251,7 +251,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable
this.fadeOutEasing.Update();
using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)Math.Max(this.fadeOutEasing.Value, 0)))
using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)this.fadeOutEasing.Value))
{
var i = 0;
foreach (var entry in entries)
@ -392,7 +392,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable
if (overrideAlpha)
{
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, showText ? (float)Math.Min(logoEasing.Value, 1) : 0f);
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, showText ? (float)logoEasing.Value : 0f);
}
// Drop shadow