mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-10 20:12:10 +01:00
20 lines
306 B
GDScript3
20 lines
306 B
GDScript3
|
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"
|
||
|
|
||
|
|
||
|
|
||
|
|