From e13faa02d2e414cd753850cdca3b41a7d1a16c96 Mon Sep 17 00:00:00 2001 From: Zacharie Guet Date: Mon, 2 Sep 2024 00:14:14 +0200 Subject: [PATCH] Hide controls on win screen --- scenes/Gui.tscn | 2 +- scripts/tuto.gd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scenes/Gui.tscn b/scenes/Gui.tscn index 464c80e..817fe99 100644 --- a/scenes/Gui.tscn +++ b/scenes/Gui.tscn @@ -112,7 +112,7 @@ label_settings = SubResource("LabelSettings_y5jk3") horizontal_alignment = 1 vertical_alignment = 1 -[node name="TextureRect2" type="TextureRect" parent="Tuto/MarginContainer"] +[node name="Controls" type="TextureRect" parent="Tuto/MarginContainer"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 0 diff --git a/scripts/tuto.gd b/scripts/tuto.gd index a3e9b3a..a33c774 100644 --- a/scripts/tuto.gd +++ b/scripts/tuto.gd @@ -29,6 +29,7 @@ func _input(event): func win(): show() + $MarginContainer/Controls.hide() $RobotSpeak.playing = true $MarginContainer/Text.text = win_text