Add gdlint and gdformat scripts

This commit is contained in:
2025-09-27 20:40:13 +04:00
parent 86439abea8
commit 06f0f87970
40 changed files with 2314 additions and 732 deletions

View File

@@ -2,15 +2,26 @@ extends Control
signal any_key_pressed
func _ready():
func _ready() -> void:
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):
func _input(event: InputEvent) -> void:
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():
func update_text() -> void:
$SplashContainer/ContinueLabel.text = tr("press_ok_continue")