use proper logging everywhere add gamepad and keyboard control on match3 gameplay
17 lines
457 B
GDScript
17 lines
457 B
GDScript
extends Control
|
|
|
|
signal any_key_pressed
|
|
|
|
func _ready():
|
|
DebugManager.log_debug("PressAnyKeyScreen ready", "PressAnyKey")
|
|
update_text()
|
|
|
|
func _input(event):
|
|
if event.is_action_pressed("any_key") or event is InputEventScreenTouch:
|
|
DebugManager.log_debug("Any key pressed: " + str(event), "PressAnyKey")
|
|
any_key_pressed.emit()
|
|
get_viewport().set_input_as_handled()
|
|
|
|
func update_text():
|
|
$PressKeyContainer/PressKeyLabel.text = tr("press_ok_continue")
|