mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 17:15:41 +00:00
Back to metadata description
This commit is contained in:
parent
95c6f73adc
commit
f0b3b2ccd8
|
@ -7,7 +7,7 @@ func _ready():
|
||||||
get_viewport().connect("gui_focus_changed", _on_focus_changed)
|
get_viewport().connect("gui_focus_changed", _on_focus_changed)
|
||||||
|
|
||||||
func _on_focus_changed(selected_element:Control) -> void:
|
func _on_focus_changed(selected_element:Control) -> void:
|
||||||
if selected_element != null and selected_element.get_tooltip():
|
if selected_element != null and selected_element.has_meta("description"):
|
||||||
helper_text_node.text = selected_element.tooltip_text
|
helper_text_node.text = selected_element.get_meta("description")
|
||||||
else:
|
else:
|
||||||
helper_text_node.text = "Hey, there's no description"
|
helper_text_node.text = "Hey, there's no description"
|
||||||
|
|
|
@ -138,7 +138,6 @@ columns = 2
|
||||||
|
|
||||||
[node name="resume" type="CheckButton" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="resume" type="CheckButton" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
tooltip_text = "This is a test tooltip set to this element"
|
|
||||||
theme_override_constants/h_separation = 128
|
theme_override_constants/h_separation = 128
|
||||||
button_pressed = true
|
button_pressed = true
|
||||||
text = "Quick Resume"
|
text = "Quick Resume"
|
||||||
|
@ -150,11 +149,9 @@ text = "Advanced"
|
||||||
|
|
||||||
[node name="rewind" type="CheckButton" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="rewind" type="CheckButton" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
tooltip_text = "This is another, very long and convoluted, tooltip, that I put too much commas in to make in LONGER and more SOPHISTICATED. And I did it twice!!!
|
|
||||||
This is another, very long and convoluted, tooltip, that I put too much commas in to make in LONGER and more SOPHISTICATED."
|
|
||||||
theme_override_constants/h_separation = 256
|
theme_override_constants/h_separation = 256
|
||||||
text = "Rewind"
|
text = "Rewind"
|
||||||
metadata/description = "This is another description. Very long text anyone? Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
metadata/description = "This is another, very long and convoluted, description, that I put too much commas in to make in LONGER and more SOPHISTICATED. And I did it twice!!!This is another, very long and convoluted, description, that I put too much commas in to make in LONGER and more SOPHISTICATED."
|
||||||
|
|
||||||
[node name="Button2" type="Button" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="Button2" type="Button" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue