diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-12-24 19:23:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 19:23:18 +0100 |
commit | d26c990d9a5596a3ef3b32ba1cb0f99950cd6d34 (patch) | |
tree | 1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/SplashContainer.gd | |
parent | 50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff) | |
parent | b6413251a866c76538869b84ed1c9b9852f7c507 (diff) |
Merge pull request #178 from Spartan322/add-menu-type-hints
Diffstat (limited to 'game/src/Game/SplashContainer.gd')
-rw-r--r-- | game/src/Game/SplashContainer.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/SplashContainer.gd b/game/src/Game/SplashContainer.gd index 524d314..e74620b 100644 --- a/game/src/Game/SplashContainer.gd +++ b/game/src/Game/SplashContainer.gd @@ -6,14 +6,14 @@ signal splash_end @export var _splash_image : TextureRect @export var _splash_video : VideoStreamPlayer -func _process(_delta): +func _process(_delta : float) -> void: var stream_texture := _splash_video.get_video_texture() if stream_texture != null and not stream_texture.get_image().is_invisible(): _splash_image.hide() _splash_finish.show() set_process(false) -func _input(event): +func _input(event : InputEvent) -> void: if (event is InputEventKey\ or event is InputEventMouse\ or event is InputEventScreenTouch\ @@ -22,7 +22,7 @@ func _input(event): _on_splash_startup_finished() accept_event() -func _on_splash_startup_finished(): +func _on_splash_startup_finished() -> void: set_process_input(false) splash_end.emit() var tween := create_tween() |