diff options
| author | Radio <radiohotline@disroot.org> | 2026-05-30 00:15:31 +0300 |
|---|---|---|
| committer | Radio <radiohotline@disroot.org> | 2026-05-30 00:15:31 +0300 |
| commit | 9d87bc7922f76dc835ac4d4e99115b204cbfdea7 (patch) | |
| tree | c777566d4a5026ec9a166cbb37769afa588282fb /scenes/ui/title_button.gd | |
| parent | c10385a69170ac4e366477ded90cacb83b98d787 (diff) | |
menus my menu
Diffstat (limited to 'scenes/ui/title_button.gd')
| -rw-r--r-- | scenes/ui/title_button.gd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scenes/ui/title_button.gd b/scenes/ui/title_button.gd new file mode 100644 index 0000000..3dc86fb --- /dev/null +++ b/scenes/ui/title_button.gd @@ -0,0 +1,20 @@ +extends Control + +var options: CanvasLayer + +func _on_exit_pressed() -> void: + get_tree().quit() + + +func _on_start_pressed() -> void: + get_tree().change_scene_to_file("res://scenes/room/start.tscn") + + +func _on_main_menu_pressed() -> void: + get_tree().change_scene_to_file("res://scenes/ui/title.tscn") + + +func _on_options_pressed() -> void: + options = load("uid://i8ml66ykc8eh").instantiate() + add_child(options) + |
