NAT godot playground UI implementation skeleton

This commit is contained in:
2023-02-11 16:01:59 -07:00
parent 7e023d6167
commit 1fc1c98468
12 changed files with 137 additions and 11 deletions

View File

@@ -0,0 +1,27 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
var current_focus = null
var current_focus_z = NAN
func get_drag_data(position):
return current_focus
func can_drop_data(position, data):
return data != null
func drop_data(position, data):
data.rect_position = position
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass