19 lines
467 B
GDScript
19 lines
467 B
GDScript
class_name MainMenu extends Node3D
|
|
|
|
@onready var grabber := (
|
|
$Backdrop3D/SameSizedSubViewport/UIAutoloadGrabber
|
|
) as UIAutoloadGrabber
|
|
|
|
func _ready() -> void:
|
|
_run.call_deferred()
|
|
|
|
func _run() -> void:
|
|
await grabber.acquire()
|
|
FX.play_bgm(load("res://audio/menu.ogg"))
|
|
var params: LevelEntranceParameters = await UI.Call(
|
|
load("res://ui/MainMenu/TopLevel/MainMenu_TopLevel.tscn"),
|
|
{&'no_dismiss': true}
|
|
)
|
|
grabber.relinquish()
|
|
Storyboard.go_to_map(params)
|