Files
skelly/scenes/main/SplashScreen.gd
Vladimir nett00n Budylnikov 9b83bec37d
Some checks failed
GDScript Auto-Formatting / Auto-Format GDScript Code (pull_request) Failing after 9s
GDScript Linting / GDScript Code Quality Check (pull_request) Failing after 11s
any_key > action_confirm
2025-09-27 21:12:24 +04:00

28 lines
619 B
GDScript

extends Control
signal confirm_pressed
func _ready() -> void:
DebugManager.log_debug("SplashScreen ready", "SplashScreen")
update_text()
func _input(event: InputEvent) -> void:
if (
event.is_action_pressed("action_confirm")
or event is InputEventScreenTouch
or (
event is InputEventMouseButton
and event.button_index == MOUSE_BUTTON_LEFT
and event.pressed
)
):
DebugManager.log_debug("Action pressed: " + str(event), "SplashScreen")
confirm_pressed.emit()
get_viewport().set_input_as_handled()
func update_text() -> void:
$SplashContainer/ContinueLabel.text = tr("press_ok_continue")