fix(ui): resolve HUD layout overlaps (#792)
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user