diary/treecontrolling.gd

23 lines
520 B
GDScript3
Raw Normal View History

2022-03-30 15:05:15 +02:00
extends VBoxContainer
onready var tree1 = get_node("Tree")
onready var tree2 = get_node("Tree2")
func _ready():
var root = tree1.create_item()
root.set_text(0, "Priority Topics")
var item1 = tree1.create_item(root)
item1.set_text(0, "item1")
var item2 = tree1.create_item(root)
item2.set_text(0, "item2")
var root2 = tree2.create_item()
root2.set_text(0, "Daily Topics")
var item3 = tree2.create_item(root2)
item3.set_text(0, "item1")
var item4 = tree2.create_item(root2)
item4.set_text(0, "item2")