fix: avoids being able to pause during transitions; also moves pausing request responsibility to UI; also fixes issue w/ trying to pause during intro and main menu
This commit is contained in:
committed by
Julian Murgia
parent
ff178541fc
commit
aeffe09e34
@@ -3,8 +3,6 @@ tool
|
||||
extends Node
|
||||
class_name Escoria
|
||||
|
||||
# Signal sent when pause menu has to be displayed
|
||||
signal request_pause_menu
|
||||
|
||||
# Signal sent when Escoria is paused
|
||||
signal paused
|
||||
@@ -223,9 +221,6 @@ func _input(event):
|
||||
and event.is_action_pressed(ESCInputsManager.ESC_SHOW_DEBUG_PROMPT):
|
||||
escoria.main.get_node("layers/debug_layer/esc_prompt_popup").popup()
|
||||
|
||||
if event.is_action_pressed("ui_cancel"):
|
||||
emit_signal("request_pause_menu")
|
||||
|
||||
|
||||
# Pauses or unpause the game
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user