From 3c7231e275c5c8e05d91f9b148e3d5f3fd2668de Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Mon, 6 Apr 2026 12:51:48 +0200 Subject: [PATCH] fix(ui): resolve HUD layout overlaps (#792) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DebugOverlay: position comment updated, tscn is source of truth - GauntletHUD: moved from y:48 to y:252 (below StanceIndicator) - StanceIndicator: offset_top 192→200, height 26→44px for ImplantPanel Co-Authored-By: Claude Opus 4.6 --- client/ui/debug_overlay.gd | 2 +- client/ui/gauntlet_hud.tscn | 6 +++--- client/ui/stance_indicator.tscn | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/ui/debug_overlay.gd b/client/ui/debug_overlay.gd index bd78d9119..accde3632 100644 --- a/client/ui/debug_overlay.gd +++ b/client/ui/debug_overlay.gd @@ -76,7 +76,7 @@ var _tick_deltas: Array = [] # ms between consecutive snapshots func _ready() -> void: _dev_mode = OS.is_debug_build() visible = false - position.y = 150.0 # Below TimeDisplay (16-70) + HUD status panel (80-140) + # Position set in main.tscn: below merged HUD status panel (starts at y:16) _cached_font = ThemeDB.fallback_font # Clear NPC path history on session change to prevent entity ID collisions GameState.connect("game_id_changed", _on_game_id_changed) diff --git a/client/ui/gauntlet_hud.tscn b/client/ui/gauntlet_hud.tscn index bd90467e8..da3e169da 100644 --- a/client/ui/gauntlet_hud.tscn +++ b/client/ui/gauntlet_hud.tscn @@ -2,16 +2,16 @@ [ext_resource type="Script" path="res://ui/gauntlet_hud.gd" id="1_gauntlet"] -; #496: Gauntlet HUD — room timer + personal bests, top-right below StanceIndicator +; #496: Gauntlet HUD — room timer + personal bests, top-right below StanceIndicator (bottom at y:244) [node name="GauntletHUD" type="Control"] layout_mode = 3 anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -160.0 -offset_top = 48.0 +offset_top = 252.0 offset_right = -16.0 -offset_bottom = 74.0 +offset_bottom = 278.0 grow_horizontal = 0 mouse_filter = 2 script = ExtResource("1_gauntlet") diff --git a/client/ui/stance_indicator.tscn b/client/ui/stance_indicator.tscn index 2b3ddf454..bc14f6abb 100644 --- a/client/ui/stance_indicator.tscn +++ b/client/ui/stance_indicator.tscn @@ -2,16 +2,17 @@ [ext_resource type="Script" path="res://ui/stance_indicator.gd" id="1_stance"] -; D-053: Stance indicator — below minimap, right-aligned +; D-053: Stance indicator — below minimap (bottom at y:176), 24px gap. +; Control height 44px to contain ImplantPanel (padding 12+12 + row 18 = 42px minimum). [node name="StanceIndicator" type="Control"] layout_mode = 3 anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -100.0 -offset_top = 192.0 +offset_top = 200.0 offset_right = -16.0 -offset_bottom = 218.0 +offset_bottom = 244.0 grow_horizontal = 0 mouse_filter = 2 script = ExtResource("1_stance")