Début de travail sur Screening Desk

This commit is contained in:
Maurane
2025-06-08 18:20:09 +02:00
parent d4f9a165dc
commit 34dd05aa07
18 changed files with 323 additions and 89 deletions
+41
View File
@@ -0,0 +1,41 @@
extends CanvasLayer
@onready var next = $UI/SkipContainer/NextButton
signal next_request
signal next_slide
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
next.pressed.connect(_on_next_pressed)
self.connect("next_request", _on_next_request)
#Hiding everything at start
self.hide()
self.get_node("UI/UpperContainer").hide()
self.get_node("UI/SkipContainer").hide()
pass
#Requests next when the Next Button is pressed
func _on_next_pressed():
next_request.emit()
#Requests next when the space key is pressed
func _input(event):
if event is InputEventKey and event.is_action_released("ui_accept"):
next_request.emit()
#Makes sure fading transitions are done before approving a next request
func _on_next_request():
if Globals.is_transitioning == false:
next_slide.emit()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass