Audio system and rich text
This commit is contained in:
parent
a6f817efbc
commit
68cafff083
161 changed files with 1605 additions and 255 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://dpxxjfd5lv5sv"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://dpxxjfd5lv5sv"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://e8n88g31w7x7" path="res://resources/themes/ChooseYourSeeds.tres" id="1_bfo8i"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="2_so2bw"]
|
||||
|
|
@ -7,6 +7,8 @@
|
|||
[ext_resource type="Script" uid="uid://eq3ecja30mlj" path="res://scripts/components/gui/choose_your_seeds/GridLoader.cs" id="4_i7sou"]
|
||||
[ext_resource type="PackedScene" uid="uid://10b1egek6upx" path="res://scenes/gui/level_run_button.tscn" id="5_n80ic"]
|
||||
[ext_resource type="Script" uid="uid://d26waisd3v488" path="res://scripts/components/gui/choose_your_seeds/LevelRunButton.cs" id="7_k6b6g"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="8_v7xff"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="9_v7xff"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0rps3"]
|
||||
resource_name = "Hide"
|
||||
|
|
@ -104,9 +106,6 @@ viewport_path = NodePath("Panel/MarginContainer/VBoxContainer/HBoxContainer/Fram
|
|||
font_size = 24
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ln6r7"]
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="ChooseYourSeeds" type="Control"]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
|
|
@ -197,11 +196,11 @@ layout_mode = 2
|
|||
label_settings = SubResource("LabelSettings_fmc0y")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Description" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"]
|
||||
[node name="Description" type="RichTextLabel" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "
|
||||
"
|
||||
label_settings = SubResource("LabelSettings_ln6r7")
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
fit_content = true
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
|
@ -222,3 +221,11 @@ offset_right = -16.16
|
|||
offset_bottom = -16.016
|
||||
script = ExtResource("7_k6b6g")
|
||||
_player = NodePath("../../AnimationPlayer")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="."]
|
||||
script = ExtResource("8_v7xff")
|
||||
audioStream = ExtResource("9_v7xff")
|
||||
channel = "button"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[connection signal="pressed" from="Panel/LevelRunButton" to="ChannelPlayer" method="Play"]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://fm471x22n8kr"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://fm471x22n8kr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="1_loim0"]
|
||||
[ext_resource type="Script" uid="uid://gvwhpjoame6m" path="res://scripts/components/gui/PauseMenu.cs" id="2_4vp8g"]
|
||||
[ext_resource type="AudioStream" uid="uid://co33ajpc1a1qm" path="res://assets/audio/zo.mp3" id="3_e3p60"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="3_4vp8g"]
|
||||
[ext_resource type="Script" uid="uid://ciccaxqo70s13" path="res://scripts/audio/AudioSlider.cs" id="3_e3p60"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="4_e3p60"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tifvb"]
|
||||
atlas = ExtResource("1_loim0")
|
||||
|
|
@ -32,9 +34,9 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
mouse_filter = 0
|
||||
theme_override_constants/margin_left = 150
|
||||
theme_override_constants/margin_top = 60
|
||||
theme_override_constants/margin_top = 40
|
||||
theme_override_constants/margin_right = 150
|
||||
theme_override_constants/margin_bottom = 100
|
||||
theme_override_constants/margin_bottom = 60
|
||||
|
||||
[node name="Pause" type="NinePatchRect" parent="."]
|
||||
process_mode = 3
|
||||
|
|
@ -70,6 +72,37 @@ label_settings = SubResource("LabelSettings_or0he")
|
|||
horizontal_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="SFXVolume" type="HBoxContainer" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Pause/MarginContainer/Buttons/SFXVolume"]
|
||||
layout_mode = 2
|
||||
text = "SFX"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Pause/MarginContainer/Buttons/SFXVolume"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
script = ExtResource("3_e3p60")
|
||||
|
||||
[node name="MusicVolume" type="HBoxContainer" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Pause/MarginContainer/Buttons/MusicVolume"]
|
||||
layout_mode = 2
|
||||
text = "Music"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Pause/MarginContainer/Buttons/MusicVolume"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
script = ExtResource("3_e3p60")
|
||||
affects = 1
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
icon = SubResource("AtlasTexture_4k24j")
|
||||
|
|
@ -85,9 +118,15 @@ layout_mode = 2
|
|||
icon = SubResource("AtlasTexture_y3stn")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="Audio" type="AudioStreamPlayer" parent="Pause"]
|
||||
stream = ExtResource("3_e3p60")
|
||||
[node name="ButtonPlayer" type="Node" parent="Pause/MarginContainer/Buttons"]
|
||||
script = ExtResource("3_4vp8g")
|
||||
audioStream = ExtResource("4_e3p60")
|
||||
channel = "button"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ContinueButton" to="Pause" method="Continue"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ContinueButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/RestartButton" to="Pause" method="Restart"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/RestartButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ExitButton" to="Pause" method="Exit"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ExitButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ky35veswaytr" path="res://scenes/gui/sun_counter.tscn" id="1_le3od"]
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://resources/themes/GameStyle.tres" id="1_xf6ra"]
|
||||
|
|
@ -8,6 +8,9 @@
|
|||
[ext_resource type="PackedScene" uid="uid://cgm7td1hgs0rr" path="res://scenes/gui/fast_forward_button.tscn" id="4_66uy4"]
|
||||
[ext_resource type="PackedScene" uid="uid://u5l3jd00s8vd" path="res://scenes/gui/pause_button.tscn" id="5_jyq78"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4lx8adw6rbqs" path="res://scenes/particles/dirt_explosion.tscn" id="6_5jtun"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="7_5kkbf"]
|
||||
[ext_resource type="AudioStream" uid="uid://dfbg6dxg4actb" path="res://assets/audio/sfx/shovel.mp3" id="8_xq48m"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckja8ym50y0d4" path="res://assets/audio/sfx/pause.mp3" id="11_cti1a"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ps2iw"]
|
||||
texture = ExtResource("2_eg3hk")
|
||||
|
|
@ -115,13 +118,30 @@ size_flags_horizontal = 1
|
|||
size_flags_vertical = 4
|
||||
particles = ExtResource("6_5jtun")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/ShovelButton"]
|
||||
script = ExtResource("7_5kkbf")
|
||||
audioStream = ExtResource("8_xq48m")
|
||||
channel = "shovel"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="FastForwardButton" parent="MarginContainer/Control/Hotbar" node_paths=PackedStringArray("flashAnimator") instance=ExtResource("4_66uy4")]
|
||||
layout_mode = 2
|
||||
flashAnimator = NodePath("../../../../FastForwardEffect/AnimationPlayer")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/FastForwardButton"]
|
||||
script = ExtResource("7_5kkbf")
|
||||
channel = "fastfw"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="PauseButton" parent="MarginContainer/Control/Hotbar" instance=ExtResource("5_jyq78")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/PauseButton"]
|
||||
script = ExtResource("7_5kkbf")
|
||||
audioStream = ExtResource("11_cti1a")
|
||||
channel = "pause"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="FastForwardEffect" type="ColorRect" parent="."]
|
||||
z_index = 1
|
||||
layout_mode = 1
|
||||
|
|
@ -138,3 +158,6 @@ metadata/_edit_lock_ = true
|
|||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_myv2j")
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/Control/Hotbar/ShovelButton" to="MarginContainer/Control/Hotbar/ShovelButton/ChannelPlayer" method="Play"]
|
||||
[connection signal="pressed" from="MarginContainer/Control/Hotbar/PauseButton" to="MarginContainer/Control/Hotbar/PauseButton/ChannelPlayer" method="Play"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue