mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 00:55:42 +00:00
14 lines
461 B
GDScript3
14 lines
461 B
GDScript3
|
extends Label
|
||
|
|
||
|
@onready var helper_text_node = self
|
||
|
|
||
|
func _ready():
|
||
|
# Connect the signal that gets fired on every focus change
|
||
|
get_viewport().connect("gui_focus_changed", _on_focus_changed)
|
||
|
|
||
|
func _on_focus_changed(selected_element:Control) -> void:
|
||
|
if selected_element != null and selected_element.has_meta("rekku"):
|
||
|
#helper_text_node.text = selected_element.get_meta("rekku")
|
||
|
%pop_rtl.visible = true
|
||
|
%pop_rtl.text = selected_element.get_meta("rekku")
|