summaryrefslogtreecommitdiff
path: root/Tray.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Tray.gd')
-rw-r--r--Tray.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tray.gd b/Tray.gd
new file mode 100644
index 0000000..136cf55
--- /dev/null
+++ b/Tray.gd
@@ -0,0 +1,15 @@
+extends VBoxContainer
+
+
+var TrayItemScene = preload("res://TrayItem.tscn")
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ for i in range(5):
+ add_item()
+
+
+func add_item():
+ var tray_item = TrayItemScene.instantiate()
+ %Items.add_child(tray_item)