Fix: Spirit card highlights — emissive material, preserve selection through state updates
- _add_highlight: use emission (emission_energy_multiplier=2) + 75% opaque base so tiles glow visibly regardless of depth-sort/transparency ordering; raised Y to 0.58 (clear of tile top at 0.50); thicker mesh (0.06 vs 0.02) - Remove Godot-3-only flags_transparent property (no-op in Godot 4) - _on_state_updated: preserve CARD_FROM_HAND / TERRAMORPHA_SELECT through server state pushes if selected card is still in hand (re-apply highlights after _rebuild_hand); only clear UNIT_SELECTED and other transient modes - Add diagnostic prints to _add_highlight and _on_state_updated to trace when state updates arrive relative to card selection Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -96,11 +96,11 @@ func _add_stat(label_text: String, value_text: String) -> void:
|
||||
var lbl := Label.new()
|
||||
lbl.text = label_text
|
||||
lbl.modulate = Color(0.65, 0.65, 0.72)
|
||||
lbl.theme_override_font_sizes["font_size"] = 12
|
||||
#lbl.theme_override_font_sizes["font_size"] = 12
|
||||
|
||||
var val := Label.new()
|
||||
val.text = value_text
|
||||
val.theme_override_font_sizes["font_size"] = 13
|
||||
#val.theme_override_font_sizes["font_size"] = 13
|
||||
|
||||
stats_grid.add_child(lbl)
|
||||
stats_grid.add_child(val)
|
||||
|
||||
Reference in New Issue
Block a user