bricasse/screens/start_screen.gd

29 lines
705 B
GDScript3

extends Node
signal next_screen(screen_name)
# Declare member variables here.
var comment_hidden = false
# Called when the node enters the scene tree for the first time.
func _ready():
pass
func init():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
if Input.is_action_just_pressed('ui_accept'):
emit_signal("next_screen", "select")
elif Input.is_action_just_pressed("ui_menu"):
get_tree().notification(MainLoop.NOTIFICATION_WM_QUIT_REQUEST)
func _on_Timer_timeout():
if comment_hidden:
$Comment.show()
comment_hidden = false
else:
$Comment.hide()
comment_hidden = true