2024-03-17 18:05:45 +02:00
|
|
|
extends Node3D
|
|
|
|
|
|
|
|
@onready var getting_started_button = $GettingStartedButton
|
|
|
|
@onready var close_button = $CloseButton
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
if Store.settings.is_loaded() == false:
|
|
|
|
await Store.settings.on_loaded
|
|
|
|
|
2024-04-09 18:46:59 +03:00
|
|
|
if (Store.settings.state.url != ""&&Store.settings.state.url != null)||Store.settings.state.onboarding_complete:
|
2024-03-17 18:05:45 +02:00
|
|
|
close()
|
|
|
|
return
|
|
|
|
|
|
|
|
getting_started_button.on_button_down.connect(func():
|
|
|
|
OS.shell_open("https://docs.immersive-home.org/")
|
|
|
|
)
|
|
|
|
|
|
|
|
close_button.on_button_down.connect(func():
|
|
|
|
close()
|
|
|
|
)
|
|
|
|
|
|
|
|
func close():
|
2024-04-09 18:46:59 +03:00
|
|
|
Store.settings.state.onboarding_complete = true
|
2024-03-17 18:05:45 +02:00
|
|
|
Store.settings.save_local()
|
|
|
|
queue_free()
|