Files
mod_card_battle/scenes/character_card_node.tscn
2026-09-10 10:58:00 +03:00

136 lines
2.9 KiB
Plaintext

[gd_scene format=3]
[ext_resource type="Script" path="src/UI/CharacterCardNode.cs" id="1_script"]
[node name="CharacterCardNode" type="Control" script=ExtResource("1_script")]
custom_minimum_size = Vector2(230, 420)
layout_mode = 3
[node name="TeamOutline" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
offset_left = -4.0
offset_top = -4.0
offset_right = 4.0
offset_bottom = 4.0
mouse_filter = 2
[node name="Image" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
offset_left = 20.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = -60.0
mouse_filter = 2
expand_mode = 1
stretch_mode = 4
[node name="Frame" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
expand_mode = 1
stretch_mode = 4
[node name="Selection" type="TextureRect" 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="InfoPanel" type="Control" parent="."]
layout_mode = 1
anchors_preset = 12
anchor_left = 0.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
offset_top = -60.0
offset_bottom = 0.0
[node name="NameLabel" type="Label" parent="InfoPanel"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2
offset_bottom = 18.0
horizontal_alignment = 1
theme_override_font_sizes/font_size = 16
[node name="HealthBar" type="Control" parent="InfoPanel"]
layout_mode = 1
anchors_preset = 12
anchor_left = 0.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
offset_top = -18.0
offset_bottom = 0.0
[node name="HealthBg" type="ColorRect" parent="InfoPanel/HealthBar"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.2, 0.2, 0.2, 1)
[node name="HealthRect" type="ColorRect" parent="InfoPanel/HealthBar"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0.8, 0, 1)
[node name="Labels" type="HBoxContainer" parent="InfoPanel"]
layout_mode = 1
anchors_preset = 13
anchor_left = 0.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
grow_horizontal = 2
alignment = 1
[node name="LabelS" type="Label" parent="InfoPanel/Labels"]
text = "S"
horizontal_alignment = 1
[node name="DefenceLabel" type="Label" parent="InfoPanel/Labels"]
text = "0"
[node name="LabelA" type="Label" parent="InfoPanel/Labels"]
text = "A"
horizontal_alignment = 1
[node name="AttackLabel" type="Label" parent="InfoPanel/Labels"]
text = "0"
[node name="LabelP" type="Label" parent="InfoPanel/Labels"]
text = "P"
horizontal_alignment = 1
[node name="PointsLabel" type="Label" parent="InfoPanel/Labels"]
text = "0"