RetroDECK/tools/configurator/scripts/Rekku.gd
2024-09-10 15:33:58 +01:00

16 lines
399 B
GDScript

extends Control
var rekku_state = false
func _input(event):
if event.is_action_released("rekku_hide"):
#self.visible = !self.visible
if rekku_state == false:
self.visible = true
rekku_state = true
%SplitContainer.split_offset=-300
elif event.is_action_released("rekku_hide") and rekku_state == true:
rekku_state = false
self.visible = false
%SplitContainer.split_offset=0