Fix some bugs

This commit is contained in:
Sofia 2026-08-02 23:14:41 +03:00
parent d99850129d
commit f13090f8aa

View File

@ -1,7 +1,8 @@
[gd_scene format=3 uid="uid://thi85gv3blli"]
[node name="player_stats_panel" type="PlayerStatsPanel" unique_id=820294448 node_paths=PackedStringArray("stats_grid")]
stats_grid = NodePath("v_box_container/grid_container")
[node name="player_stats_panel" type="PlayerStatsPanel" unique_id=820294448 node_paths=PackedStringArray("player_name", "stats_grid")]
player_name = NodePath("margin_container/v_box_container/label")
stats_grid = NodePath("margin_container/v_box_container/grid_container")
visible = false
anchors_preset = 8
anchor_left = 0.5
@ -15,21 +16,28 @@ offset_bottom = 6.0
grow_horizontal = 2
grow_vertical = 2
[node name="v_box_container" type="VBoxContainer" parent="." unique_id=1545420438]
[node name="margin_container" type="MarginContainer" parent="." unique_id=1383901453]
layout_mode = 2
theme_override_constants/margin_left = 20
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
theme_override_constants/margin_bottom = 20
[node name="v_box_container" type="VBoxContainer" parent="margin_container" unique_id=1545420438]
layout_mode = 2
[node name="label" type="Label" parent="v_box_container" unique_id=1011731554]
[node name="label" type="Label" parent="margin_container/v_box_container" unique_id=1011731554]
layout_mode = 2
text = "PlayerName"
horizontal_alignment = 1
[node name="grid_container" type="GridContainer" parent="v_box_container" unique_id=1825400706]
[node name="grid_container" type="GridContainer" parent="margin_container/v_box_container" unique_id=1825400706]
layout_mode = 2
columns = 2
[node name="button" type="Button" parent="v_box_container" unique_id=210952362]
[node name="button" type="Button" parent="margin_container/v_box_container" unique_id=210952362]
layout_mode = 2
size_flags_horizontal = 4
text = "Close"
[connection signal="pressed" from="v_box_container/button" to="." method="close"]
[connection signal="pressed" from="margin_container/v_box_container/button" to="." method="close"]