- Game.gd: fix push type "game.over" (not "game.over.push"), store opponent_name
- game_screen.gd full rewrite:
- Unit ownership via _rebuild_ownership() + _is_enemy_unit()/_is_friendly_unit()
(CardInstanceDto has no ownerAccountId; build sets from PlayerStateDto instead)
- Hand card hover y-reset fixed to 0.0 (was incorrectly using container position)
- Opponent name from Game.opponent_name
- Terramorpha multi-tile sequential selection with adjacency validation
- Sacrifice: click ArchSpirit → PopupMenu → select spirit → ConfirmationDialog
- Ascend/Transition: detected by card tier vs current arch tier, confirmation dialogs
- Ability panel: parses abilitiesJson, filters Active abilities, floating HUD buttons
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>
143 lines
4.2 KiB
Plaintext
143 lines
4.2 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dinmbgl2jwppv"]
|
|
|
|
[ext_resource type="Script" uid="uid://bbs4g6f1ax4er" path="res://scenes/collection/components/card_detail_popup.gd" id="1_cdp"]
|
|
|
|
[node name="CardDetailPopup" type="Control"]
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_cdp")
|
|
|
|
[node name="Overlay" type="ColorRect" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0, 0, 0, 0.72)
|
|
|
|
[node name="Center" type="CenterContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="Panel" type="PanelContainer" parent="Center"]
|
|
custom_minimum_size = Vector2(310, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="Scroll" type="ScrollContainer" parent="Center/Panel"]
|
|
layout_mode = 2
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="Inner" type="MarginContainer" parent="Center/Panel/Scroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 14
|
|
theme_override_constants/margin_top = 14
|
|
theme_override_constants/margin_right = 14
|
|
theme_override_constants/margin_bottom = 14
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Center/Panel/Scroll/Inner"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="HeaderRow" type="HBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="AffinityIcon" type="TextureRect" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(28, 28)
|
|
layout_mode = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="NameLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 18
|
|
text = "Card Name"
|
|
vertical_alignment = 1
|
|
|
|
[node name="FoilBadge" type="Label" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
modulate = Color(0.95, 0.85, 0.3, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "✦ Foil"
|
|
vertical_alignment = 1
|
|
|
|
[node name="CloseBtn" type="Button" parent="Center/Panel/Scroll/Inner/VBox/HeaderRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(32, 32)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "✕"
|
|
|
|
[node name="TagRow" type="HBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="TypeLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(0.7, 0.7, 0.8, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="TagFill" type="Control" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="AffinityLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="TagFill2" type="Control" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="RarityLabel" type="Label" parent="Center/Panel/Scroll/Inner/VBox/TagRow"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
|
|
[node name="StatsSep" type="HSeparator" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="StatsGrid" type="GridContainer" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_constants/h_separation = 8
|
|
theme_override_constants/v_separation = 6
|
|
columns = 4
|
|
|
|
[node name="AbilitiesSep" type="HSeparator" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="AbilitiesTitle" type="Label" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Abilities"
|
|
|
|
[node name="AbilitiesList" type="VBoxContainer" parent="Center/Panel/Scroll/Inner/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 6
|