diff options
Diffstat (limited to 'Tray.gd')
-rw-r--r-- | Tray.gd | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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) |