mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-09-04 17:25:55 -04:00
start tutorial after onboarding
This commit is contained in:
parent
9d2b245101
commit
ce0e27c6c5
3 changed files with 10 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
[gd_scene load_steps=19 format=3 uid="uid://b5tbn17l1pfs1"]
|
[gd_scene load_steps=20 format=3 uid="uid://b5tbn17l1pfs1"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/ui/onboarding/onboarding.gd" id="1_2xh2a"]
|
[ext_resource type="Script" path="res://scripts/ui/onboarding/onboarding.gd" id="1_2xh2a"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/onboarding/carousel.gd" id="2_uhwdh"]
|
[ext_resource type="Script" path="res://scripts/ui/onboarding/carousel.gd" id="2_uhwdh"]
|
||||||
[ext_resource type="Shader" uid="uid://dd1axtdlit6no" path="res://shaders/vignette_blur.tres" id="2_vhqmk"]
|
[ext_resource type="Shader" uid="uid://dd1axtdlit6no" path="res://shaders/vignette_blur.tres" id="2_vhqmk"]
|
||||||
[ext_resource type="PackedScene" uid="uid://pbsmrx55rb5g" path="res://scenes/components/onboarding/board.tscn" id="3_04ofy"]
|
[ext_resource type="PackedScene" uid="uid://pbsmrx55rb5g" path="res://scenes/components/onboarding/board.tscn" id="3_04ofy"]
|
||||||
[ext_resource type="Resource" uid="uid://crjhix0osmtnf" path="res://resources/ui_events.res" id="3_jta5g"]
|
[ext_resource type="Resource" uid="uid://crjhix0osmtnf" path="res://resources/ui_events.res" id="3_jta5g"]
|
||||||
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="3_qy3pl"]
|
||||||
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="4_bi8o3"]
|
[ext_resource type="FontFile" uid="uid://do40418waa8w3" path="res://assets/fonts/Inter-Regular.otf" id="4_bi8o3"]
|
||||||
[ext_resource type="Texture2D" uid="uid://jfikupu1mgfb" path="res://assets/textures/onboarding/2_friends.png" id="6_60kxa"]
|
[ext_resource type="Texture2D" uid="uid://jfikupu1mgfb" path="res://assets/textures/onboarding/2_friends.png" id="6_60kxa"]
|
||||||
[ext_resource type="Script" path="res://scripts/ui/onboarding/close_button.gd" id="6_lcfru"]
|
[ext_resource type="Script" path="res://scripts/ui/onboarding/close_button.gd" id="6_lcfru"]
|
||||||
|
@ -47,8 +48,10 @@ grow_vertical = 2
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
script = ExtResource("1_2xh2a")
|
script = ExtResource("1_2xh2a")
|
||||||
ui_events = ExtResource("3_jta5g")
|
ui_events = ExtResource("3_jta5g")
|
||||||
|
gate_events = ExtResource("3_qy3pl")
|
||||||
root = NodePath("Root")
|
root = NodePath("Root")
|
||||||
close = NodePath("Root/Carousel/Line/Close")
|
close = NodePath("Root/Carousel/Line/Close")
|
||||||
|
tutorial_url = "https://thegates.io/worlds/tutorial.gate"
|
||||||
|
|
||||||
[node name="Root" type="Control" parent="."]
|
[node name="Root" type="Control" parent="."]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
|
|
|
@ -40,7 +40,7 @@ func update_special_effects() -> void:
|
||||||
jump_animation.stop_jump_animation()
|
jump_animation.stop_jump_animation()
|
||||||
return
|
return
|
||||||
|
|
||||||
if is_special:
|
if is_special and gate_events.current_gate_url.is_empty():
|
||||||
special_effect.visible = true
|
special_effect.visible = true
|
||||||
jump_animation.start_jump_animation()
|
jump_animation.start_jump_animation()
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -8,11 +8,15 @@ const SHOWN = Color(1, 1, 1, 1)
|
||||||
const HIDDEN = Color(1, 1, 1, 0)
|
const HIDDEN = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
@export var ui_events: UiEvents
|
@export var ui_events: UiEvents
|
||||||
|
@export var gate_events: GateEvents
|
||||||
|
|
||||||
@export var root: Control
|
@export var root: Control
|
||||||
@export var close: Button
|
@export var close: Button
|
||||||
@export var fade_in: float = 0.2
|
@export var fade_in: float = 0.2
|
||||||
@export var fade_out: float = 0.2
|
@export var fade_out: float = 0.2
|
||||||
|
|
||||||
|
@export var tutorial_url: String
|
||||||
|
|
||||||
@export_group("Debug")
|
@export_group("Debug")
|
||||||
@export var show_always: bool
|
@export var show_always: bool
|
||||||
|
|
||||||
|
@ -64,4 +68,5 @@ func hide_onboarding() -> void:
|
||||||
DataSaver.set_value(SECTION, KEY, true)
|
DataSaver.set_value(SECTION, KEY, true)
|
||||||
DataSaver.save_data()
|
DataSaver.save_data()
|
||||||
|
|
||||||
|
gate_events.open_gate_emit(tutorial_url)
|
||||||
ui_events.onboarding_finished_emit()
|
ui_events.onboarding_finished_emit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue