RetroDECK/tools/configurator/helper_text.gd
monkeyx-net 0308896940 Rekku is back
On branch cooker
 Changes to be committed:
	modified:   helper_text.gd
	modified:   main.tscn
	modified:   res/pixel_ui_theme/RetroDECKTheme.tres
	modified:   retrodeck.json
2024-08-13 15:41:54 +01:00

15 lines
559 B
GDScript

extends RichTextLabel
@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("description"):
helper_text_node.text = selected_element.get_meta("description")
else:
#helper_text_node.text = "Hey, there's no description"
helper_text_node.text = "That stupid Monkey almost deleted me.\n\n\nPlease save me!!!!!!!!"