From 168c5e0d9bdd26bd727cb070e31bab7244a0060d Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Mon, 6 Apr 2026 16:43:49 +0200 Subject: [PATCH] fix(ui): restore STANCE_ICONS constant removed during refactor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Startup crash — preload loop referenced STANCE_ICONS but the constant was accidentally dropped when rewriting the icon cache logic. Co-Authored-By: Claude Opus 4.6 --- client/ui/stance_indicator.gd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/ui/stance_indicator.gd b/client/ui/stance_indicator.gd index 75a83c062..a60264186 100644 --- a/client/ui/stance_indicator.gd +++ b/client/ui/stance_indicator.gd @@ -10,6 +10,13 @@ const STANCE_COLORS := { "Crouch": Color("#e8c547"), # Amber — very quiet, slow } +const STANCE_ICONS := { + "Sprint": "res://assets/icons/icon_stance_sprint.svg", + "Walk": "res://assets/icons/icon_stance_walk.svg", + "Careful": "res://assets/icons/icon_stance_careful.svg", + "Crouch": "res://assets/icons/icon_stance_crouch.svg", +} + var _current_stance: String = "Walk" var _panel: ImplantPanel var _icon: TextureRect