From 572e66f026bf4cd82b4a8ee01257bdc2c820b513 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 5 Apr 2026 11:07:34 +0200 Subject: [PATCH] fix(ui): remove Node2D cursor_renderer from Control-typed HudGroups array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CursorRenderer extends Node2D, not Control — can't be registered in HudGroups. Removed from gameplay group. Also dropped typed array annotation to avoid runtime type mismatch errors. Co-Authored-By: Claude Opus 4.6 (1M context) --- client/scripts/main.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scripts/main.gd b/client/scripts/main.gd index df1edceda..cdbafbce2 100644 --- a/client/scripts/main.gd +++ b/client/scripts/main.gd @@ -64,10 +64,10 @@ func _ready() -> void: # D-170: Register HUD nodes into visibility groups # Gameplay group — hidden when implant panels are open - for node: Control in [hud, minimap, stance_indicator, cursor_renderer, + for node in [hud, minimap, stance_indicator, interaction_prompt, interaction_list, inventory_grid, news_ticker, examine_display, world_radial]: - if node: + if node and node is Control: HudGroups.register(node, "gameplay") # #775: Initialize extracted components