mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 00:55:42 +00:00
33 lines
1.2 KiB
GDScript
33 lines
1.2 KiB
GDScript
extends Control
|
|
var split_max: int = 1280
|
|
var split_min: int = 925
|
|
var split_speed: float = 0.000001
|
|
|
|
func _input(event):
|
|
if event.is_action_released("rekku_hide"):
|
|
#self.visible = !self.visible
|
|
if class_functions.rekku_state == false:
|
|
self.visible = true
|
|
class_functions.rekku_state = true
|
|
for n in range (split_max, split_min,-5):
|
|
await class_functions.wait(split_speed)
|
|
%SplitContainer.split_offset=n
|
|
%pop_rtl.visible = false
|
|
%TabContainer.set_tab_title(0, "GLOBALS")
|
|
%TabContainer.set_tab_title(1, "SYSTEM")
|
|
%TabContainer.set_tab_title(2, "TOOLS")
|
|
%TabContainer.set_tab_title(3, "SETTINGS")
|
|
%TabContainer.set_tab_title(4, "ABOUT")
|
|
elif event.is_action_released("rekku_hide") and class_functions.rekku_state == true:
|
|
%TabContainer.set_tab_title(0, " GLOBALS ")
|
|
%TabContainer.set_tab_title(1, " SYSTEM ")
|
|
%TabContainer.set_tab_title(2, " TOOLS ")
|
|
%TabContainer.set_tab_title(3, " SETTINGS ")
|
|
%TabContainer.set_tab_title(4, " ABOUT ")
|
|
%pop_rtl.visible = false
|
|
for n in range (split_min, split_max,5):
|
|
await class_functions.wait(split_speed)
|
|
%SplitContainer.split_offset=n
|
|
class_functions.rekku_state = false
|
|
self.visible = false
|