mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 05:17:25 -04:00
analytics: first_frame event, floats
This commit is contained in:
parent
74e165b174
commit
6528dffe57
8 changed files with 43 additions and 29 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue