generated from krampus/template-godot4
Added bloops
Some checks failed
linting & formatting / build (push) Failing after 26s
itch.io publish action / build (linux64, x86_64) (push) Successful in 2m19s
itch.io publish action / build (osx, app) (push) Successful in 2m24s
itch.io publish action / build (win64, exe) (push) Successful in 2m30s
Some checks failed
linting & formatting / build (push) Failing after 26s
itch.io publish action / build (linux64, x86_64) (push) Successful in 2m19s
itch.io publish action / build (osx, app) (push) Successful in 2m24s
itch.io publish action / build (win64, exe) (push) Successful in 2m30s
This commit is contained in:
parent
52f082b1a2
commit
69314f2235
BIN
assets/sfx/ui/ui_bloop_v1.wav
(Stored with Git LFS)
Normal file
BIN
assets/sfx/ui/ui_bloop_v1.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
24
assets/sfx/ui/ui_bloop_v1.wav.import
Normal file
24
assets/sfx/ui/ui_bloop_v1.wav.import
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://duobdakanodbd"
|
||||||
|
path="res://.godot/imported/ui_bloop_v1.wav-02382f5069b97c9d0093fa2df8d67522.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/sfx/ui/ui_bloop_v1.wav"
|
||||||
|
dest_files=["res://.godot/imported/ui_bloop_v1.wav-02382f5069b97c9d0093fa2df8d67522.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
@ -6,3 +6,4 @@ class_name GlobalSFXManagerType extends Node
|
|||||||
@onready var forward: AudioStreamPlayer = %Forward
|
@onready var forward: AudioStreamPlayer = %Forward
|
||||||
@onready var back: AudioStreamPlayer = %Back
|
@onready var back: AudioStreamPlayer = %Back
|
||||||
@onready var bonk: AudioStreamPlayer = %Bonk
|
@onready var bonk: AudioStreamPlayer = %Bonk
|
||||||
|
@onready var bloop: AudioStreamPlayer = %Bloop
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
[gd_scene load_steps=6 format=3 uid="uid://dt27sg6y8luhe"]
|
[gd_scene load_steps=7 format=3 uid="uid://dt27sg6y8luhe"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bpaid8cfddrtp" path="res://src/game/global_sfx_manager/global_sfx_manager.gd" id="1_xjjma"]
|
[ext_resource type="Script" uid="uid://bpaid8cfddrtp" path="res://src/game/global_sfx_manager/global_sfx_manager.gd" id="1_xjjma"]
|
||||||
[ext_resource type="AudioStream" uid="uid://i47j5mxtgwro" path="res://assets/sfx/ui/ui_extra_accept_v0.wav" id="2_xjjma"]
|
[ext_resource type="AudioStream" uid="uid://i47j5mxtgwro" path="res://assets/sfx/ui/ui_extra_accept_v0.wav" id="2_xjjma"]
|
||||||
[ext_resource type="AudioStream" uid="uid://c27dwn4wx68cj" path="res://assets/sfx/ui/ui_cancel_v4.wav" id="3_xjjma"]
|
[ext_resource type="AudioStream" uid="uid://c27dwn4wx68cj" path="res://assets/sfx/ui/ui_cancel_v4.wav" id="3_xjjma"]
|
||||||
[ext_resource type="AudioStream" uid="uid://bxorrvuexipfs" path="res://assets/sfx/ui/ui_accept_v5.wav" id="3_xl3ms"]
|
[ext_resource type="AudioStream" uid="uid://bxorrvuexipfs" path="res://assets/sfx/ui/ui_accept_v5.wav" id="3_xl3ms"]
|
||||||
[ext_resource type="AudioStream" uid="uid://ddggq8bnksrv6" path="res://assets/sfx/ui/ui_bonk_v1.wav" id="4_ywyuo"]
|
[ext_resource type="AudioStream" uid="uid://ddggq8bnksrv6" path="res://assets/sfx/ui/ui_bonk_v1.wav" id="4_ywyuo"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://duobdakanodbd" path="res://assets/sfx/ui/ui_bloop_v1.wav" id="6_ywyuo"]
|
||||||
|
|
||||||
[node name="GlobalSFXManager" type="Node"]
|
[node name="GlobalSFXManager" type="Node"]
|
||||||
script = ExtResource("1_xjjma")
|
script = ExtResource("1_xjjma")
|
||||||
@ -40,3 +41,9 @@ stream = ExtResource("4_ywyuo")
|
|||||||
volume_db = -16.0
|
volume_db = -16.0
|
||||||
pitch_scale = 1.1
|
pitch_scale = 1.1
|
||||||
bus = &"SFX"
|
bus = &"SFX"
|
||||||
|
|
||||||
|
[node name="Bloop" type="AudioStreamPlayer" parent="."]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
stream = ExtResource("6_ywyuo")
|
||||||
|
volume_db = -20.0
|
||||||
|
bus = &"SFX"
|
||||||
|
@ -38,6 +38,10 @@ func _hide() -> void:
|
|||||||
menu_list.hide()
|
menu_list.hide()
|
||||||
|
|
||||||
|
|
||||||
|
func hover() -> void:
|
||||||
|
GlobalSFXManager.bloop.play()
|
||||||
|
|
||||||
|
|
||||||
func resume() -> void:
|
func resume() -> void:
|
||||||
GlobalSFXManager.back.play()
|
GlobalSFXManager.back.play()
|
||||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://byvjsvavbg5xe"]
|
[gd_scene load_steps=6 format=3 uid="uid://byvjsvavbg5xe"]
|
||||||
|
|
||||||
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_b4t8b"]
|
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_b4t8b"]
|
||||||
[ext_resource type="Script" uid="uid://cllx5glqld8wn" path="res://src/ui/menus/pause_menu/pause_menu.gd" id="1_rd0j2"]
|
[ext_resource type="Script" uid="uid://cllx5glqld8wn" path="res://src/ui/menus/pause_menu/pause_menu.gd" id="1_rd0j2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://d3eaqw2rdurct" path="res://src/ui/menus/settings_menu/settings_menu.tscn" id="3_dowgp"]
|
[ext_resource type="PackedScene" uid="uid://d3eaqw2rdurct" path="res://src/ui/menus/settings_menu/settings_menu.tscn" id="3_dowgp"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dofr2ebmvnwxf" path="res://src/ui/menus/debug_menu/debug_menu.tscn" id="4_1bm4j"]
|
[ext_resource type="PackedScene" uid="uid://dofr2ebmvnwxf" path="res://src/ui/menus/debug_menu/debug_menu.tscn" id="4_1bm4j"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="5_ls6ft"]
|
||||||
|
|
||||||
[node name="PauseMenu" type="Control"]
|
[node name="PauseMenu" type="Control"]
|
||||||
process_mode = 3
|
process_mode = 3
|
||||||
@ -72,22 +73,73 @@ alignment = 1
|
|||||||
|
|
||||||
[node name="ResumeButton" type="Button" parent="MenuList/VBoxContainer"]
|
[node name="ResumeButton" type="Button" parent="MenuList/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
focus_neighbor_bottom = NodePath("../SettingsButton")
|
||||||
|
focus_next = NodePath("../SettingsButton")
|
||||||
text = "PAUSE_RESUME"
|
text = "PAUSE_RESUME"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="MenuList/VBoxContainer/ResumeButton"]
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_left = -878.0
|
||||||
|
offset_top = -551.0
|
||||||
|
offset_right = -838.0
|
||||||
|
offset_bottom = -511.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="SettingsButton" type="Button" parent="MenuList/VBoxContainer"]
|
[node name="SettingsButton" type="Button" parent="MenuList/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
focus_neighbor_top = NodePath("../ResumeButton")
|
||||||
|
focus_neighbor_bottom = NodePath("../EndGameButton")
|
||||||
|
focus_next = NodePath("../EndGameButton")
|
||||||
|
focus_previous = NodePath("../ResumeButton")
|
||||||
text = "PAUSE_SETTINGS"
|
text = "PAUSE_SETTINGS"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="MenuList/VBoxContainer/SettingsButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_left = -878.0
|
||||||
|
offset_top = -551.0
|
||||||
|
offset_right = -838.0
|
||||||
|
offset_bottom = -511.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="EndGameButton" type="Button" parent="MenuList/VBoxContainer"]
|
[node name="EndGameButton" type="Button" parent="MenuList/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
focus_neighbor_top = NodePath("../SettingsButton")
|
||||||
|
focus_neighbor_bottom = NodePath("../QuitButton")
|
||||||
|
focus_next = NodePath("../QuitButton")
|
||||||
|
focus_previous = NodePath("../SettingsButton")
|
||||||
theme_type_variation = &"DangerButton"
|
theme_type_variation = &"DangerButton"
|
||||||
text = "PAUSE_END"
|
text = "PAUSE_END"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="MenuList/VBoxContainer/EndGameButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_left = -878.0
|
||||||
|
offset_top = -551.0
|
||||||
|
offset_right = -838.0
|
||||||
|
offset_bottom = -511.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="QuitButton" type="Button" parent="MenuList/VBoxContainer"]
|
[node name="QuitButton" type="Button" parent="MenuList/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
focus_neighbor_top = NodePath("../EndGameButton")
|
||||||
|
focus_previous = NodePath("../EndGameButton")
|
||||||
theme_type_variation = &"DangerButton"
|
theme_type_variation = &"DangerButton"
|
||||||
text = "PAUSE_QUIT"
|
text = "PAUSE_QUIT"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="MenuList/VBoxContainer/QuitButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_left = -878.0
|
||||||
|
offset_top = -551.0
|
||||||
|
offset_right = -838.0
|
||||||
|
offset_bottom = -511.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="DebugButton" type="Button" parent="MenuList/VBoxContainer"]
|
[node name="DebugButton" type="Button" parent="MenuList/VBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
@ -95,6 +147,16 @@ layout_mode = 2
|
|||||||
theme_override_colors/font_color = Color(0.14, 1, 0.355, 1)
|
theme_override_colors/font_color = Color(0.14, 1, 0.355, 1)
|
||||||
text = "PAUSE_DEBUG"
|
text = "PAUSE_DEBUG"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="MenuList/VBoxContainer/DebugButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_left = -878.0
|
||||||
|
offset_top = -551.0
|
||||||
|
offset_right = -838.0
|
||||||
|
offset_bottom = -511.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="SettingsContainer" type="MarginContainer" parent="."]
|
[node name="SettingsContainer" type="MarginContainer" parent="."]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
custom_minimum_size = Vector2(1000, 600)
|
custom_minimum_size = Vector2(1000, 600)
|
||||||
@ -168,12 +230,28 @@ layout_mode = 2
|
|||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
text = "UI_CANCEL"
|
text = "UI_CANCEL"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/CancelButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="ConfirmQuitButton" type="Button" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
[node name="ConfirmQuitButton" type="Button" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
theme_type_variation = &"DangerButton"
|
theme_type_variation = &"DangerButton"
|
||||||
text = "UI_QUIT"
|
text = "UI_QUIT"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/ConfirmQuitButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="EndGameConfirm" type="CenterContainer" parent="."]
|
[node name="EndGameConfirm" type="CenterContainer" parent="."]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
@ -213,12 +291,28 @@ layout_mode = 2
|
|||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
text = "UI_CANCEL"
|
text = "UI_CANCEL"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="EndGameConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/CancelButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="ConfirmEndGameButton" type="Button" parent="EndGameConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
[node name="ConfirmEndGameButton" type="Button" parent="EndGameConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
theme_type_variation = &"DangerButton"
|
theme_type_variation = &"DangerButton"
|
||||||
text = "UI_QUIT"
|
text = "UI_QUIT"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="EndGameConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/ConfirmEndGameButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("5_ls6ft")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[connection signal="pressed" from="MenuList/VBoxContainer/ResumeButton" to="." method="resume"]
|
[connection signal="pressed" from="MenuList/VBoxContainer/ResumeButton" to="." method="resume"]
|
||||||
[connection signal="pressed" from="MenuList/VBoxContainer/SettingsButton" to="." method="settings"]
|
[connection signal="pressed" from="MenuList/VBoxContainer/SettingsButton" to="." method="settings"]
|
||||||
[connection signal="pressed" from="MenuList/VBoxContainer/EndGameButton" to="." method="end_game"]
|
[connection signal="pressed" from="MenuList/VBoxContainer/EndGameButton" to="." method="end_game"]
|
||||||
|
@ -30,8 +30,7 @@ func _ready() -> void:
|
|||||||
# Set action label text
|
# Set action label text
|
||||||
var loc_action := tr(ACTION_KEY_FMT.format([key]))
|
var loc_action := tr(ACTION_KEY_FMT.format([key]))
|
||||||
# Fall back to just the key if no localization exists
|
# Fall back to just the key if no localization exists
|
||||||
@warning_ignore("incompatible_ternary")
|
@warning_ignore("incompatible_ternary") action.text = loc_action if loc_action else key
|
||||||
action.text = loc_action if loc_action else key
|
|
||||||
|
|
||||||
# Set the binding label
|
# Set the binding label
|
||||||
_set_label_from_binding()
|
_set_label_from_binding()
|
||||||
@ -83,11 +82,13 @@ func _input(event: InputEvent) -> void:
|
|||||||
|
|
||||||
|
|
||||||
func start_listening() -> void:
|
func start_listening() -> void:
|
||||||
|
GlobalSFXManager.forward.play()
|
||||||
button.text = LISTENING_TEXT
|
button.text = LISTENING_TEXT
|
||||||
listening = true
|
listening = true
|
||||||
|
|
||||||
|
|
||||||
func cancel_rebinding() -> void:
|
func cancel_rebinding() -> void:
|
||||||
|
GlobalSFXManager.back.play()
|
||||||
_set_label_from_binding()
|
_set_label_from_binding()
|
||||||
listening = false
|
listening = false
|
||||||
|
|
||||||
@ -100,6 +101,7 @@ func rebind(event: InputEvent) -> void:
|
|||||||
# Update label
|
# Update label
|
||||||
_set_label_from_binding()
|
_set_label_from_binding()
|
||||||
|
|
||||||
|
GlobalSFXManager.accept.play()
|
||||||
listening = false
|
listening = false
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
[gd_scene load_steps=3 format=3 uid="uid://dwvpddd7id1h"]
|
[gd_scene load_steps=4 format=3 uid="uid://dwvpddd7id1h"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://y0kwpyt3w5bt" path="res://src/ui/menus/settings_menu/control_binding/control_binding.gd" id="1_7mwhu"]
|
[ext_resource type="Script" uid="uid://y0kwpyt3w5bt" path="res://src/ui/menus/settings_menu/control_binding/control_binding.gd" id="1_7mwhu"]
|
||||||
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_82ajm"]
|
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_82ajm"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="3_pt7f5"]
|
||||||
|
|
||||||
[node name="ControlBinding" type="PanelContainer" groups=["ControlBindings"]]
|
[node name="ControlBinding" type="PanelContainer" groups=["ControlBindings"]]
|
||||||
theme = ExtResource("1_82ajm")
|
theme = ExtResource("1_82ajm")
|
||||||
theme_type_variation = &"CheckerContainerOdd"
|
theme_type_variation = &"CheckerContainerEven"
|
||||||
script = ExtResource("1_7mwhu")
|
script = ExtResource("1_7mwhu")
|
||||||
|
|
||||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||||
@ -24,7 +25,7 @@ alignment = 2
|
|||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_type_variation = &"SettingsInputLabel"
|
theme_type_variation = &"SettingsInputLabel"
|
||||||
text = "Action"
|
text = "ACTION_"
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="MarginContainer/HBoxContainer"]
|
[node name="Button" type="Button" parent="MarginContainer/HBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
@ -33,4 +34,12 @@ layout_mode = 2
|
|||||||
theme_type_variation = &"InputBindButton"
|
theme_type_variation = &"InputBindButton"
|
||||||
text = "UI_UNSET"
|
text = "UI_UNSET"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="MarginContainer/HBoxContainer/Button"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("3_pt7f5")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[connection signal="pressed" from="MarginContainer/HBoxContainer/Button" to="." method="start_listening"]
|
[connection signal="pressed" from="MarginContainer/HBoxContainer/Button" to="." method="start_listening"]
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://bpmpj4n6xp17l"]
|
[gd_scene load_steps=5 format=3 uid="uid://bpmpj4n6xp17l"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://dcah6r3ku60g6" path="res://src/ui/menus/settings_menu/settings/setting/setting.tscn" id="1_5t42f"]
|
[ext_resource type="PackedScene" uid="uid://dcah6r3ku60g6" path="res://src/ui/menus/settings_menu/settings/setting/setting.tscn" id="1_5t42f"]
|
||||||
[ext_resource type="Script" uid="uid://dv8n1d4g4awyc" path="res://src/ui/menus/settings_menu/settings/checkbox_setting/checkbox_setting.gd" id="2_mwq55"]
|
[ext_resource type="Script" uid="uid://dv8n1d4g4awyc" path="res://src/ui/menus/settings_menu/settings/checkbox_setting/checkbox_setting.gd" id="2_mwq55"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b7ce38k7rx466" path="res://src/ui/elements/text_checkbox/text_checkbox.tscn" id="3_fosy2"]
|
[ext_resource type="PackedScene" uid="uid://b7ce38k7rx466" path="res://src/ui/elements/text_checkbox/text_checkbox.tscn" id="3_fosy2"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="4_0iluu"]
|
||||||
|
|
||||||
[node name="CheckboxSetting" instance=ExtResource("1_5t42f")]
|
[node name="CheckboxSetting" instance=ExtResource("1_5t42f")]
|
||||||
script = ExtResource("2_mwq55")
|
script = ExtResource("2_mwq55")
|
||||||
@ -10,3 +11,11 @@ script = ExtResource("2_mwq55")
|
|||||||
[node name="TextCheckbox" parent="PanelContainer/MarginContainer" index="0" instance=ExtResource("3_fosy2")]
|
[node name="TextCheckbox" parent="PanelContainer/MarginContainer" index="0" instance=ExtResource("3_fosy2")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="PanelContainer/MarginContainer/TextCheckbox" index="0"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("4_0iluu")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
[gd_scene load_steps=3 format=3 uid="uid://dpry41u0ctikn"]
|
[gd_scene load_steps=4 format=3 uid="uid://dpry41u0ctikn"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://dcah6r3ku60g6" path="res://src/ui/menus/settings_menu/settings/setting/setting.tscn" id="1_km84n"]
|
[ext_resource type="PackedScene" uid="uid://dcah6r3ku60g6" path="res://src/ui/menus/settings_menu/settings/setting/setting.tscn" id="1_km84n"]
|
||||||
[ext_resource type="Script" path="res://src/ui/menus/settings_menu/settings/dropdown_setting/dropdown_setting.gd" id="2_ubo13"]
|
[ext_resource type="Script" uid="uid://cfsf8k44t38g7" path="res://src/ui/menus/settings_menu/settings/dropdown_setting/dropdown_setting.gd" id="2_ubo13"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="3_n5wkc"]
|
||||||
|
|
||||||
[node name="DropdownSetting" instance=ExtResource("1_km84n")]
|
[node name="DropdownSetting" instance=ExtResource("1_km84n")]
|
||||||
script = ExtResource("2_ubo13")
|
script = ExtResource("2_ubo13")
|
||||||
@ -11,3 +12,12 @@ unique_name_in_owner = true
|
|||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
selected = 0
|
selected = 0
|
||||||
item_count = 1
|
item_count = 1
|
||||||
|
popup/item_0/id = 0
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="PanelContainer/MarginContainer/Dropdown" index="1"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("3_n5wkc")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://dut1lj8ju37sq"]
|
[gd_scene load_steps=5 format=3 uid="uid://dut1lj8ju37sq"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://dcah6r3ku60g6" path="res://src/ui/menus/settings_menu/settings/setting/setting.tscn" id="1_t2sut"]
|
[ext_resource type="PackedScene" uid="uid://dcah6r3ku60g6" path="res://src/ui/menus/settings_menu/settings/setting/setting.tscn" id="1_t2sut"]
|
||||||
[ext_resource type="Script" uid="uid://dpxpgs6iw7b7x" path="res://src/ui/menus/settings_menu/settings/numeric_setting/numeric_setting.gd" id="2_3nkup"]
|
[ext_resource type="Script" uid="uid://dpxpgs6iw7b7x" path="res://src/ui/menus/settings_menu/settings/numeric_setting/numeric_setting.gd" id="2_3nkup"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dqqcyi26d3bpg" path="res://src/ui/elements/numeric_slider/numeric_slider.tscn" id="2_piwkl"]
|
[ext_resource type="PackedScene" uid="uid://dqqcyi26d3bpg" path="res://src/ui/elements/numeric_slider/numeric_slider.tscn" id="2_piwkl"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="4_gyy1p"]
|
||||||
|
|
||||||
[node name="NumericSetting" instance=ExtResource("1_t2sut")]
|
[node name="NumericSetting" instance=ExtResource("1_t2sut")]
|
||||||
script = ExtResource("2_3nkup")
|
script = ExtResource("2_3nkup")
|
||||||
@ -10,3 +11,8 @@ script = ExtResource("2_3nkup")
|
|||||||
[node name="NumericSlider" parent="PanelContainer/MarginContainer" index="0" instance=ExtResource("2_piwkl")]
|
[node name="NumericSlider" parent="PanelContainer/MarginContainer" index="0" instance=ExtResource("2_piwkl")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="PanelContainer/MarginContainer/NumericSlider" index="2"]
|
||||||
|
layout_mode = 2
|
||||||
|
script = ExtResource("4_gyy1p")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
@ -17,6 +17,14 @@ func _ready() -> void:
|
|||||||
populate_control_bindings()
|
populate_control_bindings()
|
||||||
|
|
||||||
|
|
||||||
|
func _tab_change() -> void:
|
||||||
|
GlobalSFXManager.forward.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _tab_hover() -> void:
|
||||||
|
GlobalSFXManager.bloop.play()
|
||||||
|
|
||||||
|
|
||||||
func _get_settings_elements() -> Array[Setting]:
|
func _get_settings_elements() -> Array[Setting]:
|
||||||
var elements: Array[Setting] = []
|
var elements: Array[Setting] = []
|
||||||
elements.assign(get_tree().get_nodes_in_group(SETTINGS_GROUP))
|
elements.assign(get_tree().get_nodes_in_group(SETTINGS_GROUP))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=10 format=3 uid="uid://d3eaqw2rdurct"]
|
[gd_scene load_steps=11 format=3 uid="uid://d3eaqw2rdurct"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dyb8cwai3cyw2" path="res://src/ui/menus/settings_menu/settings_menu.gd" id="1_lbcn7"]
|
[ext_resource type="Script" uid="uid://dyb8cwai3cyw2" path="res://src/ui/menus/settings_menu/settings_menu.gd" id="1_lbcn7"]
|
||||||
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_vuur6"]
|
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_vuur6"]
|
||||||
@ -9,6 +9,7 @@
|
|||||||
[ext_resource type="Script" uid="uid://wlo8hxahp1x7" path="res://src/ui/menus/settings_menu/settings/checkbox_setting/fullscreen_setting.gd" id="4_ug1id"]
|
[ext_resource type="Script" uid="uid://wlo8hxahp1x7" path="res://src/ui/menus/settings_menu/settings/checkbox_setting/fullscreen_setting.gd" id="4_ug1id"]
|
||||||
[ext_resource type="Script" uid="uid://cchqp66wig3wa" path="res://src/ui/menus/settings_menu/reset_tutorial_button.gd" id="7_ftg2j"]
|
[ext_resource type="Script" uid="uid://cchqp66wig3wa" path="res://src/ui/menus/settings_menu/reset_tutorial_button.gd" id="7_ftg2j"]
|
||||||
[ext_resource type="Script" uid="uid://c3a127y0x8qod" path="res://src/ui/menus/settings_menu/disable_tutorial_button.gd" id="8_stv84"]
|
[ext_resource type="Script" uid="uid://c3a127y0x8qod" path="res://src/ui/menus/settings_menu/disable_tutorial_button.gd" id="8_stv84"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="10_nxapy"]
|
||||||
|
|
||||||
[node name="SettingsMenu" type="MarginContainer"]
|
[node name="SettingsMenu" type="MarginContainer"]
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
@ -208,6 +209,14 @@ layout_mode = 2
|
|||||||
text = "SETTINGS_TUTORIAL_RESET"
|
text = "SETTINGS_TUTORIAL_RESET"
|
||||||
script = ExtResource("7_ftg2j")
|
script = ExtResource("7_ftg2j")
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ResetTutorial/ResetTutorialButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_nxapy")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="DisableTutorial" type="HBoxContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList"]
|
[node name="DisableTutorial" type="HBoxContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
@ -220,6 +229,14 @@ layout_mode = 2
|
|||||||
text = "SETTINGS_TUTORIAL_DISABLE"
|
text = "SETTINGS_TUTORIAL_DISABLE"
|
||||||
script = ExtResource("8_stv84")
|
script = ExtResource("8_stv84")
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/DisableTutorial/DisableTutorialButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_nxapy")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="SETTINGS_GRAPHICS" type="MarginContainer" parent="TabContainer"]
|
[node name="SETTINGS_GRAPHICS" type="MarginContainer" parent="TabContainer"]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
@ -390,11 +407,28 @@ layout_mode = 2
|
|||||||
theme_type_variation = &"CancelButton"
|
theme_type_variation = &"CancelButton"
|
||||||
text = "UI_CANCEL"
|
text = "UI_CANCEL"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="SouthEast/HBoxContainer/CancelButton"]
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_nxapy")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="AcceptButton" type="Button" parent="SouthEast/HBoxContainer"]
|
[node name="AcceptButton" type="Button" parent="SouthEast/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_type_variation = &"AlertButton"
|
theme_type_variation = &"AlertButton"
|
||||||
text = "UI_ACCEPT"
|
text = "UI_ACCEPT"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="SouthEast/HBoxContainer/AcceptButton"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_nxapy")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
|
[connection signal="tab_changed" from="TabContainer" to="." method="_tab_change" unbinds=1]
|
||||||
|
[connection signal="tab_hovered" from="TabContainer" to="." method="_tab_hover" unbinds=1]
|
||||||
[connection signal="pressed" from="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ResetTutorial/ResetTutorialButton" to="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ResetTutorial/ResetTutorialButton" method="_on_pressed"]
|
[connection signal="pressed" from="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ResetTutorial/ResetTutorialButton" to="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ResetTutorial/ResetTutorialButton" method="_on_pressed"]
|
||||||
[connection signal="pressed" from="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/DisableTutorial/DisableTutorialButton" to="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/DisableTutorial/DisableTutorialButton" method="_on_pressed"]
|
[connection signal="pressed" from="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/DisableTutorial/DisableTutorialButton" to="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/DisableTutorial/DisableTutorialButton" method="_on_pressed"]
|
||||||
[connection signal="pressed" from="SouthEast/HBoxContainer/CancelButton" to="." method="cancel"]
|
[connection signal="pressed" from="SouthEast/HBoxContainer/CancelButton" to="." method="cancel"]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_k7hk0"]
|
[ext_resource type="Theme" uid="uid://doq7ay6f7dgfo" path="res://src/ui/menus/menu.theme" id="1_k7hk0"]
|
||||||
[ext_resource type="Script" uid="uid://bt3oajqvevj4k" path="res://src/ui/menus/settings_menu/volume_slider/volume_slider.gd" id="1_rfe0k"]
|
[ext_resource type="Script" uid="uid://bt3oajqvevj4k" path="res://src/ui/menus/settings_menu/volume_slider/volume_slider.gd" id="1_rfe0k"]
|
||||||
[ext_resource type="AudioStream" uid="uid://cfj1o2mt8pc8e" path="res://assets/sfx/ui/ui_confirm_v0.wav" id="3_y4yh3"]
|
[ext_resource type="AudioStream" uid="uid://bxorrvuexipfs" path="res://assets/sfx/ui/ui_accept_v5.wav" id="3_y4yh3"]
|
||||||
|
|
||||||
[node name="VolumeSlider" type="VBoxContainer" groups=["VolumeSliders"]]
|
[node name="VolumeSlider" type="VBoxContainer" groups=["VolumeSliders"]]
|
||||||
custom_minimum_size = Vector2(300, 0)
|
custom_minimum_size = Vector2(300, 0)
|
||||||
@ -48,7 +48,7 @@ suffix = "%"
|
|||||||
[node name="AudioDemo" type="AudioStreamPlayer" parent="."]
|
[node name="AudioDemo" type="AudioStreamPlayer" parent="."]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
stream = ExtResource("3_y4yh3")
|
stream = ExtResource("3_y4yh3")
|
||||||
volume_db = -16.0
|
volume_db = -20.0
|
||||||
|
|
||||||
[connection signal="drag_ended" from="Slider" to="." method="_on_slider_drag_ended"]
|
[connection signal="drag_ended" from="Slider" to="." method="_on_slider_drag_ended"]
|
||||||
[connection signal="value_changed" from="Slider" to="." method="_on_component_value_changed"]
|
[connection signal="value_changed" from="Slider" to="." method="_on_component_value_changed"]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=21 format=3 uid="uid://bctwol681jdk0"]
|
[gd_scene load_steps=22 format=3 uid="uid://bctwol681jdk0"]
|
||||||
|
|
||||||
[ext_resource type="Theme" uid="uid://dj2ij1b2yjicr" path="res://src/ui/menus/title_screen/title_screen.theme" id="1_3lcvc"]
|
[ext_resource type="Theme" uid="uid://dj2ij1b2yjicr" path="res://src/ui/menus/title_screen/title_screen.theme" id="1_3lcvc"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b6dx0ovy15g5o" path="res://src/effects/grunk_2d/grunk_2d.tscn" id="2_7vchy"]
|
[ext_resource type="PackedScene" uid="uid://b6dx0ovy15g5o" path="res://src/effects/grunk_2d/grunk_2d.tscn" id="2_7vchy"]
|
||||||
@ -9,6 +9,7 @@
|
|||||||
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="4_cgiy0"]
|
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="4_cgiy0"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dixpjnlaj86x2" path="res://assets/ui/corpo_logo/corpo_logo_128.png" id="5_yrys0"]
|
[ext_resource type="Texture2D" uid="uid://dixpjnlaj86x2" path="res://assets/ui/corpo_logo/corpo_logo_128.png" id="5_yrys0"]
|
||||||
[ext_resource type="FontFile" uid="uid://cj5luctpn3bfm" path="res://assets/fonts/Sixtyfour/Sixtyfour-Regular-VariableFont_BLED,SCAN.ttf" id="8_x67pi"]
|
[ext_resource type="FontFile" uid="uid://cj5luctpn3bfm" path="res://assets/fonts/Sixtyfour/Sixtyfour-Regular-VariableFont_BLED,SCAN.ttf" id="8_x67pi"]
|
||||||
|
[ext_resource type="Script" uid="uid://bxkawcupln4fp" path="res://src/util/bloop_component.gd" id="10_gdkv4"]
|
||||||
[ext_resource type="AudioStream" uid="uid://c838ofbu4bqrn" path="res://assets/sfx/computer_noise.wav" id="10_x67pi"]
|
[ext_resource type="AudioStream" uid="uid://c838ofbu4bqrn" path="res://assets/sfx/computer_noise.wav" id="10_x67pi"]
|
||||||
[ext_resource type="AudioStream" uid="uid://dx4d8a3mgpws" path="res://assets/sfx/ambient/drone_loop.wav" id="11_gdkv4"]
|
[ext_resource type="AudioStream" uid="uid://dx4d8a3mgpws" path="res://assets/sfx/ambient/drone_loop.wav" id="11_gdkv4"]
|
||||||
|
|
||||||
@ -784,22 +785,54 @@ layout_mode = 2
|
|||||||
disabled = true
|
disabled = true
|
||||||
text = "TITLE_CONTINUE"
|
text = "TITLE_CONTINUE"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons/Continue"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_gdkv4")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="NewGame" type="Button" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons"]
|
[node name="NewGame" type="Button" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons"]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "TITLE_NEW_GAME"
|
text = "TITLE_NEW_GAME"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons/NewGame"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_gdkv4")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="Settings" type="Button" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons"]
|
[node name="Settings" type="Button" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons"]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "PAUSE_SETTINGS"
|
text = "PAUSE_SETTINGS"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons/Settings"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_gdkv4")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="Quit" type="Button" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons"]
|
[node name="Quit" type="Button" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons"]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_type_variation = &"DangerButton"
|
theme_type_variation = &"DangerButton"
|
||||||
text = "UI_QUIT"
|
text = "UI_QUIT"
|
||||||
|
|
||||||
|
[node name="BloopComponent" type="Control" parent="TitleScreenContent/VBoxContainer/MarginContainer/MenuButtons/Quit"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
script = ExtResource("10_gdkv4")
|
||||||
|
metadata/_custom_type_script = "uid://bxkawcupln4fp"
|
||||||
|
|
||||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="TitleScreenContent"]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="TitleScreenContent"]
|
||||||
libraries = {
|
libraries = {
|
||||||
&"": SubResource("AnimationLibrary_3qdtd")
|
&"": SubResource("AnimationLibrary_3qdtd")
|
||||||
|
7
src/util/bloop_component.gd
Normal file
7
src/util/bloop_component.gd
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class_name BloopComponent extends Control
|
||||||
|
## Makes the parent control bloop when focused
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
get_parent_control().mouse_entered.connect(GlobalSFXManager.bloop.play)
|
||||||
|
queue_free()
|
1
src/util/bloop_component.gd.uid
Normal file
1
src/util/bloop_component.gd.uid
Normal file
@ -0,0 +1 @@
|
|||||||
|
uid://bxkawcupln4fp
|
Loading…
x
Reference in New Issue
Block a user