analytics: first_frame event, floats

This commit is contained in:
Nordup 2024-10-26 00:32:41 +04:00
parent 74e165b174
commit 6528dffe57
8 changed files with 43 additions and 29 deletions

View file

@ -13,7 +13,7 @@ class_name SplashScreen
func _ready():
gate_events.gate_info_loaded.connect(show_thumbnail)
gate_events.gate_entered.connect(show_splash_screen)
command_events.first_frame_drawn.connect(first_frame_drawn)
gate_events.first_frame.connect(func(): hide())
# Change size
show_splash_screen()
@ -36,10 +36,6 @@ func show_splash_screen() -> void:
self.texture = ImageTexture.create_from_image(image)
func first_frame_drawn() -> void:
hide()
func resize_and_convert(image: Image, format: Image.Format) -> Image:
image.resize(width, height)
image.convert(format)