Minor issue with the ingame display fixed.

This commit is contained in:
Patrick_Pluto 2024-06-16 20:05:51 +02:00
parent 5e4f79ee19
commit 7d331f0883
2 changed files with 9 additions and 2 deletions

View file

@ -9,6 +9,13 @@
[node name="characterViewer" parent="." instance=ExtResource("2_7des0")]
visible = false
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_right = 800.0
offset_bottom = 500.0
grow_horizontal = 1
grow_vertical = 1
[node name="back" type="Button" parent="."]
visible = false

View file

@ -22,8 +22,8 @@ func stats():
get_node(objectName).stop()
$"../back".disabled = false
$"../back".visible = true
$"../characterViewer".get_child(1).text = str(playerIndex-1)
$"../characterViewer".get_child(1).editable = false
$"../characterViewer/ScrollContainer/VBoxContainer".get_child(1).text = str(playerIndex-1)
$"../characterViewer/ScrollContainer/VBoxContainer".get_child(1).editable = false
$"../characterViewer"._on_button_pressed()
func restart():