Files
Simplaudio/Scenes/main.tscn
T
Bucket Of Chicken 4424b10cda settings stuff
2025-10-03 15:51:35 +02:00

371 lines
14 KiB
Plaintext

[gd_scene load_steps=22 format=3 uid="uid://mfcbf2sfino6"]
[ext_resource type="Texture2D" uid="uid://0jo87vtoeheu" path="res://Images/pole2.jpg" id="1_6bp64"]
[ext_resource type="Texture2D" uid="uid://df2e70jxwrmjs" path="res://Icons/BackOne.png" id="1_8gbba"]
[ext_resource type="Theme" uid="uid://cpd5cym1d4tde" path="res://DefaultTheme.tres" id="1_k12tt"]
[ext_resource type="Texture2D" uid="uid://0r1tx6l1lc6x" path="res://Icons/settingscog.png" id="2_344ge"]
[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Icons/Skip.png" id="2_bo1nx"]
[ext_resource type="Script" uid="uid://csihi5ila47ga" path="res://Scenes/Metadatatest.cs" id="2_fdnlq"]
[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Icons/Play.png" id="2_jjvhh"]
[ext_resource type="Texture2D" uid="uid://myq6n4bshduj" path="res://Icons/search.png" id="2_ynf5e"]
[ext_resource type="Script" uid="uid://bq55jftgugexl" path="res://Scripts/Context.cs" id="3_8gbba"]
[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Icons/Loop.png" id="4_21xkr"]
[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Icons/Headphones.png" id="4_kry3j"]
[ext_resource type="PackedScene" uid="uid://dds3tnltcg0sg" path="res://Scenes/PerformanceDisplay.tscn" id="5_fdnlq"]
[ext_resource type="Script" uid="uid://y1d7cbmhmllf" path="res://Scripts/SourcetabUI.cs" id="5_wsu2k"]
[ext_resource type="PackedScene" uid="uid://bam5mbsffdryc" path="res://Scenes/SourceDisplay.tscn" id="7_h1bgf"]
[ext_resource type="Script" uid="uid://ci5h1wwbedkbt" path="res://Scripts/UIManager.cs" id="12_6iyac"]
[ext_resource type="Texture2D" uid="uid://1rstn6r2wisy" path="res://Icons/X.png" id="12_b3802"]
[ext_resource type="Texture2D" uid="uid://dumymuj4w4si0" path="res://Icons/shuffle.png" id="13_jkdf5"]
[ext_resource type="Texture2D" uid="uid://ch8wymyxftkb3" path="res://Icons/Pause.png" id="14_jkdf5"]
[sub_resource type="GDScript" id="GDScript_ynf5e"]
resource_name = "Toggle"
script/source = "extends Button
@export var searchbar:LineEdit
@export var showbutton:Button
func _ready() -> void:
toggled.connect(update)
func update(on:bool):
searchbar.visible = on == true
showbutton.visible = on != true
"
[sub_resource type="GDScript" id="GDScript_fevyy"]
resource_name = "gdsd"
script/source = "extends Button
@export var source:Control
func _pressed() -> void:
source.hide()
"
[sub_resource type="GDScript" id="GDScript_d1ilt"]
resource_name = "Slider"
script/source = "extends VSlider
func _process(delta: float) -> void:
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"Music\"),linear_to_db(value))
"
[node name="Main" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_k12tt")
[node name="Context" type="Node" parent="."]
script = ExtResource("3_8gbba")
[node name="UiManager" type="Node" parent="." node_paths=PackedStringArray("PlayPauseButton", "ProgressIndicator", "SkipButton", "GoBackButton", "LoopButton", "RandomizeButton")]
script = ExtResource("12_6iyac")
PlayPauseButton = NodePath("../Padding/VBoxContainer/Bottom/HBoxContainer/PlayButton")
PauseImage = ExtResource("14_jkdf5")
PlayImage = ExtResource("2_jjvhh")
ProgressIndicator = NodePath("../Padding/VBoxContainer/Bottom/HBoxContainer/Progress")
SkipButton = NodePath("../Padding/VBoxContainer/Bottom/HBoxContainer/SkipButton")
GoBackButton = NodePath("../Padding/VBoxContainer/Bottom/HBoxContainer/BackButton")
LoopButton = NodePath("../Padding/VBoxContainer/Bottom/HBoxContainer/Loop")
RandomizeButton = NodePath("../Padding/VBoxContainer/Bottom/HBoxContainer/Shuffle")
[node name="Sourcetab" type="Node" parent="UiManager" node_paths=PackedStringArray("AddSourceButton", "Adder", "Namer", "DirOpenButton", "DirLabel", "AddButton", "Dialog", "SourceContainer")]
script = ExtResource("5_wsu2k")
AddSourceButton = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/HBoxContainer/Button")
Adder = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource")
Namer = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/LineEdit")
DirOpenButton = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/Button")
DirLabel = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/RichTextLabel2")
AddButton = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/Button2")
Dialog = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/FileDialog")
SourceContainer = NodePath("../../Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/ScrollContainer/SourceContainer")
SourceScene = ExtResource("7_h1bgf")
[node name="Background" type="TextureRect" parent="."]
z_index = -2
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_6bp64")
expand_mode = 5
stretch_mode = 6
[node name="Padding" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 29.0
offset_top = 31.0
offset_right = -29.0
offset_bottom = -31.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("2_fdnlq")
[node name="VBoxContainer" type="VBoxContainer" parent="Padding"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Top" type="Control" parent="Padding/VBoxContainer"]
custom_minimum_size = Vector2(0, 42)
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Top"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Control" type="HBoxContainer" parent="Padding/VBoxContainer/Top/HBoxContainer"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
alignment = 1
[node name="SearchBar" type="LineEdit" parent="Padding/VBoxContainer/Top/HBoxContainer/Control"]
visible = false
layout_mode = 2
size_flags_horizontal = 4
placeholder_text = "Search..."
max_length = 50
expand_to_text_length = true
[node name="ShowSongs" type="Button" parent="Padding/VBoxContainer/Top/HBoxContainer/Control"]
layout_mode = 2
size_flags_horizontal = 4
text = "SHOW_SONGS"
[node name="SearchToggle" type="Button" parent="Padding/VBoxContainer/Top/HBoxContainer/Control" node_paths=PackedStringArray("searchbar", "showbutton")]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
toggle_mode = true
icon = ExtResource("2_ynf5e")
alignment = 0
expand_icon = true
script = SubResource("GDScript_ynf5e")
searchbar = NodePath("../SearchBar")
showbutton = NodePath("../ShowSongs")
[node name="Settings" type="Button" parent="Padding/VBoxContainer/Top/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
icon = ExtResource("2_344ge")
expand_icon = true
[node name="Center" type="Control" parent="Padding/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="HSplitContainer" type="HSplitContainer" parent="Padding/VBoxContainer/Center"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Sources" type="Control" parent="Padding/VBoxContainer/Center/HSplitContainer"]
custom_minimum_size = Vector2(250, 0)
layout_mode = 2
[node name="Panel" type="Panel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer"]
layout_mode = 2
[node name="RichTextLabel" type="RichTextLabel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "SOURCE_TAB"
fit_content = true
scroll_active = false
[node name="Button" type="Button" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "ADD"
[node name="AddSource" type="PanelContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer"]
layout_mode = 2
[node name="AddNew" type="VBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource"]
layout_mode = 2
theme_override_constants/separation = 6
[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew"]
layout_mode = 2
[node name="RichTextLabel" type="RichTextLabel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
text = "ADD_SOURCE"
fit_content = true
scroll_active = false
[node name="HideBuen" type="Button" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/HBoxContainer" node_paths=PackedStringArray("source")]
custom_minimum_size = Vector2(22, 0)
layout_mode = 2
icon = ExtResource("12_b3802")
expand_icon = true
script = SubResource("GDScript_fevyy")
source = NodePath("../../..")
[node name="LineEdit" type="LineEdit" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew"]
layout_mode = 2
placeholder_text = "NAME"
[node name="Button" type="Button" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew"]
layout_mode = 2
text = "SELECT_DIR"
[node name="RichTextLabel2" type="RichTextLabel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew"]
layout_mode = 2
fit_content = true
scroll_active = false
[node name="Button2" type="Button" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew"]
layout_mode = 2
text = "ADD"
[node name="FileDialog" type="FileDialog" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew"]
title = "Open a Directory"
size = Vector2i(827, 360)
ok_button_text = "Select Current Folder"
file_mode = 2
access = 2
use_native_dialog = true
[node name="HSeparator" type="HSeparator" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer"]
layout_mode = 2
[node name="ScrollContainer" type="ScrollContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="SourceContainer" type="VBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="SearchResults" parent="Padding/VBoxContainer/Center/HSplitContainer" instance=ExtResource("5_fdnlq")]
custom_minimum_size = Vector2(500, 0)
layout_mode = 2
[node name="Bottom" type="Control" parent="Padding/VBoxContainer"]
custom_minimum_size = Vector2(0, 42)
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Bottom"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="BackButton" type="Button" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
icon = ExtResource("1_8gbba")
expand_icon = true
[node name="PlayButton" type="Button" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
toggle_mode = true
icon = ExtResource("2_jjvhh")
expand_icon = true
[node name="SkipButton" type="Button" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
icon = ExtResource("2_bo1nx")
expand_icon = true
[node name="Progress" type="HSlider" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
max_value = 1.0
step = 0.001
[node name="Loop" type="Button" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
toggle_mode = true
icon = ExtResource("4_21xkr")
expand_icon = true
[node name="Shuffle" type="Button" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
icon = ExtResource("13_jkdf5")
expand_icon = true
[node name="Volume" type="Button" parent="Padding/VBoxContainer/Bottom/HBoxContainer"]
custom_minimum_size = Vector2(42, 0)
layout_mode = 2
icon = ExtResource("4_kry3j")
expand_icon = true
[node name="VolumeSlider" type="VSlider" parent="Padding/VBoxContainer/Bottom/HBoxContainer/Volume"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -9.0
offset_top = -50.0
offset_right = 7.0
offset_bottom = -42.0
grow_horizontal = 2
grow_vertical = 0
max_value = 1.0
step = 0.01
value = 1.0
script = SubResource("GDScript_d1ilt")
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -40.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
text = "v2.0"