Gameplay Loop début
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
extends CanvasLayer
|
||||
|
||||
@onready var next = $UI/SkipContainer/NextButton
|
||||
@onready var confirmation_dialog = $UI/PanelContainer
|
||||
@onready var confirmation_text = $UI/PanelContainer/MarginContainer/VBoxContainer/ConfirmationText
|
||||
@onready var confirmation_yes = $UI/PanelContainer/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer/YesButton
|
||||
@onready var confirmation_no = $UI/PanelContainer/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer/NoButton
|
||||
|
||||
signal next_request
|
||||
signal next_slide
|
||||
@@ -8,11 +12,21 @@ signal next_slide
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
#Connecting signals
|
||||
next.pressed.connect(_on_next_pressed)
|
||||
self.connect("next_request", _on_next_request)
|
||||
|
||||
#Setting up the Confirmation Dialog
|
||||
confirmation_yes.text = ("YES")
|
||||
confirmation_no.text = ("NO")
|
||||
UI.confirmation_yes.pressed.connect(func(): UI.confirmation_dialog.hide())
|
||||
UI.confirmation_yes.pressed.connect(func(): TransitionScreen.mask.visible = false)
|
||||
UI.confirmation_no.pressed.connect(func(): UI.confirmation_dialog.hide())
|
||||
UI.confirmation_no.pressed.connect(func(): TransitionScreen.mask.visible = false)
|
||||
|
||||
#Hiding everything at start
|
||||
self.hide()
|
||||
#self.hide()
|
||||
confirmation_dialog.hide()
|
||||
self.get_node("UI/UpperContainer").hide()
|
||||
self.get_node("UI/SkipContainer").hide()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user