tochie-facade/scenes/shell/View.gd
2023-09-25 12:57:50 +05:00

22 lines
418 B
GDScript

extends Control
enum {
STATE_DETACHED,
STATE_ATTACHED,
}
var _state := STATE_DETACHED
onready var n_Shell = Shell.get_shell(self)
export var title: String
export var closable: bool
func _ready() -> void:
$VBoxContainer/Bar/HBoxContainer/Title.text = title
var child = get_children()[-1]
remove_child(child)
$VBoxContainer/ScrollableConent.add_child(child)
rect_size = child.rect_size