accessibility menu: added function for screenreader toggle
This commit is contained in:
parent
56ab26d1d6
commit
28f0a04995
|
|
@ -50,6 +50,10 @@ func previous():
|
|||
focus_list[current_tab].grab_focus()
|
||||
else:
|
||||
current_tab -= 1
|
||||
|
||||
func _on_screenreader_toggled(button_pressed):
|
||||
State.screen_reader = button_pressed # this is how you reach the global state
|
||||
print_debug(State.screen_reader)
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_v567h"]
|
||||
|
|
@ -524,6 +528,7 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
text = "I stream this game, please show content notes."
|
||||
|
||||
[connection signal="toggled" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/Screenreader" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="_on_screenreader_toggled"]
|
||||
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/Next" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="next"]
|
||||
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/previous" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="previous"]
|
||||
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Audio Settings/navbuttons/Next" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="next"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue