compact menu redesign with new animated particle header, enable particles toggle added in UI settings

This commit is contained in:
choco
2025-12-23 17:16:51 +01:00
parent 4e03b381dc
commit 5b81caf5a8
5 changed files with 102 additions and 105 deletions

View File

@@ -47,6 +47,8 @@ public class AnimatedHeader
public Vector4 BottomColor { get; set; } = new(0.12f, 0.08f, 0.20f, 1.0f);
public bool EnableParticles { get; set; } = true;
public bool EnableBottomGradient { get; set; } = true;
public float GradientHeight { get; set; } = 60f;
/// <summary>
/// Draws the animated header with some customizable content
@@ -171,7 +173,7 @@ public class AnimatedHeader
private void DrawBottomGradient(Vector2 headerStart, Vector2 headerEnd, float width)
{
var drawList = ImGui.GetWindowDrawList();
var gradientHeight = 60f;
var gradientHeight = GradientHeight;
for (int i = 0; i < gradientHeight; i++)
{