From 54bf676493d7b28a1b2d16310f26a9a3c2c73d64 Mon Sep 17 00:00:00 2001 From: Ervan Lefevre Date: Sat, 30 Sep 2023 12:06:52 +0200 Subject: [PATCH] :truck: Main menu now routes to poc.tscn --- scenes/main_menu.tscn | 2 +- scripts/ui/change_scene_button.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/main_menu.tscn b/scenes/main_menu.tscn index 4d5f24d..b4676fe 100644 --- a/scenes/main_menu.tscn +++ b/scenes/main_menu.tscn @@ -35,7 +35,7 @@ offset_right = 1279.0 offset_bottom = 853.0 text = "Play" script = ExtResource("1_2rx5y") -TARGET_SCENE = "res://scenes/main_menu.tscn" +TARGET_SCENE = "res://scenes/poc.tscn" [node name="quit" type="Button" parent="."] layout_mode = 0 diff --git a/scripts/ui/change_scene_button.gd b/scripts/ui/change_scene_button.gd index 2915cd7..0e78368 100644 --- a/scripts/ui/change_scene_button.gd +++ b/scripts/ui/change_scene_button.gd @@ -5,4 +5,4 @@ class_name SceneChanger func _pressed(): print("Changing scene to: " + TARGET_SCENE) - get_tree().change_scene(TARGET_SCENE) + get_tree().change_scene_to_file(TARGET_SCENE)