1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fixed issue where splash screen was appearing even though it should not

This commit is contained in:
OverloadedOrama 2020-02-19 01:13:29 +02:00
parent 02b91479ad
commit f0c0176080

View file

@ -172,12 +172,12 @@ func _ready() -> void:
if not Global.config_cache.has_section_key("preferences", "startup"): if not Global.config_cache.has_section_key("preferences", "startup"):
Global.config_cache.set_value("preferences", "startup", true) Global.config_cache.set_value("preferences", "startup", true)
if not Global.config_cache.get_value("preferences", "startup"): if Global.config_cache.get_value("preferences", "startup"):
$SplashDialog.hide() # Wait for the window to adjust itself, so the popup is correctly centered
yield(get_tree().create_timer(0.01), "timeout")
# Wait for the window to adjust itself, so the popup is correctly centered $SplashDialog.popup_centered() # Splash screen
yield(get_tree().create_timer(0.01), "timeout") else:
$SplashDialog.popup_centered() # Splash screen Global.can_draw = true
func _input(event : InputEvent) -> void: func _input(event : InputEvent) -> void:
Global.left_cursor.position = get_global_mouse_position() + Vector2(-32, 32) Global.left_cursor.position = get_global_mouse_position() + Vector2(-32, 32)