modification de la scène de cockpit et ajout de lien entre les scènes
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://d0n52psuns1vl"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ddf3fktoer2ng" path="res://stages/intro/scripts/intro.gd" id="1_2nxbv"]
|
||||
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="2_851lr"]
|
||||
|
||||
[node name="Intro" type="Node" unique_id=1801844904]
|
||||
script = ExtResource("1_2nxbv")
|
||||
@@ -9,23 +8,3 @@ game_scene_path = "uid://d28cp7a21kwou"
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1051527956]
|
||||
layer = 100
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer" unique_id=420682560]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_851lr")
|
||||
|
||||
[node name="PassDialogButton" type="Button" parent="CanvasLayer/MarginContainer" unique_id=242783899]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(1, 1, 1, 0.23529412)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
theme = ExtResource("2_851lr")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "PASS_THE_DIALOG"
|
||||
flat = true
|
||||
|
||||
@@ -9,22 +9,22 @@ var steps : Array[IntroStep]
|
||||
var pass_asked := false
|
||||
var tutorial_started := false
|
||||
|
||||
# Cheat Code
|
||||
func _input(_e):
|
||||
if (
|
||||
Input.is_action_pressed("drop")
|
||||
and Input.is_action_pressed("move_right")
|
||||
and Input.is_action_pressed("move_left")
|
||||
and Input.is_action_just_pressed("action")
|
||||
):
|
||||
pass_intro()
|
||||
|
||||
func _ready():
|
||||
%PassDialogButton.button_down.connect(_on_pass_dialog_button_pressed)
|
||||
Dialogic.start(WAKE_UP_DIALOG)
|
||||
|
||||
Dialogic.start(WAKE_UP_DIALOG)
|
||||
|
||||
await Dialogic.timeline_ended
|
||||
pass_intro()
|
||||
await Dialogic.timeline_ended
|
||||
pass_intro()
|
||||
|
||||
func pass_intro():
|
||||
Dialogic.end_timeline()
|
||||
SceneManager.change_to_scene_id('ASTRA')
|
||||
|
||||
|
||||
func _on_pass_dialog_button_pressed():
|
||||
if not pass_asked:
|
||||
pass_asked = true
|
||||
%PassDialogButton.text = tr('ARE_YOU_SURE')
|
||||
else:
|
||||
pass_intro()
|
||||
Dialogic.end_timeline()
|
||||
SceneManager.change_to_scene_id('ASTRA')
|
||||
|
||||
Reference in New Issue
Block a user