PressAnyKeyScreen → SplashScreen

This commit is contained in:
2025-09-27 16:38:26 +04:00
parent dd0c1a123c
commit 86439abea8
20 changed files with 527 additions and 59 deletions

View File

@@ -0,0 +1,16 @@
extends Control
signal any_key_pressed
func _ready():
DebugManager.log_debug("SplashScreen ready", "SplashScreen")
update_text()
func _input(event):
if event.is_action_pressed("action_south") 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")
any_key_pressed.emit()
get_viewport().set_input_as_handled()
func update_text():
$SplashContainer/ContinueLabel.text = tr("press_ok_continue")