RetroDECK/tools/configurator/scripts/controller_guide.gd

14 lines
440 B
GDScript3
Raw Normal View History

2024-08-29 16:37:17 +00:00
extends PanelContainer
func _process(delta):
# TODO hack. Use state machine?
if %action_gridcontainer.visible == true:
if Input.is_action_pressed("back_button"):
%action_gridcontainer.visible = false
2024-09-05 15:38:42 +00:00
%retroarch_button.grab_focus()
2024-08-29 16:37:17 +00:00
for i in range(%system_gridcontainer.get_child_count()):
var child = %system_gridcontainer.get_child(i)
if child is Button:
child.visible=true
child.toggle_mode = false