extends Control ## Full-screen host for the AvatarCustomizationUI. ## ## The UI itself (scripts/avatar/avatar_customization_ui.gd) builds its own ## layout programmatically and emits `closed` when the player backs out; this ## thin wrapper is what makes it a navigable scene reachable from the main menu. const AvatarCustomizationUI := preload("res://scripts/avatar/avatar_customization_ui.gd") func _ready() -> void: var ui := AvatarCustomizationUI.new() ui.name = "AvatarCustomizationUI" ui.set_anchors_preset(Control.PRESET_FULL_RECT) add_child(ui) ui.closed.connect(_on_closed) func _on_closed() -> void: get_tree().change_scene_to_file("res://scenes/main_menu.tscn")