From 8e6658e20f40283390fa66fb533ae269dae73870 Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Sat, 7 Nov 2026 21:18:27 -0800 Subject: [PATCH] Bar menu: split two field declarations an edit joined Co-Authored-By: Claude Opus 5.5 --- src/RynthCore.Engine/ImGui/ImGuiBar.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RynthCore.Engine/ImGui/ImGuiBar.cs b/src/RynthCore.Engine/ImGui/ImGuiBar.cs index 2f9fb22..4442e5b 100644 --- a/src/RynthCore.Engine/ImGui/ImGuiBar.cs +++ b/src/RynthCore.Engine/ImGui/ImGuiBar.cs @@ -80,7 +80,8 @@ internal static class ImGuiBar // dropdown", the menu-bearing buttons' rects this frame, and when the timer was last fed (a gap // means the bar wasn't drawn: start from a closed dropdown). private static readonly BarMenuHover _menuHover = new(); - private static bool _overMenu; private static readonly List<(ButtonInfo Button, Vector2 Min, Vector2 Max)> _menuRects = new(); + private static bool _overMenu; + private static readonly List<(ButtonInfo Button, Vector2 Min, Vector2 Max)> _menuRects = new(); private const ImGuiWindowFlags MenuFlags = ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNav;