pandemonium_engine_minimal/test_ui.gd

20 lines
306 B
GDScript3
Raw Normal View History

2023-12-17 02:45:48 +01:00
extends SceneTree
func _initialize():
print("_initialize")
var pc = PanelContainer.new()
root.add_child(pc)
pc.set_anchors_and_margins_preset(Control.PRESET_WIDE)
var vb = VBoxContainer.new()
pc.add_child(vb)
var b = Button.new()
vb.add_child(b)
b.text = "test"