- Preload stance icons at _ready() into cache Dictionary - Null-guard shader + theme loads with push_error() + early return - Guard _icon_mat.set_shader_parameter inside if _icon_mat: - Icon size 18→20px per D-086, container height 44→46px to fit - Add _apply_stance test coverage (known + unknown stance) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
542 B
Plaintext
19 lines
542 B
Plaintext
[gd_scene load_steps=2 format=3]
|
|
|
|
[ext_resource type="Script" path="res://ui/stance_indicator.gd" id="1_stance"]
|
|
|
|
; D-053: Stance indicator — below minimap (bottom at y:176), 24px gap.
|
|
; Control height 46px: border(1) + padding(12) + icon(20) + padding(12) + border(1).
|
|
[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 = 200.0
|
|
offset_right = -16.0
|
|
offset_bottom = 246.0
|
|
grow_horizontal = 0
|
|
mouse_filter = 2
|
|
script = ExtResource("1_stance")
|