This commit is contained in:
Maurane
2026-08-16 01:06:53 +02:00
parent d0cdec4a6a
commit 59e9cb30a5
362 changed files with 4139 additions and 4487 deletions
+17 -4
View File
@@ -19,9 +19,12 @@ func _ready() -> void:
#Connecting signals
menu_button.pressed.connect(func():
submenu.show()
ui_main.masks.mask.show()
ui_main.in_title_screen = false
if UI.in_title_screen == false and submenu.is_visible_in_tree() == false:
submenu.show()
ui_main.masks.mask.show()
elif UI.in_title_screen == false and submenu.is_visible_in_tree():
reset()
ui_main.masks.mask.hide()
)
submenu.resume.pressed.connect(func():
reset()
@@ -38,7 +41,17 @@ func _ready() -> void:
load.load_slot[i].pressed.connect(self._on_load_slot_pressed.bind(i))
load.load_slot[0].pressed.connect(self._on_load_slot_pressed.bind(0)) #Autosaveslot can be loaded but not saved upon
#Opens the submenu when the escape key is pressed
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("ui_cancel") and UI.in_title_screen == false and submenu.is_visible_in_tree() == false:
submenu.show()
ui_main.masks.mask.show()
elif event.is_action_pressed("ui_cancel") and UI.in_title_screen == false and submenu.is_visible_in_tree():
reset()
ui_main.masks.mask.hide()
#Emits save_slot signal
func _on_save_slot_pressed(save_slot_number: int):