NAT Godot make playground tabs and entry panels

This commit is contained in:
2023-02-13 06:23:43 -07:00
parent 9c39c0cc13
commit c8d9fa81b4
8 changed files with 126 additions and 38 deletions

View File

@@ -16,13 +16,13 @@ func _ready():
# pass
func _on_EntryContainer_mouse_entered():
func _on_EntryPanel_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():
func _on_EntryPanel_mouse_exited():
if get_parent().current_focus == self:
get_parent().current_focus = null
get_parent().current_focus_z = NAN