mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 22:15:39 +00:00
16 lines
399 B
GDScript
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
|