21 lines
342 B
GDScript
21 lines
342 B
GDScript
extends Control
|
|
|
|
var SettingsMenu = preload("res://scenes/menus/SettingsMenu.tscn")
|
|
|
|
|
|
func _draw():
|
|
find_node("resume").grab_focus()
|
|
|
|
|
|
func _on_resume_pressed():
|
|
hide()
|
|
|
|
|
|
func _on_settings_pressed():
|
|
var settings_menu = SettingsMenu.instance()
|
|
get_parent().add_child(settings_menu)
|
|
hide()
|
|
|
|
|
|
func _on_end_pressed():
|
|
gamestate.quit_game() |