big work
This commit is contained in:
+17
-4
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user