Implement tutorial slideshow
|
@ -60,8 +60,8 @@ needs_motion_vectors = false
|
||||||
needs_normal_roughness = false
|
needs_normal_roughness = false
|
||||||
script = ExtResource("1_vlji8")
|
script = ExtResource("1_vlji8")
|
||||||
main_menu = false
|
main_menu = false
|
||||||
update_speed = 0.023
|
update_speed = 0.05
|
||||||
cook_time = 1
|
cook_time = 5
|
||||||
metadata/_custom_type_script = "uid://drfxlavovcgta"
|
metadata/_custom_type_script = "uid://drfxlavovcgta"
|
||||||
|
|
||||||
[sub_resource type="CompositorEffect" id="CompositorEffect_h2yge"]
|
[sub_resource type="CompositorEffect" id="CompositorEffect_h2yge"]
|
||||||
|
@ -81,7 +81,7 @@ compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_ig7t
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uop3n"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uop3n"]
|
||||||
bg_color = Color(0.6, 0.6, 0.6, 0)
|
bg_color = Color(0.6, 0.6, 0.6, 0)
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_uq7jr"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_g0ep4"]
|
||||||
texture = ExtResource("6_uop3n")
|
texture = ExtResource("6_uop3n")
|
||||||
margins = Vector2i(4, 2)
|
margins = Vector2i(4, 2)
|
||||||
separation = Vector2i(4, 0)
|
separation = Vector2i(4, 0)
|
||||||
|
@ -92,7 +92,7 @@ texture_region_size = Vector2i(26, 26)
|
||||||
[sub_resource type="TileSet" id="TileSet_ltoj3"]
|
[sub_resource type="TileSet" id="TileSet_ltoj3"]
|
||||||
tile_size = Vector2i(26, 26)
|
tile_size = Vector2i(26, 26)
|
||||||
uv_clipping = true
|
uv_clipping = true
|
||||||
sources/1 = SubResource("TileSetAtlasSource_uq7jr")
|
sources/1 = SubResource("TileSetAtlasSource_g0ep4")
|
||||||
|
|
||||||
[sub_resource type="SystemFont" id="SystemFont_ltoj3"]
|
[sub_resource type="SystemFont" id="SystemFont_ltoj3"]
|
||||||
font_names = PackedStringArray("rainyhearts")
|
font_names = PackedStringArray("rainyhearts")
|
||||||
|
|
|
@ -76,6 +76,7 @@ offset_bottom = 581.0
|
||||||
scale = Vector2(16.869, 6.00736)
|
scale = Vector2(16.869, 6.00736)
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
script = ExtResource("2_xkmpe")
|
script = ExtResource("2_xkmpe")
|
||||||
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="Tutorial Button" type="Panel" parent="UI"]
|
[node name="Tutorial Button" type="Panel" parent="UI"]
|
||||||
z_index = 1
|
z_index = 1
|
||||||
|
@ -87,6 +88,7 @@ offset_bottom = 740.0
|
||||||
scale = Vector2(16.869, 6.00736)
|
scale = Vector2(16.869, 6.00736)
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
script = ExtResource("2_shbfh")
|
script = ExtResource("2_shbfh")
|
||||||
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
|
@ -101,6 +103,7 @@ offset_bottom = -665.995
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CanvasLayer3" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer3" type="CanvasLayer" parent="."]
|
||||||
layer = -1
|
layer = -1
|
||||||
|
@ -120,6 +123,7 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
scale = Vector2(4, 4)
|
scale = Vector2(4, 4)
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CanvasLayer4" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer4" type="CanvasLayer" parent="."]
|
||||||
layer = -1
|
layer = -1
|
||||||
|
@ -140,6 +144,7 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
scale = Vector2(4, 4)
|
scale = Vector2(4, 4)
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
|
@ -151,6 +156,7 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
stream = ExtResource("5_6qsvb")
|
stream = ExtResource("5_6qsvb")
|
||||||
|
|
4
Assets/Scenes/next_button.gd
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
extends AcerolaPanel
|
||||||
|
|
||||||
|
func on_pressed() -> void:
|
||||||
|
get_parent().get_node("/root/Node3D/Slides").next_slide()
|
1
Assets/Scenes/next_button.gd.uid
Normal file
|
@ -0,0 +1 @@
|
||||||
|
uid://vqe37s4t7tyf
|
4
Assets/Scenes/previous_button.gd
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
extends AcerolaPanel
|
||||||
|
|
||||||
|
func on_pressed() -> void:
|
||||||
|
get_parent().get_node("/root/Node3D/Slides").previous_slide()
|
1
Assets/Scenes/previous_button.gd.uid
Normal file
|
@ -0,0 +1 @@
|
||||||
|
uid://cglvstu26dupc
|
30
Assets/Scenes/slideshow.gd
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
var slide_index = 0
|
||||||
|
|
||||||
|
var slides = []
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
slides = get_children()
|
||||||
|
|
||||||
|
slides[slide_index].show()
|
||||||
|
|
||||||
|
|
||||||
|
func previous_slide() -> void:
|
||||||
|
if slide_index == 0: return
|
||||||
|
|
||||||
|
slides[slide_index].hide()
|
||||||
|
|
||||||
|
slide_index -= 1
|
||||||
|
|
||||||
|
slides[slide_index].show()
|
||||||
|
|
||||||
|
|
||||||
|
func next_slide() -> void:
|
||||||
|
if slide_index == (slides.size() - 1): return
|
||||||
|
|
||||||
|
slides[slide_index].hide()
|
||||||
|
|
||||||
|
slide_index += 1
|
||||||
|
|
||||||
|
slides[slide_index].show()
|
1
Assets/Scenes/slideshow.gd.uid
Normal file
|
@ -0,0 +1 @@
|
||||||
|
uid://bv7ngik6tjsjc
|
1154
Assets/Scenes/tutorial.tscn
Normal file
BIN
Assets/Textures/Tutorial Slides/slide 1.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 2.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 3.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 4.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 5.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 6.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 7.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
Assets/Textures/Tutorial Slides/slide 8.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
Assets/Textures/UI/left slide button.png
Normal file
After Width: | Height: | Size: 718 B |