Fix: card play input bug, populate CardInstanceDto fields, genus/SP/ST/MP display
- Input bug: CardWidget only consumed mouse PRESS via accept_event(), not RELEASE. This caused _unhandled_input to fire _handle_board_click on release of a card click, hitting the tile physically behind the hand area in 3D — accidentally sending play_card to the wrong tile (Spirit/Ruin) or picking the first tile for Terramorpha. Fixed by tracking _press_was_on_board: board clicks only fire when the originating PRESS also reached _unhandled_input (i.e., was not consumed by a UI card widget). - Server: added SpCost, StCost, Genus, MinChannelRange, MaxChannelRange, MinAttackRange, MaxAttackRange, CanMove, CanAttack, ExtraAttacksRemaining, CanBeAttacked, AbilitiesJson to CardInstanceDto and ToCardDto mapping. All fields were already on CardInstance; they were simply not exposed to clients. - Client: build def dict in _make_hand_card with maxMp → movementPoints alias so CardWidget displays movement points correctly. - Client: show MetaRow (genus + type) in compact hand card; only StatsGrid is hidden. HandArea / RightPanel height raised 190 → 220px for better visibility. 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,7 +96,7 @@ anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.75
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -190.0
|
||||
offset_top = -220.0
|
||||
offset_right = 0.0
|
||||
|
||||
[node name="HandScroll" type="ScrollContainer" parent="HUD/HandArea"]
|
||||
@@ -119,7 +119,7 @@ anchor_left = 0.75
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -190.0
|
||||
offset_top = -220.0
|
||||
|
||||
[node name="RightMargin" type="MarginContainer" parent="HUD/RightPanel"]
|
||||
layout_mode = 2
|
||||
|
||||
Reference in New Issue
Block a user