Quellcode durchsuchen

:wrench: Implement button to return to title screen

from pause menu.
DricomDragon vor 1 Jahr
Ursprung
Commit
b7796dd05c

+ 2 - 1
godot/component/ui/pause/pause_menu.gd

@@ -20,7 +20,8 @@ func _on_resume_button_pressed():
 
 
 func _on_title_button_pressed():
-	pass # Replace with function body.
+	get_tree().reload_current_scene()
+	resume()
 
 
 func _on_quit_button_pressed():

+ 0 - 1
godot/component/ui/pause/pause_menu.tscn

@@ -40,7 +40,6 @@ text = "Resume"
 [node name="TitleButton" type="Button" parent="Buttons"]
 layout_mode = 2
 theme_override_font_sizes/font_size = 33
-disabled = true
 text = "Return to title screen"
 
 [node name="QuitButton" type="Button" parent="Buttons"]