inventory soort van
This commit is contained in:
@@ -28,6 +28,18 @@ func message(msg: String, title: String = ""):
|
||||
|
||||
func _process(delta):
|
||||
timer += delta
|
||||
#$"Control/HFlowContainer/SubViewportContainer/SubViewport/Camera3D/Item Position".get_child(0).rotation.y += delta
|
||||
#$Control/SubViewportContainer/SubViewport/Camera3D/sleutel.rotation.y += delta
|
||||
|
||||
func add_item(mesh: Node):
|
||||
var subviewport = preload("res://GUI-item.tscn").instantiate()
|
||||
$Control/HFlowContainer.add_child(subviewport)
|
||||
subviewport.add_item(mesh)
|
||||
print_tree()
|
||||
|
||||
func clear_items():
|
||||
for child in $Control/HFlowContainer.get_children():
|
||||
child.queue_free()
|
||||
|
||||
func _on_close_pressed(node):
|
||||
node.get_parent().queue_free()
|
||||
|
||||
Reference in New Issue
Block a user