extends VBoxContainer const NotesEditor := preload("res://scripts/ui/notes_editor.gd") var main var notes_editor: VBoxContainer func _ready() -> void: size_flags_horizontal = Control.SIZE_EXPAND_FILL size_flags_vertical = Control.SIZE_EXPAND_FILL add_theme_constant_override("separation", 16) notes_editor = NotesEditor.new() add_child(notes_editor) func on_show(_payload: Variant = null) -> void: notes_editor.activate() func on_hide() -> void: get_node("/root/NotesService").flush()