start work on main menu

This commit is contained in:
Persephone Bubblegum-Holiday 2025-07-26 22:08:15 -07:00
parent 1ca6bda653
commit f77e90da58
6 changed files with 108 additions and 57 deletions

View file

@ -170,6 +170,14 @@ func _showtape_menu_button_pressed(id: int) -> void:
2: #save
if (showtape_loaded): $ShowtapeSaveScreen.visible = true
else: $NoShowtapeLoadedDialog.show()
3: # controls
$ControlsScreen.visible = true
4: # exit menu
if (showtape_loaded): $ExitMenuOverwriteConfirmationDialog.show()
else: get_tree().change_scene_to_file("res://Scenes/GUI/MainMenu.tscn")
5: # exit desktop
if (showtape_loaded): $ExitDesktopOverwriteConfirmationDialog.show()
else: get_tree().quit()
func _on_showtape_new_audio_browse_button_pressed() -> void:
@ -496,3 +504,11 @@ func index_s_get_safe(cindex: int, data: Dictionary) -> Array[bool]:
var out = data.get(cindex)
if (out == null): return [ false ]
return out
func _on_exit_menu_overwrite_confirmation_dialog_confirmed() -> void:
get_tree().change_scene_to_file("res://Scenes/GUI/MainMenu.tscn")
func _on_exit_desktop_overwrite_confirmation_dialog_2_confirmed() -> void:
get_tree().quit()

5
Scripts/MainMenu.gd Normal file
View file

@ -0,0 +1,5 @@
extends Control
func _on_button_pressed() -> void:
get_tree().change_scene_to_file("res://Scenes/GUI/EditorScreen.tscn")

1
Scripts/MainMenu.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://b5nh5td5bdsfd