Updated how players and song list works

Made many changes with caching, how players works, added sound effects
and animations any many more things
This commit is contained in:
2024-12-27 20:35:28 +01:00
parent c4a7d743d3
commit 23f2ed11eb
18 changed files with 612 additions and 359 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=25 format=3 uid="uid://xwq863o6uvsu"]
[gd_scene load_steps=26 format=3 uid="uid://xwq863o6uvsu"]
[ext_resource type="Script" path="res://MainWindow.gd" id="1_eu0t5"]
[ext_resource type="PackedScene" uid="uid://b16on0oscg1bv" path="res://CharacterSelect.tscn" id="2_76kf4"]
@@ -9,6 +9,7 @@
[ext_resource type="Script" path="res://PlayerNameField.gd" id="7_qsdfy"]
[ext_resource type="Theme" uid="uid://rxexo3ur85as" path="res://LightGrayTheme.tres" id="7_wxbv6"]
[ext_resource type="PackedScene" uid="uid://bxydgil1yifps" path="res://SearchWindow.tscn" id="9_5ijvr"]
[ext_resource type="Texture2D" uid="uid://r4as0nmtoa7p" path="res://noCharacter.png" id="11_1qef0"]
[ext_resource type="PackedScene" uid="uid://dldpeo5y3l5hq" path="res://SettingsWindow.tscn" id="11_k62u5"]
[sub_resource type="LabelSettings" id="LabelSettings_ychxr"]
@@ -103,6 +104,26 @@ file_mode = 2
access = 2
show_hidden_files = true
[node name="MusicListPanel" type="PanelContainer" parent="."]
layout_mode = 0
offset_left = 64.0
offset_top = 384.0
offset_right = 1152.0
offset_bottom = 896.0
theme = ExtResource("7_wxbv6")
[node name="ScrollContainer" type="ScrollContainer" parent="MusicListPanel"]
layout_mode = 2
follow_focus = true
script = ExtResource("7_dj026")
[node name="MusicList" type="VBoxContainer" parent="MusicListPanel/ScrollContainer"]
texture_filter = 1
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 10
[node name="ScrollContainer" type="ScrollContainer" parent="."]
texture_filter = 1
layout_mode = 0
@@ -297,25 +318,6 @@ action_mode = 0
shortcut = SubResource("Shortcut_d6fml")
text = "Randomize new track"
[node name="MusicListPanel" type="PanelContainer" parent="."]
layout_mode = 0
offset_left = 64.0
offset_top = 384.0
offset_right = 1152.0
offset_bottom = 896.0
theme = ExtResource("7_wxbv6")
[node name="ScrollContainer" type="ScrollContainer" parent="MusicListPanel"]
layout_mode = 2
follow_focus = true
script = ExtResource("7_dj026")
[node name="MusicList" type="VBoxContainer" parent="MusicListPanel/ScrollContainer"]
texture_filter = 1
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="SearchButton" type="Button" parent="."]
texture_filter = 1
layout_mode = 0
@@ -408,7 +410,7 @@ vertical_alignment = 1
[node name="AboutPopupPanel" type="PopupPanel" parent="."]
initial_position = 2
size = Vector2i(848, 272)
size = Vector2i(848, 710)
[node name="VBoxContainer" type="VBoxContainer" parent="AboutPopupPanel"]
offset_left = 4.0
@@ -479,17 +481,27 @@ offset_bottom = 354.0
[node name="WinnerPopupPanel" type="PopupPanel" parent="."]
initial_position = 2
size = Vector2i(350, 100)
size = Vector2i(600, 350)
[node name="WinnerPicture" type="TextureRect" parent="WinnerPopupPanel"]
offset_left = 4.0
offset_top = 4.0
offset_right = 596.0
offset_bottom = 346.0
texture = ExtResource("11_1qef0")
expand_mode = 2
stretch_mode = 4
[node name="WinnerLabel" type="Label" parent="WinnerPopupPanel"]
texture_filter = 1
offset_left = 4.0
offset_top = 4.0
offset_right = 346.0
offset_bottom = 96.0
offset_right = 596.0
offset_bottom = 346.0
text = "Sansan won!!"
label_settings = SubResource("LabelSettings_hr75l")
horizontal_alignment = 1
vertical_alignment = 2
[node name="RepeatSongCheckButton" type="CheckButton" parent="."]
layout_mode = 0