tochie-facade/scenes/shell/View.gd

22 lines
418 B
GDScript3
Raw Permalink Normal View History

2023-09-25 07:57:50 +00:00
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