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,28 @@
extends PanelContainer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var z = 0
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_EntryContainer_mouse_entered():
var current_focus_z = get_parent().current_focus_z
if is_nan(current_focus_z) or current_focus_z <= self.z:
get_parent().current_focus = self
get_parent().current_focus_z = self.z
func _on_EntryContainer_mouse_exited():
if get_parent().current_focus == self:
get_parent().current_focus = null
get_parent().current_focus_z = NAN