mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-26 15:55:38 +00:00
Changed speech bubble to use tooltips instead
Also, temporary enabled tooltip hover
This commit is contained in:
parent
a7b8c2e1aa
commit
95c6f73adc
|
@ -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.has_meta("description"):
|
if selected_element != null and selected_element.get_tooltip():
|
||||||
helper_text_node.text = selected_element.get_meta("description")
|
helper_text_node.text = selected_element.tooltip_text
|
||||||
else:
|
else:
|
||||||
helper_text_node.text = "Hey, there's no description"
|
helper_text_node.text = "Hey, there's no description"
|
||||||
|
|
|
@ -138,6 +138,7 @@ 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"
|
||||||
|
@ -145,11 +146,12 @@ metadata/description = "This is a test description set to this element"
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="Button" type="Button" parent="MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
disabled = true
|
|
||||||
text = "Advanced"
|
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 description. Very long text anyone? Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
||||||
|
|
Loading…
Reference in a new issue