Add console open/close functionality to pause menu; update console path in project settings

This commit is contained in:
2025-05-03 16:08:16 +02:00
parent b36df13982
commit aa2bd7b3b0
8 changed files with 535 additions and 6 deletions

View File

@@ -11,7 +11,8 @@ extends Node
@onready var gm: GM = $"/root/GameManager"
var is_paused: bool = false
var is_paused: bool = false
var is_console_open: bool = false
func _ready() -> void:
@@ -44,7 +45,7 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("pause"):
if event.is_action_pressed("pause") and not is_console_open:
if is_paused:
_on_resume_button_pressed()
else:
@@ -82,4 +83,12 @@ func _on_exit_to_menu_button_pressed() -> void:
printerr("PauseMenu: Exit to menu scene not set.")
return
get_tree().change_scene_to_packed(exit_to_menu_scene)
get_tree().change_scene_to_packed(exit_to_menu_scene)
func _on_console_open():
pass
func _on_console_close():
pass