From c25983370eaf23dd49a2b154c5885bd06f3ef470 Mon Sep 17 00:00:00 2001 From: bucket Date: Mon, 17 Nov 2025 21:58:13 +0100 Subject: [PATCH] working music player --- ClearTheme.tres | 6 + DefaultTheme.tres | 34 +- Mai255.tmp | 312 -------- Mai3BB1.tmp | 668 ----------------- Mai57B3.tmp | 308 -------- Mai5C18.tmp | 100 --- MaiC00.tmp | 24 - MaiD836.tmp | 185 ----- MaiE09B.tmp | 665 ----------------- MaiE368.tmp | 474 ------------ MaiEDBE.tmp | 448 ------------ Scenes/SourceDisplay.tscn | 22 +- Scenes/full_interface.tscn | 143 ++++ Scenes/main.tscn | 687 +++++++++--------- Scenes/simplified_interface.tscn | 130 ++++ Scenes/song_display.tscn | 2 +- Scripts/AddDialog.cs | 40 + Scripts/AddDialog.cs.uid | 1 + Scripts/{ => Backend}/Data.cs | 88 ++- Scripts/{ => Backend}/Data.cs.uid | 0 Scripts/{ => Backend}/RichPresenceManager.cs | 4 +- .../{ => Backend}/RichPresenceManager.cs.uid | 0 Scripts/{ => Backend}/SongDisplay.cs | 6 +- Scripts/{ => Backend}/SongDisplay.cs.uid | 0 Scripts/Context.cs | 47 -- Scripts/Context.cs.uid | 1 - Scripts/PerformanceDisplay.cs | 94 --- Scripts/PerformanceDisplay.cs.uid | 1 - Scripts/SaveManager.cs | 17 - Scripts/SaveManager.cs.uid | 1 - Scripts/SearchDisplay.cs | 14 - Scripts/SearchDisplay.cs.uid | 1 - Scripts/SimplaudioSettings.cs | 24 - Scripts/SimplaudioSettings.cs.uid | 1 - Scripts/SongPlayer.cs | 56 -- Scripts/SongPlayer.cs.uid | 1 - Scripts/SourceDisplay.cs | 29 +- Scripts/SourceDisplay.cs.uid | 2 +- Scripts/SourceLoader.cs | 163 +++++ Scripts/SourceLoader.cs.uid | 1 + Scripts/SourceManager.cs | 38 + Scripts/SourceManager.cs.uid | 1 + Scripts/SourcetabUI.cs | 72 -- Scripts/SourcetabUI.cs.uid | 1 - Scripts/UIManager.cs | 67 -- Scripts/UIManager.cs.uid | 1 - Scripts/slider.gd | 4 + Scripts/slider.gd.uid | 1 + Simplaudio.csproj | 2 +- Simplaudio.csproj.old.1 | 14 + Simplaudio.csproj.old.2 | 14 + new_shader.tres | 13 - project.godot | 15 + shaders/SongShader.gdshader | 21 + shaders/SongShader.gdshader.uid | 1 + 55 files changed, 1074 insertions(+), 3991 deletions(-) create mode 100644 ClearTheme.tres delete mode 100644 Mai255.tmp delete mode 100644 Mai3BB1.tmp delete mode 100644 Mai57B3.tmp delete mode 100644 Mai5C18.tmp delete mode 100644 MaiC00.tmp delete mode 100644 MaiD836.tmp delete mode 100644 MaiE09B.tmp delete mode 100644 MaiE368.tmp delete mode 100644 MaiEDBE.tmp create mode 100644 Scenes/full_interface.tscn create mode 100644 Scenes/simplified_interface.tscn create mode 100644 Scripts/AddDialog.cs create mode 100644 Scripts/AddDialog.cs.uid rename Scripts/{ => Backend}/Data.cs (62%) rename Scripts/{ => Backend}/Data.cs.uid (100%) rename Scripts/{ => Backend}/RichPresenceManager.cs (96%) rename Scripts/{ => Backend}/RichPresenceManager.cs.uid (100%) rename Scripts/{ => Backend}/SongDisplay.cs (83%) rename Scripts/{ => Backend}/SongDisplay.cs.uid (100%) delete mode 100644 Scripts/Context.cs delete mode 100644 Scripts/Context.cs.uid delete mode 100644 Scripts/PerformanceDisplay.cs delete mode 100644 Scripts/PerformanceDisplay.cs.uid delete mode 100644 Scripts/SaveManager.cs delete mode 100644 Scripts/SaveManager.cs.uid delete mode 100644 Scripts/SearchDisplay.cs delete mode 100644 Scripts/SearchDisplay.cs.uid delete mode 100644 Scripts/SimplaudioSettings.cs delete mode 100644 Scripts/SimplaudioSettings.cs.uid delete mode 100644 Scripts/SongPlayer.cs delete mode 100644 Scripts/SongPlayer.cs.uid create mode 100644 Scripts/SourceLoader.cs create mode 100644 Scripts/SourceLoader.cs.uid create mode 100644 Scripts/SourceManager.cs create mode 100644 Scripts/SourceManager.cs.uid delete mode 100644 Scripts/SourcetabUI.cs delete mode 100644 Scripts/SourcetabUI.cs.uid delete mode 100644 Scripts/UIManager.cs delete mode 100644 Scripts/UIManager.cs.uid create mode 100644 Scripts/slider.gd create mode 100644 Scripts/slider.gd.uid create mode 100644 Simplaudio.csproj.old.1 create mode 100644 Simplaudio.csproj.old.2 delete mode 100644 new_shader.tres create mode 100644 shaders/SongShader.gdshader create mode 100644 shaders/SongShader.gdshader.uid diff --git a/ClearTheme.tres b/ClearTheme.tres new file mode 100644 index 0000000..eac0225 --- /dev/null +++ b/ClearTheme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=3 uid="uid://vhvx5qjav337"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pwqir"] + +[resource] +Button/styles/normal = SubResource("StyleBoxEmpty_pwqir") diff --git a/DefaultTheme.tres b/DefaultTheme.tres index ddc45b1..950e74c 100644 --- a/DefaultTheme.tres +++ b/DefaultTheme.tres @@ -1,3 +1,35 @@ -[gd_resource type="Theme" format=3 uid="uid://cpd5cym1d4tde"] +[gd_resource type="Theme" load_steps=4 format=3 uid="uid://cpd5cym1d4tde"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ihngy"] +bg_color = Color(0.20511743, 0.20511743, 0.20511743, 0.48235294) +border_color = Color(0, 0, 0, 0.49803922) +corner_radius_top_left = 14 +corner_radius_top_right = 14 +corner_radius_bottom_right = 14 +corner_radius_bottom_left = 14 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8pucy"] +bg_color = Color(0.09239707, 0.09239706, 0.09239706, 0.48235294) +border_color = Color(0, 0, 0, 0.49803922) +corner_radius_top_left = 14 +corner_radius_top_right = 14 +corner_radius_bottom_right = 14 +corner_radius_bottom_left = 14 +expand_margin_left = 1.0 +expand_margin_top = 1.0 +expand_margin_right = 1.0 +expand_margin_bottom = 1.0 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jnd74"] +bg_color = Color(0, 0, 0, 0.48235294) +border_color = Color(0, 0, 0, 0.49803922) +corner_radius_top_left = 14 +corner_radius_top_right = 14 +corner_radius_bottom_right = 14 +corner_radius_bottom_left = 14 [resource] +Button/styles/hover = SubResource("StyleBoxFlat_ihngy") +Button/styles/normal = SubResource("StyleBoxFlat_8pucy") +Button/styles/pressed = SubResource("StyleBoxFlat_jnd74") +LineEdit/styles/normal = SubResource("StyleBoxFlat_8pucy") diff --git a/Mai255.tmp b/Mai255.tmp deleted file mode 100644 index eb518a9..0000000 --- a/Mai255.tmp +++ /dev/null @@ -1,312 +0,0 @@ -[gd_scene load_steps=26 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://snne8iiftksi" path="res://Evening_view_of_Munnar_1633.jpg" id="6_5vm0w"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Play.png" id="8_5v7u3"] -[ext_resource type="Shader" path="res://CoverShader.gdshader" id="8_4531v"] -[ext_resource type="Texture2D" uid="uid://b00wlqid2jdvi" path="res://BigLogo.png" id="10_xnj6a"] -[ext_resource type="Script" path="res://cover.gd" id="12_3v50a"] -[ext_resource type="Texture2D" uid="uid://bdpat2sfflaxq" path="res://Youtube_logo.png" id="12_bc5ym"] -[ext_resource type="Script" path="res://search_bar.gd" id="12_mr42x"] -[ext_resource type="Texture2D" uid="uid://b5eims5ucn81r" path="res://Loding.png" id="13_de5ej"] -[ext_resource type="Script" path="res://volume_button.gd" id="14_7q3ja"] -[ext_resource type="Script" path="res://Spinning.gd" id="14_rhw4k"] -[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] - -[sub_resource type="Gradient" id="Gradient_hqvtw"] -offsets = PackedFloat32Array(0.459016, 0.565574, 0.704918, 0.827869, 0.92623, 1) -colors = PackedColorArray(0, 0, 0, 1, 0.132947, 0.132947, 0.132947, 0.867053, 0.286885, 0.286885, 0.286885, 0.713115, 0.536475, 0.536475, 0.536475, 0.463525, 0.790666, 0.790666, 0.790666, 0.209334, 1, 1, 1, 0) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_50sv0"] -gradient = SubResource("Gradient_hqvtw") -fill = 1 -fill_from = Vector2(0, 1) -fill_to = Vector2(1, 1) - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3bw0j"] -shader = ExtResource("8_4531v") -shader_parameter/dissolve = SubResource("GradientTexture2D_50sv0") - -[sub_resource type="InputEventKey" id="InputEventKey_5af16"] -device = -1 -keycode = 32 -unicode = 32 - -[sub_resource type="Shortcut" id="Shortcut_0ov5v"] -events = [SubResource("InputEventKey_5af16")] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 2 -outline_color = Color(0, 0, 0, 1) -shadow_color = Color(0, 0, 0, 0.643137) -shadow_offset = Vector2(7.88, 4.31) - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="Sprite2D" parent="."] -position = Vector2(576.949, 401) -scale = Vector2(1.27923, 1.25956) -texture = ExtResource("2_wf35v") - -[node name="Evening" type="Sprite2D" parent="."] -position = Vector2(582, 342) -scale = Vector2(1.00181, 1.00181) -texture = ExtResource("6_5vm0w") - -[node name="Nighttime" type="Sprite2D" parent="."] -visible = false -modulate = Color(0.347817, 0.347817, 0.347817, 1) -position = Vector2(610, 326) -scale = Vector2(1.49056, 1.51111) -texture = ExtResource("6_8abnc") - -[node name="CoverHolder" type="Node2D" parent="."] -position = Vector2(-3, 649) - -[node name="Cover" type="Sprite2D" parent="CoverHolder"] -modulate = Color(1, 1, 1, 0.592157) -material = SubResource("ShaderMaterial_3bw0j") -position = Vector2(200, -122.333) -scale = Vector2(0.333333, 0.333333) -region_rect = Rect2(142.036, 106.625, 632.359, 516.605) -region_filter_clip_enabled = true -script = ExtResource("12_3v50a") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 20.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -focus_mode = 0 -text = "select the directory -(playlist's folder)" - -[node name="RandomizeList" type="Button" parent="."] -offset_left = 897.0 -offset_top = 24.0 -offset_right = 1132.0 -offset_bottom = 80.0 -focus_mode = 0 -text = "Randomize the Playlist" - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(470, 320) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 -use_native_dialog = true - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] - -[node name="playList" type="Button" parent="."] -offset_left = 20.0 -offset_top = 572.0 -offset_right = 92.0 -offset_bottom = 644.0 -scale = Vector2(0.5, 0.5) -focus_mode = 0 -shortcut = SubResource("Shortcut_0ov5v") -icon = ExtResource("8_5v7u3") - -[node name="CurrentProgress" type="HSlider" parent="."] -offset_left = 64.0 -offset_top = 560.0 -offset_right = 944.0 -offset_bottom = 624.0 -max_value = 1000.0 -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -focus_mode = 0 -icon = ExtResource("3_4vx67") - -[node name="Skip2" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -focus_mode = 0 -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -offset_left = 1000.0 -offset_top = 573.0 -offset_right = 1040.0 -offset_bottom = 613.0 -focus_mode = 0 -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -offset_left = 994.0 -offset_top = 613.0 -offset_right = 1034.0 -offset_bottom = 653.0 -rotation = 3.14159 -focus_mode = 0 -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -offset_left = 66.0 -offset_top = 524.0 -offset_right = 994.0 -offset_bottom = 581.0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="SearchBar" type="TextEdit" parent="."] -offset_left = 266.0 -offset_top = 24.0 -offset_right = 888.0 -offset_bottom = 81.0 -placeholder_text = "Search" -wrap_mode = 1 -script = ExtResource("12_mr42x") - -[node name="SearchResults" type="PopupMenu" parent="."] -handle_input_locally = false -position = Vector2i(265, 80) -size = Vector2i(625, 300) -max_size = Vector2i(625, 300) -hide_on_state_item_selection = true -allow_search = false - -[node name="VolumeButton" type="Button" parent="."] -offset_left = 1092.0 -offset_top = 573.0 -offset_right = 1132.0 -offset_bottom = 613.0 -focus_mode = 0 -toggle_mode = true -icon = ExtResource("6_3mi6c") -script = ExtResource("14_7q3ja") - -[node name="VolumeSlider" type="VSlider" parent="."] -layout_direction = 3 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -1121.0 -offset_top = 563.0 -offset_right = -1103.0 -offset_bottom = 571.0 -grow_horizontal = 2 -grow_vertical = 0 -size_flags_horizontal = 1 -size_flags_vertical = 8 -value = 100.0 - -[node name="Logo" type="Sprite2D" parent="."] -modulate = Color(1, 1, 1, 0.686275) -position = Vector2(192, 162) -scale = Vector2(0.159259, 0.159259) -texture = ExtResource("10_xnj6a") - -[node name="TimeListeningSong" type="Label" parent="."] -offset_left = 66.0 -offset_top = 597.0 -offset_right = 178.0 -offset_bottom = 633.0 - -[node name="YtTabButton" type="Button" parent="."] -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = 1065.0 -offset_top = 107.0 -offset_right = 1713.0 -offset_bottom = 558.0 -grow_horizontal = 0 -scale = Vector2(0.105, 0.105) -focus_mode = 0 -toggle_mode = true -icon = ExtResource("12_bc5ym") -flat = true -script = ExtResource("16_2t15p") - -[node name="YoutubeMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 794.0 -offset_top = 107.0 -offset_right = 834.0 -offset_bottom = 147.0 - -[node name="Youtube menu" type="Control" parent="YoutubeMenuHolder"] -layout_mode = 3 -anchors_preset = 0 -offset_right = 200.0 -offset_bottom = 363.0 - -[node name="YTLink" type="LineEdit" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -201.0 -offset_bottom = 47.0 -grow_horizontal = 0 -placeholder_text = "Youtube link(can be playlist)" - -[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -offset_top = 58.0 -offset_right = 87.0 -offset_bottom = 98.0 -focus_mode = 0 -text = "Download" - -[node name="LoadingIMG" type="Sprite2D" parent="YoutubeMenuHolder/Youtube menu"] -position = Vector2(113, 78) -rotation = 1.5708 -scale = Vector2(-0.5, 0.5) -texture = ExtResource("13_de5ej") -script = ExtResource("14_rhw4k") - -[node name="Version" type="Label" parent="."] -offset_left = 1083.0 -offset_top = 625.0 -offset_right = 1147.0 -offset_bottom = 648.0 -text = "v0.9.2" -horizontal_alignment = 2 - -[node name="WavDisclaimer" type="AcceptDialog" parent="."] -transparent_bg = true -title = "WAV disclaimer" -position = Vector2i(495, 305) -size = Vector2i(256, 100) -transparent = true -popup_window = true -force_native = true -dialog_text = "wav files are not supported yet" - -[connection signal="text_changed" from="SearchBar" to="SearchBar" method="_on_text_changed"] -[connection signal="index_pressed" from="SearchResults" to="SearchBar" method="_on_search_results_index_pressed"] -[connection signal="toggled" from="VolumeButton" to="VolumeButton" method="_on_toggled"] -[connection signal="toggled" from="YtTabButton" to="YtTabButton" method="_on_toggled"] diff --git a/Mai3BB1.tmp b/Mai3BB1.tmp deleted file mode 100644 index 032c61f..0000000 --- a/Mai3BB1.tmp +++ /dev/null @@ -1,668 +0,0 @@ -[gd_scene load_steps=53 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://snne8iiftksi" path="res://Evening_view_of_Munnar_1633.jpg" id="6_5vm0w"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Play.png" id="8_5v7u3"] -[ext_resource type="Shader" path="res://CoverShader.gdshader" id="8_4531v"] -[ext_resource type="Shader" path="res://Main.gdshader" id="10_20857"] -[ext_resource type="Texture2D" uid="uid://b00wlqid2jdvi" path="res://BigLogo.png" id="10_xnj6a"] -[ext_resource type="Texture2D" uid="uid://0r1tx6l1lc6x" path="res://settingscog.png" id="11_esjel"] -[ext_resource type="Script" path="res://cover.gd" id="12_3v50a"] -[ext_resource type="Script" path="res://settings_button.gd" id="12_073mb"] -[ext_resource type="Texture2D" uid="uid://bdpat2sfflaxq" path="res://Youtube_logo.png" id="12_bc5ym"] -[ext_resource type="Texture2D" uid="uid://myq6n4bshduj" path="res://search.png" id="12_cv2gm"] -[ext_resource type="Script" path="res://search_bar.gd" id="12_mr42x"] -[ext_resource type="Script" path="res://search_toggle.gd" id="13_5illk"] -[ext_resource type="PackedScene" uid="uid://dqg674t6kun4e" path="res://Settings.tscn" id="13_7atry"] -[ext_resource type="Texture2D" uid="uid://b5eims5ucn81r" path="res://Loding.png" id="13_de5ej"] -[ext_resource type="Script" path="res://volume_button.gd" id="14_7q3ja"] -[ext_resource type="Texture2D" uid="uid://1rstn6r2wisy" path="res://X.png" id="14_mioc4"] -[ext_resource type="Script" path="res://Spinning.gd" id="14_rhw4k"] -[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ku7tv"] -shader = ExtResource("10_20857") -shader_parameter/intensity = 1.0 - -[sub_resource type="Gradient" id="Gradient_7vgyc"] -offsets = PackedFloat32Array(0.00292398, 0.845029) -colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_bhdch"] -gradient = SubResource("Gradient_7vgyc") -fill_to = Vector2(0, 1) - -[sub_resource type="Gradient" id="Gradient_hqvtw"] -offsets = PackedFloat32Array(0.459016, 0.565574, 0.704918, 0.827869, 0.92623, 1) -colors = PackedColorArray(0, 0, 0, 1, 0.132947, 0.132947, 0.132947, 0.867053, 0.286885, 0.286885, 0.286885, 0.713115, 0.536475, 0.536475, 0.536475, 0.463525, 0.790666, 0.790666, 0.790666, 0.209334, 1, 1, 1, 0) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_50sv0"] -gradient = SubResource("Gradient_hqvtw") -fill = 1 -fill_from = Vector2(0, 1) -fill_to = Vector2(1, 1) - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3bw0j"] -shader = ExtResource("8_4531v") -shader_parameter/dissolve = SubResource("GradientTexture2D_50sv0") - -[sub_resource type="InputEventKey" id="InputEventKey_x0ps1"] -device = -1 -ctrl_pressed = true -keycode = 68 - -[sub_resource type="Shortcut" id="Shortcut_vp2fh"] -events = [SubResource("InputEventKey_x0ps1")] - -[sub_resource type="LabelSettings" id="LabelSettings_0fjy0"] -font_size = 21 - -[sub_resource type="InputEventKey" id="InputEventKey_0jlka"] -device = -1 -ctrl_pressed = true -keycode = 82 - -[sub_resource type="Shortcut" id="Shortcut_axi6u"] -events = [SubResource("InputEventKey_0jlka")] - -[sub_resource type="InputEventKey" id="InputEventKey_117g0"] -device = -1 -ctrl_pressed = true -keycode = 83 - -[sub_resource type="Shortcut" id="Shortcut_8p5o4"] -events = [SubResource("InputEventKey_117g0")] - -[sub_resource type="InputEventKey" id="InputEventKey_5af16"] -device = -1 -keycode = 32 -unicode = 32 - -[sub_resource type="Shortcut" id="Shortcut_0ov5v"] -events = [SubResource("InputEventKey_5af16")] - -[sub_resource type="InputEventKey" id="InputEventKey_l1ahe"] -device = -1 -keycode = 4194321 - -[sub_resource type="Shortcut" id="Shortcut_qw6pv"] -events = [SubResource("InputEventKey_l1ahe")] - -[sub_resource type="InputEventKey" id="InputEventKey_c5qef"] -device = -1 -keycode = 76 -unicode = 108 - -[sub_resource type="Shortcut" id="Shortcut_vot6l"] -events = [SubResource("InputEventKey_c5qef")] - -[sub_resource type="InputEventKey" id="InputEventKey_y4cc2"] -device = -1 -keycode = 4194319 - -[sub_resource type="Shortcut" id="Shortcut_xu6hm"] -events = [SubResource("InputEventKey_y4cc2")] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 3 -outline_color = Color(0.215902, 0.215902, 0.215902, 1) - -[sub_resource type="LabelSettings" id="LabelSettings_jg5vn"] -font_size = 20 -outline_size = 3 -outline_color = Color(0.393086, 0.393086, 0.393085, 1) - -[sub_resource type="InputEventKey" id="InputEventKey_puhgg"] -device = -1 -ctrl_pressed = true -keycode = 81 - -[sub_resource type="Shortcut" id="Shortcut_g3fcr"] -events = [SubResource("InputEventKey_puhgg")] - -[sub_resource type="LabelSettings" id="LabelSettings_fiiw4"] -font_size = 12 - -[node name="Node2D" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="TextureRect" parent="."] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("2_wf35v") -stretch_mode = 6 - -[node name="Evening" type="TextureRect" parent="."] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("6_5vm0w") -stretch_mode = 6 - -[node name="Nighttime" type="TextureRect" parent="."] -visible = false -modulate = Color(0.347817, 0.347817, 0.347817, 1) -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("6_8abnc") -stretch_mode = 6 - -[node name="UserBG" type="TextureRect" parent="."] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -expand_mode = 5 -stretch_mode = 6 - -[node name="Logo" type="Sprite2D" parent="."] -visible = false -modulate = Color(1, 1, 1, 0.686275) -position = Vector2(192, 162) -scale = Vector2(0.159259, 0.159259) -texture = ExtResource("10_xnj6a") - -[node name="PausedIndicator" type="TextureRect" parent="."] -material = SubResource("ShaderMaterial_ku7tv") -layout_mode = 1 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_top = -164.0 -grow_horizontal = 2 -grow_vertical = 0 -texture = SubResource("GradientTexture2D_bhdch") - -[node name="CoverHolder" type="Control" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = -3.0 -offset_top = 1.0 -offset_right = -3.0 -offset_bottom = 1.0 -grow_vertical = 0 - -[node name="Cover" type="Sprite2D" parent="CoverHolder"] -modulate = Color(1, 1, 1, 0.592157) -material = SubResource("ShaderMaterial_3bw0j") -scale = Vector2(0.333333, 0.333333) -region_rect = Rect2(142.036, 106.625, 632.359, 516.605) -region_filter_clip_enabled = true -script = ExtResource("12_3v50a") - -[node name="SelectDirectory" type="Button" parent="."] -layout_mode = 0 -offset_left = 140.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vp2fh") -text = "select the -directory" - -[node name="SelectPlaylist" type="Button" parent="."] -layout_mode = 0 -offset_left = 20.0 -offset_top = 24.0 -offset_right = 131.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vp2fh") -text = "Playlists" - -[node name="PlaylistsContainer" type="ScrollContainer" parent="."] -layout_mode = 0 -offset_left = 3.0 -offset_top = 83.0 -offset_right = 352.0 -offset_bottom = 661.0 -follow_focus = true -horizontal_scroll_mode = 0 - -[node name="VBoxContainer" type="VBoxContainer" parent="PlaylistsContainer"] -layout_mode = 2 -size_flags_horizontal = 0 -size_flags_vertical = 4 -alignment = 1 - -[node name="Label" type="Label" parent="PlaylistsContainer/VBoxContainer"] -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 0 -text = "PLAYLISTS" -label_settings = SubResource("LabelSettings_0fjy0") - -[node name="PlaylistsHolder" type="VBoxContainer" parent="PlaylistsContainer/VBoxContainer"] -layout_mode = 2 -size_flags_vertical = 4 -alignment = 1 - -[node name="RandomizeList" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -254.0 -offset_top = 24.0 -offset_right = -86.0 -offset_bottom = 80.0 -grow_horizontal = 0 -focus_mode = 0 -shortcut = SubResource("Shortcut_axi6u") -text = "Randomize" - -[node name="SettingsButton" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -77.0 -offset_top = 23.0 -offset_right = -5.0 -offset_bottom = 95.0 -grow_horizontal = 0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -shortcut = SubResource("Shortcut_8p5o4") -icon = ExtResource("11_esjel") -script = ExtResource("12_073mb") - -[node name="SettingsPopup" type="Popup" parent="."] -position = Vector2i(319, 85) -size = Vector2i(591, 501) - -[node name="SettingsMenuChild" parent="SettingsPopup" instance=ExtResource("13_7atry")] -offset_left = -272.0 -offset_top = 8.0 -offset_bottom = 458.0 - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(576, 507) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 -use_native_dialog = true - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] -bus = &"Music" - -[node name="playList" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 20.0 -offset_top = -77.0 -offset_right = 92.0 -offset_bottom = -5.0 -grow_vertical = 0 -scale = Vector2(0.5, 0.5) -focus_mode = 0 -shortcut = SubResource("Shortcut_0ov5v") -icon = ExtResource("8_5v7u3") - -[node name="AddRemoveFromPlaylist" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 62.0 -offset_top = -77.0 -offset_right = 134.0 -offset_bottom = -5.0 -grow_vertical = 0 -scale = Vector2(0.5, 0.5) -icon = ExtResource("14_mioc4") - -[node name="CurrentProgress" type="HSlider" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 106.0 -offset_top = -88.0 -offset_right = -211.0 -offset_bottom = -24.0 -grow_horizontal = 2 -grow_vertical = 0 -max_value = 1000.0 -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -105.0 -offset_top = -75.0 -offset_right = -65.0 -offset_bottom = -35.0 -grow_horizontal = 0 -grow_vertical = 0 -focus_mode = 0 -shortcut = SubResource("Shortcut_qw6pv") -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -152.0 -offset_top = -75.0 -offset_right = -112.0 -offset_bottom = -35.0 -grow_horizontal = 0 -grow_vertical = 0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vot6l") -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -157.0 -offset_top = -35.0 -offset_right = -117.0 -offset_bottom = 5.0 -grow_horizontal = 0 -grow_vertical = 0 -rotation = 3.14159 -focus_mode = 0 -shortcut = SubResource("Shortcut_xu6hm") -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 109.0 -offset_top = -124.0 -offset_right = -158.0 -offset_bottom = -93.0 -grow_horizontal = 2 -grow_vertical = 0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="ArtistName" type="Label" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 109.0 -offset_top = -103.0 -offset_right = -158.0 -offset_bottom = -72.0 -grow_horizontal = 2 -grow_vertical = 0 -text = "if this text is visible the programmer is lazy" -label_settings = SubResource("LabelSettings_jg5vn") -clip_text = true -text_overrun_behavior = 2 - -[node name="SearchToggle" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -318.0 -offset_top = 24.0 -offset_right = -246.0 -offset_bottom = 96.0 -grow_horizontal = 0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -toggle_mode = true -shortcut = SubResource("Shortcut_g3fcr") -icon = ExtResource("12_cv2gm") -script = ExtResource("13_5illk") -PressedIcon = ExtResource("14_mioc4") -NotPressedIcon = ExtResource("12_cv2gm") - -[node name="SearchBar" type="LineEdit" parent="."] -visible = false -layout_mode = 1 -anchors_preset = -1 -anchor_right = 1.0 -offset_left = 264.0 -offset_top = 24.0 -offset_right = -328.0 -offset_bottom = 80.0 -grow_horizontal = 2 -focus_mode = 1 -placeholder_text = "Search" -alignment = 1 -caret_blink = true -script = ExtResource("12_mr42x") - -[node name="SongsMenu" type="MenuButton" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_right = 1.0 -offset_left = 264.0 -offset_top = 24.0 -offset_right = -328.0 -offset_bottom = 80.0 -grow_horizontal = 2 -text = "Select Songs" -flat = false - -[node name="SearchResults" type="PopupMenu" parent="."] -handle_input_locally = false -position = Vector2i(265, 80) -size = Vector2i(623, 300) -wrap_controls = false -max_size = Vector2i(625, 300) -allow_search = false - -[node name="VolumeButton" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -58.0 -offset_top = -75.0 -offset_right = -18.0 -offset_bottom = -35.0 -grow_horizontal = 0 -grow_vertical = 0 -focus_mode = 0 -toggle_mode = true -icon = ExtResource("6_3mi6c") -script = ExtResource("14_7q3ja") - -[node name="VolumeSlider" type="VSlider" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -46.0 -offset_top = -83.0 -offset_right = -30.0 -offset_bottom = -75.0 -grow_horizontal = 0 -grow_vertical = 0 -size_flags_horizontal = 1 -size_flags_vertical = 8 -value = 100.0 - -[node name="TimeListeningSong" type="Label" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 109.0 -offset_top = -47.0 -offset_right = 221.0 -offset_bottom = -11.0 -grow_vertical = 0 - -[node name="DiscordMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 1042.0 -offset_top = 174.0 -offset_right = 1082.0 -offset_bottom = 214.0 - -[node name="YtTabButton" type="Button" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -97.0 -offset_top = 109.0 -offset_right = 551.0 -offset_bottom = 560.0 -grow_horizontal = 0 -grow_vertical = 2 -scale = Vector2(0.105, 0.105) -focus_mode = 0 -toggle_mode = true -icon = ExtResource("12_bc5ym") -flat = true -script = ExtResource("16_2t15p") - -[node name="YoutubeMenuHolder" type="Control" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -358.0 -offset_top = 107.0 -offset_right = -318.0 -offset_bottom = 147.0 -grow_horizontal = 0 - -[node name="Youtube menu" type="Control" parent="YoutubeMenuHolder"] -layout_mode = 3 -anchors_preset = 0 -offset_right = 200.0 -offset_bottom = 363.0 - -[node name="YTLink" type="LineEdit" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -229.0 -offset_bottom = 47.0 -grow_horizontal = 0 -placeholder_text = "Youtube link(can be playlist)" - -[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -offset_left = -29.0 -offset_top = 70.465 -offset_right = 58.0 -offset_bottom = 110.465 -focus_mode = 0 -text = "Download" - -[node name="LoadingIMG" type="Sprite2D" parent="YoutubeMenuHolder/Youtube menu"] -position = Vector2(80, 90.165) -rotation = 1.5708 -scale = Vector2(-0.5, 0.5) -texture = ExtResource("13_de5ej") -script = ExtResource("14_rhw4k") - -[node name="Label" type="Label" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 0 -offset_left = -27.795 -offset_top = 49.0 -offset_right = 197.205 -offset_bottom = 72.0 -text = "NOTE: speeds depend on your internet" -label_settings = SubResource("LabelSettings_fiiw4") - -[node name="Version" type="Label" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -64.0 -offset_top = -23.0 -grow_horizontal = 0 -grow_vertical = 0 -text = "v1.1.0" -horizontal_alignment = 2 - -[node name="WavDisclaimer" type="AcceptDialog" parent="."] -transparent_bg = true -title = "WAV disclaimer" -initial_position = 4 -size = Vector2i(256, 100) -transparent = true -popup_window = true -force_native = true -dialog_text = "wav files are not supported yet" - -[connection signal="pressed" from="SettingsButton" to="SettingsButton" method="_on_pressed"] -[connection signal="toggled" from="SearchToggle" to="SearchToggle" method="_on_toggled"] -[connection signal="text_submitted" from="SearchBar" to="SearchBar" method="_on_text_submitted"] -[connection signal="index_pressed" from="SearchResults" to="SearchBar" method="_on_search_results_index_pressed"] -[connection signal="toggled" from="VolumeButton" to="VolumeButton" method="_on_toggled"] -[connection signal="toggled" from="YtTabButton" to="YtTabButton" method="_on_toggled"] diff --git a/Mai57B3.tmp b/Mai57B3.tmp deleted file mode 100644 index a545687..0000000 --- a/Mai57B3.tmp +++ /dev/null @@ -1,308 +0,0 @@ -[gd_scene load_steps=26 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://snne8iiftksi" path="res://Evening_view_of_Munnar_1633.jpg" id="6_5vm0w"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Play.png" id="8_5v7u3"] -[ext_resource type="Shader" path="res://CoverShader.gdshader" id="8_4531v"] -[ext_resource type="Texture2D" uid="uid://b00wlqid2jdvi" path="res://BigLogo.png" id="10_xnj6a"] -[ext_resource type="Script" path="res://cover.gd" id="12_3v50a"] -[ext_resource type="Texture2D" uid="uid://bdpat2sfflaxq" path="res://Youtube_logo.png" id="12_bc5ym"] -[ext_resource type="Script" path="res://search_bar.gd" id="12_mr42x"] -[ext_resource type="Texture2D" uid="uid://b5eims5ucn81r" path="res://Loding.png" id="13_de5ej"] -[ext_resource type="Script" path="res://volume_button.gd" id="14_7q3ja"] -[ext_resource type="Script" path="res://Spinning.gd" id="14_rhw4k"] -[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] - -[sub_resource type="Gradient" id="Gradient_hqvtw"] -offsets = PackedFloat32Array(0.459016, 0.565574, 0.704918, 0.827869, 0.92623, 1) -colors = PackedColorArray(0, 0, 0, 1, 0.132947, 0.132947, 0.132947, 0.867053, 0.286885, 0.286885, 0.286885, 0.713115, 0.536475, 0.536475, 0.536475, 0.463525, 0.790666, 0.790666, 0.790666, 0.209334, 1, 1, 1, 0) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_50sv0"] -gradient = SubResource("Gradient_hqvtw") -fill = 1 -fill_from = Vector2(0, 1) -fill_to = Vector2(1, 1) - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3bw0j"] -shader = ExtResource("8_4531v") -shader_parameter/dissolve = SubResource("GradientTexture2D_50sv0") - -[sub_resource type="InputEventKey" id="InputEventKey_5af16"] -device = -1 -keycode = 32 -unicode = 32 - -[sub_resource type="Shortcut" id="Shortcut_0ov5v"] -events = [SubResource("InputEventKey_5af16")] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 2 -outline_color = Color(0, 0, 0, 1) -shadow_color = Color(0, 0, 0, 0.643137) -shadow_offset = Vector2(7.88, 4.31) - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="Sprite2D" parent="."] -position = Vector2(576.949, 401) -scale = Vector2(1.27923, 1.25956) -texture = ExtResource("2_wf35v") - -[node name="Evening" type="Sprite2D" parent="."] -position = Vector2(582, 342) -scale = Vector2(1.00181, 1.00181) -texture = ExtResource("6_5vm0w") - -[node name="Nighttime" type="Sprite2D" parent="."] -visible = false -modulate = Color(0.347817, 0.347817, 0.347817, 1) -position = Vector2(610, 326) -scale = Vector2(1.49056, 1.51111) -texture = ExtResource("6_8abnc") - -[node name="CoverHolder" type="Node2D" parent="."] -position = Vector2(-3, 649) - -[node name="Cover" type="Sprite2D" parent="CoverHolder"] -modulate = Color(1, 1, 1, 0.592157) -material = SubResource("ShaderMaterial_3bw0j") -position = Vector2(200, -122.333) -scale = Vector2(0.333333, 0.333333) -region_rect = Rect2(142.036, 106.625, 632.359, 516.605) -region_filter_clip_enabled = true -script = ExtResource("12_3v50a") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 20.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -focus_mode = 0 -text = "select the directory -(playlist's folder)" - -[node name="RandomizeList" type="Button" parent="."] -offset_left = 897.0 -offset_top = 24.0 -offset_right = 1132.0 -offset_bottom = 80.0 -focus_mode = 0 -text = "Randomize the Playlist" - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(470, 320) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 -use_native_dialog = true - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] - -[node name="playList" type="Button" parent="."] -offset_left = 20.0 -offset_top = 572.0 -offset_right = 92.0 -offset_bottom = 644.0 -scale = Vector2(0.5, 0.5) -focus_mode = 0 -shortcut = SubResource("Shortcut_0ov5v") -icon = ExtResource("8_5v7u3") - -[node name="CurrentProgress" type="HSlider" parent="."] -offset_left = 64.0 -offset_top = 560.0 -offset_right = 944.0 -offset_bottom = 624.0 -max_value = 1000.0 -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -focus_mode = 0 -icon = ExtResource("3_4vx67") - -[node name="Skip2" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -focus_mode = 0 -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -offset_left = 1000.0 -offset_top = 573.0 -offset_right = 1040.0 -offset_bottom = 613.0 -focus_mode = 0 -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -offset_left = 994.0 -offset_top = 613.0 -offset_right = 1034.0 -offset_bottom = 653.0 -rotation = 3.14159 -focus_mode = 0 -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -offset_left = 66.0 -offset_top = 524.0 -offset_right = 994.0 -offset_bottom = 581.0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="SearchBar" type="LineEdit" parent="."] -offset_left = 266.0 -offset_top = 24.0 -offset_right = 883.0 -offset_bottom = 83.0 -script = ExtResource("12_mr42x") - -[node name="SearchResults" type="PopupMenu" parent="."] -position = Vector2i(265, 80) -size = Vector2i(625, 300) -max_size = Vector2i(625, 300) -hide_on_state_item_selection = true -allow_search = false - -[node name="VolumeButton" type="Button" parent="."] -offset_left = 1092.0 -offset_top = 573.0 -offset_right = 1132.0 -offset_bottom = 613.0 -focus_mode = 0 -toggle_mode = true -icon = ExtResource("6_3mi6c") -script = ExtResource("14_7q3ja") - -[node name="VolumeSlider" type="VSlider" parent="."] -layout_direction = 3 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -1121.0 -offset_top = 563.0 -offset_right = -1103.0 -offset_bottom = 571.0 -grow_horizontal = 2 -grow_vertical = 0 -size_flags_horizontal = 1 -size_flags_vertical = 8 -value = 100.0 - -[node name="Logo" type="Sprite2D" parent="."] -modulate = Color(1, 1, 1, 0.686275) -position = Vector2(192, 162) -scale = Vector2(0.159259, 0.159259) -texture = ExtResource("10_xnj6a") - -[node name="TimeListeningSong" type="Label" parent="."] -offset_left = 66.0 -offset_top = 597.0 -offset_right = 178.0 -offset_bottom = 633.0 - -[node name="YtTabButton" type="Button" parent="."] -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = 1065.0 -offset_top = 107.0 -offset_right = 1713.0 -offset_bottom = 558.0 -grow_horizontal = 0 -scale = Vector2(0.105, 0.105) -focus_mode = 0 -toggle_mode = true -icon = ExtResource("12_bc5ym") -flat = true -script = ExtResource("16_2t15p") - -[node name="YoutubeMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 794.0 -offset_top = 107.0 -offset_right = 834.0 -offset_bottom = 147.0 - -[node name="Youtube menu" type="Control" parent="YoutubeMenuHolder"] -layout_mode = 3 -anchors_preset = 0 -offset_right = 200.0 -offset_bottom = 363.0 - -[node name="YTLink" type="LineEdit" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -201.0 -offset_bottom = 47.0 -grow_horizontal = 0 -placeholder_text = "Youtube link(can be playlist)" - -[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -offset_top = 58.0 -offset_right = 87.0 -offset_bottom = 98.0 -focus_mode = 0 -text = "Download" - -[node name="LoadingIMG" type="Sprite2D" parent="YoutubeMenuHolder/Youtube menu"] -position = Vector2(113, 78) -rotation = 1.5708 -scale = Vector2(-0.5, 0.5) -texture = ExtResource("13_de5ej") -script = ExtResource("14_rhw4k") - -[node name="Version" type="Label" parent="."] -offset_left = 1083.0 -offset_top = 625.0 -offset_right = 1147.0 -offset_bottom = 648.0 -text = "v0.9.2" -horizontal_alignment = 2 - -[node name="WavDisclaimer" type="AcceptDialog" parent="."] -transparent_bg = true -title = "WAV disclaimer" -position = Vector2i(495, 305) -size = Vector2i(256, 100) -transparent = true -popup_window = true -force_native = true -dialog_text = "wav files are not supported yet" - -[connection signal="text_changed" from="SearchBar" to="SearchBar" method="_on_text_changed"] -[connection signal="toggled" from="VolumeButton" to="VolumeButton" method="_on_toggled"] -[connection signal="toggled" from="YtTabButton" to="YtTabButton" method="_on_toggled"] diff --git a/Mai5C18.tmp b/Mai5C18.tmp deleted file mode 100644 index af0377d..0000000 --- a/Mai5C18.tmp +++ /dev/null @@ -1,100 +0,0 @@ -[gd_scene load_steps=5 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] - -[sub_resource type="LabelSettings" id="LabelSettings_4jg7r"] -font_size = 34 -outline_size = 2 -outline_color = Color(0, 0, 0, 1) -shadow_size = 2 - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") - -[node name="D7Hftxdivxxvm_cloudfront" type="Sprite2D" parent="."] -position = Vector2(576.949, 299) -scale = Vector2(1.27923, 1.25956) -texture = ExtResource("2_wf35v") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 43.0 -offset_top = 24.0 -offset_right = 278.0 -offset_bottom = 65.0 -text = "select playlist folder" - -[node name="RandomizeList" type="Button" parent="."] -offset_left = 767.0 -offset_top = 29.0 -offset_right = 1002.0 -offset_bottom = 70.0 -text = "Randomize Playlist" - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(325, 115) -size = Vector2i(427, 320) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] - -[node name="playList" type="Button" parent="."] -offset_left = 187.0 -offset_top = 572.0 -offset_right = 274.0 -offset_bottom = 612.0 -text = "play" - -[node name="pause" type="Button" parent="."] -offset_left = 88.0 -offset_top = 572.0 -offset_right = 175.0 -offset_bottom = 612.0 -text = "toggle -pause" - -[node name="CurrentProgress" type="HSlider" parent="."] -offset_left = 286.0 -offset_top = 560.0 -offset_right = 895.0 -offset_bottom = 624.0 -ticks_on_borders = true - -[node name="VolumeSlider" type="VSlider" parent="."] -offset_left = 1125.0 -offset_top = 333.0 -offset_right = 1141.0 -offset_bottom = 623.0 -value = 100.0 - -[node name="Label" type="Label" parent="."] -offset_left = 1094.0 -offset_top = 331.0 -offset_right = 1121.0 -offset_bottom = 611.0 -text = "V -O -L -U -M -E" -label_settings = SubResource("LabelSettings_4jg7r") - -[node name="Skip" type="Button" parent="."] -offset_left = 956.0 -offset_top = 572.0 -offset_right = 996.0 -offset_bottom = 612.0 -icon = ExtResource("3_4vx67") - -[node name="GoBack" type="Button" parent="."] -offset_left = 942.0 -offset_top = 612.0 -offset_right = 982.0 -offset_bottom = 652.0 -rotation = 3.14159 -icon = ExtResource("3_4vx67") diff --git a/MaiC00.tmp b/MaiC00.tmp deleted file mode 100644 index b843585..0000000 --- a/MaiC00.tmp +++ /dev/null @@ -1,24 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 43.0 -offset_top = 24.0 -offset_right = 278.0 -offset_bottom = 65.0 -text = "select playlist folder" - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(140, 225) -size = Vector2i(352, 180) -visible = true -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] diff --git a/MaiD836.tmp b/MaiD836.tmp deleted file mode 100644 index 3169b32..0000000 --- a/MaiD836.tmp +++ /dev/null @@ -1,185 +0,0 @@ -[gd_scene load_steps=14 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://itxrsfeiey6k" path="res://unnamed.jpg" id="5_o3jj7"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="AudioStream" uid="uid://cvndnnx1mdvqp" path="res://Project_4.mp3" id="7_8fltb"] -[ext_resource type="Texture2D" uid="uid://b5ml1dkiuo5ta" path="res://Logo.png" id="11_boad2"] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 2 -outline_color = Color(0, 0, 0, 1) -shadow_color = Color(0, 0, 0, 0.643137) -shadow_offset = Vector2(7.88, 4.31) - -[sub_resource type="LabelSettings" id="LabelSettings_ywsb0"] -font_size = 36 -outline_size = 2 -outline_color = Color(0, 0, 0, 1) -shadow_size = 2 -shadow_color = Color(0, 0, 0, 0.486275) -shadow_offset = Vector2(6.725, 10.16) - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="Sprite2D" parent="."] -position = Vector2(576.949, 299) -scale = Vector2(1.27923, 1.25956) -texture = ExtResource("2_wf35v") - -[node name="Evening" type="Sprite2D" parent="."] -position = Vector2(575, 350) -scale = Vector2(2.27353, 2.27353) -texture = ExtResource("5_o3jj7") - -[node name="Nighttime" type="Sprite2D" parent="."] -modulate = Color(0.347817, 0.347817, 0.347817, 1) -position = Vector2(599, 323) -scale = Vector2(1.47, 1.47) -texture = ExtResource("6_8abnc") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 20.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -text = "select the directory -(playlist's folder)" - -[node name="RandomizeList" type="Button" parent="."] -offset_left = 897.0 -offset_top = 24.0 -offset_right = 1132.0 -offset_bottom = 80.0 -text = "Randomize the Playlist" - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(470, 320) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] - -[node name="playList" type="Button" parent="."] -offset_left = 12.0 -offset_top = 572.0 -offset_right = 99.0 -offset_bottom = 612.0 -text = "play" - -[node name="CurrentProgress" type="HSlider" parent="."] -offset_left = 107.0 -offset_top = 560.0 -offset_right = 994.0 -offset_bottom = 624.0 -max_value = 1000.0 -editable = false -scrollable = false -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -offset_left = 1092.0 -offset_top = 573.0 -offset_right = 1132.0 -offset_bottom = 613.0 -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -offset_left = 1040.0 -offset_top = 613.0 -offset_right = 1080.0 -offset_bottom = 653.0 -rotation = 3.14159 -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -offset_left = 107.0 -offset_top = 516.0 -offset_right = 993.0 -offset_bottom = 573.0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="Song list" type="MenuButton" parent="."] -offset_left = 265.0 -offset_top = 24.0 -offset_right = 888.0 -offset_bottom = 80.0 -text = "Select a Song" -flat = false -switch_on_hover = true - -[node name="Sprite2D" type="Sprite2D" parent="."] -position = Vector2(1090, 253) -scale = Vector2(1.875, 1.875) -texture = ExtResource("6_3mi6c") - -[node name="Label" type="Label" parent="."] -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 1079.0 -offset_top = 248.0 -offset_right = 1119.0 -offset_bottom = 563.0 -grow_horizontal = 0 -grow_vertical = 0 -text = "V -O -L -U -M -E" -label_settings = SubResource("LabelSettings_ywsb0") - -[node name="VolumeSlider" type="VSlider" parent="."] -offset_left = 1114.0 -offset_top = 250.0 -offset_right = 1130.0 -offset_bottom = 572.0 -value = 100.0 - -[node name="Intro" type="AudioStreamPlayer" parent="."] -stream = ExtResource("7_8fltb") -autoplay = true - -[node name="Logo" type="Sprite2D" parent="."] -modulate = Color(1, 1, 1, 0.423529) -position = Vector2(277, 209) -texture = ExtResource("11_boad2") - -[node name="TimeListeningSong" type="Label" parent="."] -offset_left = 112.0 -offset_top = 603.0 -offset_right = 224.0 -offset_bottom = 639.0 diff --git a/MaiE09B.tmp b/MaiE09B.tmp deleted file mode 100644 index 25e8617..0000000 --- a/MaiE09B.tmp +++ /dev/null @@ -1,665 +0,0 @@ -[gd_scene load_steps=53 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://snne8iiftksi" path="res://Evening_view_of_Munnar_1633.jpg" id="6_5vm0w"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Play.png" id="8_5v7u3"] -[ext_resource type="Shader" path="res://CoverShader.gdshader" id="8_4531v"] -[ext_resource type="Shader" path="res://Main.gdshader" id="10_20857"] -[ext_resource type="Texture2D" uid="uid://b00wlqid2jdvi" path="res://BigLogo.png" id="10_xnj6a"] -[ext_resource type="Texture2D" uid="uid://0r1tx6l1lc6x" path="res://settingscog.png" id="11_esjel"] -[ext_resource type="Script" path="res://cover.gd" id="12_3v50a"] -[ext_resource type="Script" path="res://settings_button.gd" id="12_073mb"] -[ext_resource type="Texture2D" uid="uid://bdpat2sfflaxq" path="res://Youtube_logo.png" id="12_bc5ym"] -[ext_resource type="Texture2D" uid="uid://myq6n4bshduj" path="res://search.png" id="12_cv2gm"] -[ext_resource type="Script" path="res://search_bar.gd" id="12_mr42x"] -[ext_resource type="Script" path="res://search_toggle.gd" id="13_5illk"] -[ext_resource type="PackedScene" uid="uid://dqg674t6kun4e" path="res://Settings.tscn" id="13_7atry"] -[ext_resource type="Texture2D" uid="uid://b5eims5ucn81r" path="res://Loding.png" id="13_de5ej"] -[ext_resource type="Script" path="res://volume_button.gd" id="14_7q3ja"] -[ext_resource type="Texture2D" uid="uid://1rstn6r2wisy" path="res://X.png" id="14_mioc4"] -[ext_resource type="Script" path="res://Spinning.gd" id="14_rhw4k"] -[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ku7tv"] -shader = ExtResource("10_20857") -shader_parameter/intensity = 1.0 - -[sub_resource type="Gradient" id="Gradient_7vgyc"] -offsets = PackedFloat32Array(0.00292398, 0.845029) -colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_bhdch"] -gradient = SubResource("Gradient_7vgyc") -fill_to = Vector2(0, 1) - -[sub_resource type="Gradient" id="Gradient_hqvtw"] -offsets = PackedFloat32Array(0.459016, 0.565574, 0.704918, 0.827869, 0.92623, 1) -colors = PackedColorArray(0, 0, 0, 1, 0.132947, 0.132947, 0.132947, 0.867053, 0.286885, 0.286885, 0.286885, 0.713115, 0.536475, 0.536475, 0.536475, 0.463525, 0.790666, 0.790666, 0.790666, 0.209334, 1, 1, 1, 0) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_50sv0"] -gradient = SubResource("Gradient_hqvtw") -fill = 1 -fill_from = Vector2(0, 1) -fill_to = Vector2(1, 1) - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3bw0j"] -shader = ExtResource("8_4531v") -shader_parameter/dissolve = SubResource("GradientTexture2D_50sv0") - -[sub_resource type="InputEventKey" id="InputEventKey_x0ps1"] -device = -1 -ctrl_pressed = true -keycode = 68 - -[sub_resource type="Shortcut" id="Shortcut_vp2fh"] -events = [SubResource("InputEventKey_x0ps1")] - -[sub_resource type="LabelSettings" id="LabelSettings_0fjy0"] -font_size = 21 - -[sub_resource type="InputEventKey" id="InputEventKey_0jlka"] -device = -1 -ctrl_pressed = true -keycode = 82 - -[sub_resource type="Shortcut" id="Shortcut_axi6u"] -events = [SubResource("InputEventKey_0jlka")] - -[sub_resource type="InputEventKey" id="InputEventKey_117g0"] -device = -1 -ctrl_pressed = true -keycode = 83 - -[sub_resource type="Shortcut" id="Shortcut_8p5o4"] -events = [SubResource("InputEventKey_117g0")] - -[sub_resource type="InputEventKey" id="InputEventKey_5af16"] -device = -1 -keycode = 32 -unicode = 32 - -[sub_resource type="Shortcut" id="Shortcut_0ov5v"] -events = [SubResource("InputEventKey_5af16")] - -[sub_resource type="InputEventKey" id="InputEventKey_l1ahe"] -device = -1 -keycode = 4194321 - -[sub_resource type="Shortcut" id="Shortcut_qw6pv"] -events = [SubResource("InputEventKey_l1ahe")] - -[sub_resource type="InputEventKey" id="InputEventKey_c5qef"] -device = -1 -keycode = 76 -unicode = 108 - -[sub_resource type="Shortcut" id="Shortcut_vot6l"] -events = [SubResource("InputEventKey_c5qef")] - -[sub_resource type="InputEventKey" id="InputEventKey_y4cc2"] -device = -1 -keycode = 4194319 - -[sub_resource type="Shortcut" id="Shortcut_xu6hm"] -events = [SubResource("InputEventKey_y4cc2")] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 3 -outline_color = Color(0.215902, 0.215902, 0.215902, 1) - -[sub_resource type="LabelSettings" id="LabelSettings_jg5vn"] -font_size = 20 -outline_size = 3 -outline_color = Color(0.393086, 0.393086, 0.393085, 1) - -[sub_resource type="InputEventKey" id="InputEventKey_puhgg"] -device = -1 -ctrl_pressed = true -keycode = 81 - -[sub_resource type="Shortcut" id="Shortcut_g3fcr"] -events = [SubResource("InputEventKey_puhgg")] - -[sub_resource type="LabelSettings" id="LabelSettings_fiiw4"] -font_size = 12 - -[node name="Node2D" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="TextureRect" parent="."] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("2_wf35v") -stretch_mode = 6 - -[node name="Evening" type="TextureRect" parent="."] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("6_5vm0w") -stretch_mode = 6 - -[node name="Nighttime" type="TextureRect" parent="."] -visible = false -modulate = Color(0.347817, 0.347817, 0.347817, 1) -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("6_8abnc") -stretch_mode = 6 - -[node name="UserBG" type="TextureRect" parent="."] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -expand_mode = 5 -stretch_mode = 6 - -[node name="Logo" type="Sprite2D" parent="."] -visible = false -modulate = Color(1, 1, 1, 0.686275) -position = Vector2(192, 162) -scale = Vector2(0.159259, 0.159259) -texture = ExtResource("10_xnj6a") - -[node name="PausedIndicator" type="TextureRect" parent="."] -material = SubResource("ShaderMaterial_ku7tv") -layout_mode = 1 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_top = -164.0 -grow_horizontal = 2 -grow_vertical = 0 -texture = SubResource("GradientTexture2D_bhdch") - -[node name="CoverHolder" type="Control" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = -3.0 -offset_top = 1.0 -offset_right = -3.0 -offset_bottom = 1.0 -grow_vertical = 0 - -[node name="Cover" type="Sprite2D" parent="CoverHolder"] -modulate = Color(1, 1, 1, 0.592157) -material = SubResource("ShaderMaterial_3bw0j") -scale = Vector2(0.333333, 0.333333) -region_rect = Rect2(142.036, 106.625, 632.359, 516.605) -region_filter_clip_enabled = true -script = ExtResource("12_3v50a") - -[node name="SelectDirectory" type="Button" parent="."] -layout_mode = 0 -offset_left = 140.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vp2fh") -text = "select the -directory" - -[node name="SelectPlaylist" type="Button" parent="."] -layout_mode = 0 -offset_left = 20.0 -offset_top = 24.0 -offset_right = 131.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vp2fh") -text = "Playlists" - -[node name="PlaylistsContainer" type="ScrollContainer" parent="."] -layout_mode = 0 -offset_left = 3.0 -offset_top = 83.0 -offset_right = 261.0 -offset_bottom = 524.0 - -[node name="VBoxContainer" type="VBoxContainer" parent="PlaylistsContainer"] -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -alignment = 1 - -[node name="Label" type="Label" parent="PlaylistsContainer/VBoxContainer"] -layout_mode = 2 -size_flags_horizontal = 4 -text = "PLAYLISTS" -label_settings = SubResource("LabelSettings_0fjy0") - -[node name="PlaylistsHolder" type="VBoxContainer" parent="PlaylistsContainer/VBoxContainer"] -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 -alignment = 1 - -[node name="RandomizeList" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -254.0 -offset_top = 24.0 -offset_right = -86.0 -offset_bottom = 80.0 -grow_horizontal = 0 -focus_mode = 0 -shortcut = SubResource("Shortcut_axi6u") -text = "Randomize" - -[node name="SettingsButton" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -77.0 -offset_top = 23.0 -offset_right = -5.0 -offset_bottom = 95.0 -grow_horizontal = 0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -shortcut = SubResource("Shortcut_8p5o4") -icon = ExtResource("11_esjel") -script = ExtResource("12_073mb") - -[node name="SettingsPopup" type="Popup" parent="."] -position = Vector2i(259, 85) -size = Vector2i(576, 493) - -[node name="SettingsMenuChild" parent="SettingsPopup" instance=ExtResource("13_7atry")] -offset_left = -272.0 -offset_top = 8.0 -offset_bottom = 458.0 - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(576, 507) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 -use_native_dialog = true - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] -bus = &"Music" - -[node name="playList" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 20.0 -offset_top = -77.0 -offset_right = 92.0 -offset_bottom = -5.0 -grow_vertical = 0 -scale = Vector2(0.5, 0.5) -focus_mode = 0 -shortcut = SubResource("Shortcut_0ov5v") -icon = ExtResource("8_5v7u3") - -[node name="AddRemoveFromPlaylist" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 62.0 -offset_top = -77.0 -offset_right = 134.0 -offset_bottom = -5.0 -grow_vertical = 0 -scale = Vector2(0.5, 0.5) -icon = ExtResource("14_mioc4") - -[node name="CurrentProgress" type="HSlider" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 106.0 -offset_top = -88.0 -offset_right = -211.0 -offset_bottom = -24.0 -grow_horizontal = 2 -grow_vertical = 0 -max_value = 1000.0 -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -105.0 -offset_top = -75.0 -offset_right = -65.0 -offset_bottom = -35.0 -grow_horizontal = 0 -grow_vertical = 0 -focus_mode = 0 -shortcut = SubResource("Shortcut_qw6pv") -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -152.0 -offset_top = -75.0 -offset_right = -112.0 -offset_bottom = -35.0 -grow_horizontal = 0 -grow_vertical = 0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vot6l") -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -157.0 -offset_top = -35.0 -offset_right = -117.0 -offset_bottom = 5.0 -grow_horizontal = 0 -grow_vertical = 0 -rotation = 3.14159 -focus_mode = 0 -shortcut = SubResource("Shortcut_xu6hm") -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 109.0 -offset_top = -124.0 -offset_right = -158.0 -offset_bottom = -93.0 -grow_horizontal = 2 -grow_vertical = 0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="ArtistName" type="Label" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 109.0 -offset_top = -103.0 -offset_right = -158.0 -offset_bottom = -72.0 -grow_horizontal = 2 -grow_vertical = 0 -text = "John doe" -label_settings = SubResource("LabelSettings_jg5vn") -clip_text = true -text_overrun_behavior = 2 - -[node name="SearchToggle" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -318.0 -offset_top = 24.0 -offset_right = -246.0 -offset_bottom = 96.0 -grow_horizontal = 0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -toggle_mode = true -shortcut = SubResource("Shortcut_g3fcr") -icon = ExtResource("12_cv2gm") -script = ExtResource("13_5illk") -PressedIcon = ExtResource("14_mioc4") -NotPressedIcon = ExtResource("12_cv2gm") - -[node name="SearchBar" type="LineEdit" parent="."] -visible = false -layout_mode = 1 -anchors_preset = -1 -anchor_right = 1.0 -offset_left = 264.0 -offset_top = 24.0 -offset_right = -328.0 -offset_bottom = 80.0 -grow_horizontal = 2 -focus_mode = 1 -placeholder_text = "Search" -alignment = 1 -caret_blink = true -script = ExtResource("12_mr42x") - -[node name="SongsMenu" type="MenuButton" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_right = 1.0 -offset_left = 264.0 -offset_top = 24.0 -offset_right = -328.0 -offset_bottom = 80.0 -grow_horizontal = 2 -text = "Select Songs" -flat = false - -[node name="SearchResults" type="PopupMenu" parent="."] -handle_input_locally = false -position = Vector2i(265, 80) -size = Vector2i(623, 300) -wrap_controls = false -max_size = Vector2i(625, 300) -allow_search = false - -[node name="VolumeButton" type="Button" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -58.0 -offset_top = -75.0 -offset_right = -18.0 -offset_bottom = -35.0 -grow_horizontal = 0 -grow_vertical = 0 -focus_mode = 0 -toggle_mode = true -icon = ExtResource("6_3mi6c") -script = ExtResource("14_7q3ja") - -[node name="VolumeSlider" type="VSlider" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -46.0 -offset_top = -83.0 -offset_right = -30.0 -offset_bottom = -75.0 -grow_horizontal = 0 -grow_vertical = 0 -size_flags_horizontal = 1 -size_flags_vertical = 8 -value = 100.0 - -[node name="TimeListeningSong" type="Label" parent="."] -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 109.0 -offset_top = -47.0 -offset_right = 221.0 -offset_bottom = -11.0 -grow_vertical = 0 - -[node name="DiscordMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 1042.0 -offset_top = 174.0 -offset_right = 1082.0 -offset_bottom = 214.0 - -[node name="YtTabButton" type="Button" parent="."] -layout_mode = 1 -anchors_preset = -1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -97.0 -offset_top = 109.0 -offset_right = 551.0 -offset_bottom = 560.0 -grow_horizontal = 0 -grow_vertical = 2 -scale = Vector2(0.105, 0.105) -focus_mode = 0 -toggle_mode = true -icon = ExtResource("12_bc5ym") -flat = true -script = ExtResource("16_2t15p") - -[node name="YoutubeMenuHolder" type="Control" parent="."] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -358.0 -offset_top = 107.0 -offset_right = -318.0 -offset_bottom = 147.0 - -[node name="Youtube menu" type="Control" parent="YoutubeMenuHolder"] -layout_mode = 3 -anchors_preset = 0 -offset_right = 200.0 -offset_bottom = 363.0 - -[node name="YTLink" type="LineEdit" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -229.0 -offset_bottom = 47.0 -grow_horizontal = 0 -placeholder_text = "Youtube link(can be playlist)" - -[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -offset_left = -29.0 -offset_top = 70.465 -offset_right = 58.0 -offset_bottom = 110.465 -focus_mode = 0 -text = "Download" - -[node name="LoadingIMG" type="Sprite2D" parent="YoutubeMenuHolder/Youtube menu"] -position = Vector2(80, 90.165) -rotation = 1.5708 -scale = Vector2(-0.5, 0.5) -texture = ExtResource("13_de5ej") -script = ExtResource("14_rhw4k") - -[node name="Label" type="Label" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 0 -offset_left = -27.795 -offset_top = 49.0 -offset_right = 197.205 -offset_bottom = 72.0 -text = "NOTE: speeds depend on your internet" -label_settings = SubResource("LabelSettings_fiiw4") - -[node name="Version" type="Label" parent="."] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -64.0 -offset_top = -23.0 -grow_horizontal = 0 -grow_vertical = 0 -text = "v1.1.0" -horizontal_alignment = 2 - -[node name="WavDisclaimer" type="AcceptDialog" parent="."] -transparent_bg = true -title = "WAV disclaimer" -initial_position = 4 -size = Vector2i(256, 100) -transparent = true -popup_window = true -force_native = true -dialog_text = "wav files are not supported yet" - -[connection signal="pressed" from="SettingsButton" to="SettingsButton" method="_on_pressed"] -[connection signal="toggled" from="SearchToggle" to="SearchToggle" method="_on_toggled"] -[connection signal="text_submitted" from="SearchBar" to="SearchBar" method="_on_text_submitted"] -[connection signal="index_pressed" from="SearchResults" to="SearchBar" method="_on_search_results_index_pressed"] -[connection signal="toggled" from="VolumeButton" to="VolumeButton" method="_on_toggled"] -[connection signal="toggled" from="YtTabButton" to="YtTabButton" method="_on_toggled"] diff --git a/MaiE368.tmp b/MaiE368.tmp deleted file mode 100644 index 99dbae4..0000000 --- a/MaiE368.tmp +++ /dev/null @@ -1,474 +0,0 @@ -[gd_scene load_steps=52 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://snne8iiftksi" path="res://Evening_view_of_Munnar_1633.jpg" id="6_5vm0w"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Play.png" id="8_5v7u3"] -[ext_resource type="Shader" path="res://CoverShader.gdshader" id="8_4531v"] -[ext_resource type="Shader" path="res://Main.gdshader" id="10_20857"] -[ext_resource type="Texture2D" uid="uid://b00wlqid2jdvi" path="res://BigLogo.png" id="10_xnj6a"] -[ext_resource type="Texture2D" uid="uid://0r1tx6l1lc6x" path="res://settingscog.png" id="11_esjel"] -[ext_resource type="Script" path="res://cover.gd" id="12_3v50a"] -[ext_resource type="Script" path="res://settings_button.gd" id="12_073mb"] -[ext_resource type="Texture2D" uid="uid://bdpat2sfflaxq" path="res://Youtube_logo.png" id="12_bc5ym"] -[ext_resource type="Texture2D" uid="uid://myq6n4bshduj" path="res://search.png" id="12_cv2gm"] -[ext_resource type="Script" path="res://search_bar.gd" id="12_mr42x"] -[ext_resource type="Script" path="res://search_toggle.gd" id="13_5illk"] -[ext_resource type="PackedScene" uid="uid://dqg674t6kun4e" path="res://Settings.tscn" id="13_7atry"] -[ext_resource type="Texture2D" uid="uid://b5eims5ucn81r" path="res://Loding.png" id="13_de5ej"] -[ext_resource type="Script" path="res://volume_button.gd" id="14_7q3ja"] -[ext_resource type="Texture2D" uid="uid://1rstn6r2wisy" path="res://X.png" id="14_mioc4"] -[ext_resource type="Script" path="res://Spinning.gd" id="14_rhw4k"] -[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ku7tv"] -shader = ExtResource("10_20857") -shader_parameter/intensity = 1.0 - -[sub_resource type="Gradient" id="Gradient_7vgyc"] -offsets = PackedFloat32Array(0.00292398, 0.845029) -colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_bhdch"] -gradient = SubResource("Gradient_7vgyc") -fill_to = Vector2(0, 1) - -[sub_resource type="Gradient" id="Gradient_hqvtw"] -offsets = PackedFloat32Array(0.459016, 0.565574, 0.704918, 0.827869, 0.92623, 1) -colors = PackedColorArray(0, 0, 0, 1, 0.132947, 0.132947, 0.132947, 0.867053, 0.286885, 0.286885, 0.286885, 0.713115, 0.536475, 0.536475, 0.536475, 0.463525, 0.790666, 0.790666, 0.790666, 0.209334, 1, 1, 1, 0) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_50sv0"] -gradient = SubResource("Gradient_hqvtw") -fill = 1 -fill_from = Vector2(0, 1) -fill_to = Vector2(1, 1) - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3bw0j"] -shader = ExtResource("8_4531v") -shader_parameter/dissolve = SubResource("GradientTexture2D_50sv0") - -[sub_resource type="InputEventKey" id="InputEventKey_x0ps1"] -device = -1 -ctrl_pressed = true -keycode = 68 - -[sub_resource type="Shortcut" id="Shortcut_vp2fh"] -events = [SubResource("InputEventKey_x0ps1")] - -[sub_resource type="InputEventKey" id="InputEventKey_0jlka"] -device = -1 -ctrl_pressed = true -keycode = 82 - -[sub_resource type="Shortcut" id="Shortcut_axi6u"] -events = [SubResource("InputEventKey_0jlka")] - -[sub_resource type="InputEventKey" id="InputEventKey_117g0"] -device = -1 -ctrl_pressed = true -keycode = 83 - -[sub_resource type="Shortcut" id="Shortcut_8p5o4"] -events = [SubResource("InputEventKey_117g0")] - -[sub_resource type="InputEventKey" id="InputEventKey_5af16"] -device = -1 -keycode = 32 -unicode = 32 - -[sub_resource type="Shortcut" id="Shortcut_0ov5v"] -events = [SubResource("InputEventKey_5af16")] - -[sub_resource type="InputEventKey" id="InputEventKey_l1ahe"] -device = -1 -keycode = 4194321 - -[sub_resource type="Shortcut" id="Shortcut_qw6pv"] -events = [SubResource("InputEventKey_l1ahe")] - -[sub_resource type="InputEventKey" id="InputEventKey_c5qef"] -device = -1 -keycode = 76 -unicode = 108 - -[sub_resource type="Shortcut" id="Shortcut_vot6l"] -events = [SubResource("InputEventKey_c5qef")] - -[sub_resource type="InputEventKey" id="InputEventKey_y4cc2"] -device = -1 -keycode = 4194319 - -[sub_resource type="Shortcut" id="Shortcut_xu6hm"] -events = [SubResource("InputEventKey_y4cc2")] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 3 -outline_color = Color(0.215902, 0.215902, 0.215902, 1) - -[sub_resource type="LabelSettings" id="LabelSettings_jg5vn"] -font_size = 20 -outline_size = 3 -outline_color = Color(0.393086, 0.393086, 0.393085, 1) - -[sub_resource type="InputEventKey" id="InputEventKey_puhgg"] -device = -1 -ctrl_pressed = true -keycode = 81 - -[sub_resource type="Shortcut" id="Shortcut_g3fcr"] -events = [SubResource("InputEventKey_puhgg")] - -[sub_resource type="LabelSettings" id="LabelSettings_fiiw4"] -font_size = 12 - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="Sprite2D" parent="."] -position = Vector2(576.949, 401) -scale = Vector2(1.27923, 1.25956) -texture = ExtResource("2_wf35v") - -[node name="Evening" type="Sprite2D" parent="."] -visible = false -position = Vector2(582, 342) -scale = Vector2(1.00181, 1.00181) -texture = ExtResource("6_5vm0w") - -[node name="Nighttime" type="Sprite2D" parent="."] -visible = false -modulate = Color(0.347817, 0.347817, 0.347817, 1) -position = Vector2(610, 326) -scale = Vector2(1.49056, 1.51111) -texture = ExtResource("6_8abnc") - -[node name="PausedIndicator" type="TextureRect" parent="."] -material = SubResource("ShaderMaterial_ku7tv") -offset_left = -10.0 -offset_top = 468.0 -offset_right = 1161.0 -offset_bottom = 657.0 -texture = SubResource("GradientTexture2D_bhdch") - -[node name="CoverHolder" type="Node2D" parent="."] -position = Vector2(-3, 649) - -[node name="Cover" type="Sprite2D" parent="CoverHolder"] -modulate = Color(1, 1, 1, 0.592157) -material = SubResource("ShaderMaterial_3bw0j") -position = Vector2(200, -122.333) -scale = Vector2(0.333333, 0.333333) -region_rect = Rect2(142.036, 106.625, 632.359, 516.605) -region_filter_clip_enabled = true -script = ExtResource("12_3v50a") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 20.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vp2fh") -text = "select the directory -(playlist's folder)" - -[node name="RandomizeList" type="Button" parent="."] -offset_left = 897.0 -offset_top = 24.0 -offset_right = 1065.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_axi6u") -text = "Randomize" - -[node name="SettingsButton" type="Button" parent="."] -offset_left = 1073.0 -offset_top = 24.0 -offset_right = 1145.0 -offset_bottom = 96.0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -shortcut = SubResource("Shortcut_8p5o4") -icon = ExtResource("11_esjel") -script = ExtResource("12_073mb") - -[node name="SettingsPopup" type="Popup" parent="."] -position = Vector2i(259, 85) -size = Vector2i(576, 493) - -[node name="SettingsMenuChild" parent="SettingsPopup" instance=ExtResource("13_7atry")] -offset_left = -272.0 -offset_top = 8.0 -offset_right = 288.0 -offset_bottom = 458.0 - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(576, 507) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 -use_native_dialog = true - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] -bus = &"Music" - -[node name="playList" type="Button" parent="."] -offset_left = 20.0 -offset_top = 572.0 -offset_right = 92.0 -offset_bottom = 644.0 -scale = Vector2(0.5, 0.5) -focus_mode = 0 -shortcut = SubResource("Shortcut_0ov5v") -icon = ExtResource("8_5v7u3") - -[node name="CurrentProgress" type="HSlider" parent="."] -offset_left = 64.0 -offset_top = 560.0 -offset_right = 944.0 -offset_bottom = 624.0 -max_value = 1000.0 -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_qw6pv") -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -offset_left = 1000.0 -offset_top = 573.0 -offset_right = 1040.0 -offset_bottom = 613.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vot6l") -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -offset_left = 994.0 -offset_top = 613.0 -offset_right = 1034.0 -offset_bottom = 653.0 -rotation = 3.14159 -focus_mode = 0 -shortcut = SubResource("Shortcut_xu6hm") -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -offset_left = 66.0 -offset_top = 524.0 -offset_right = 994.0 -offset_bottom = 555.0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="ArtistName" type="Label" parent="."] -offset_left = 67.0 -offset_top = 547.0 -offset_right = 995.0 -offset_bottom = 578.0 -text = "John doe" -label_settings = SubResource("LabelSettings_jg5vn") -clip_text = true -text_overrun_behavior = 2 - -[node name="SearchToggle" type="Button" parent="."] -offset_left = 833.0 -offset_top = 24.0 -offset_right = 905.0 -offset_bottom = 96.0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -toggle_mode = true -shortcut = SubResource("Shortcut_g3fcr") -icon = ExtResource("12_cv2gm") -script = ExtResource("13_5illk") -PressedIcon = ExtResource("14_mioc4") -NotPressedIcon = ExtResource("12_cv2gm") - -[node name="SearchBar" type="LineEdit" parent="."] -visible = false -offset_left = 265.0 -offset_top = 24.0 -offset_right = 825.0 -offset_bottom = 80.0 -focus_mode = 1 -placeholder_text = "Search" -alignment = 1 -caret_blink = true -script = ExtResource("12_mr42x") - -[node name="SongsMenu" type="MenuButton" parent="."] -offset_left = 265.0 -offset_top = 24.0 -offset_right = 825.0 -offset_bottom = 80.0 -text = "Select Songs" -flat = false - -[node name="SearchResults" type="PopupMenu" parent="."] -handle_input_locally = false -position = Vector2i(265, 80) -size = Vector2i(623, 300) -wrap_controls = false -max_size = Vector2i(625, 300) -allow_search = false - -[node name="VolumeButton" type="Button" parent="."] -offset_left = 1092.0 -offset_top = 573.0 -offset_right = 1132.0 -offset_bottom = 613.0 -focus_mode = 0 -toggle_mode = true -icon = ExtResource("6_3mi6c") -script = ExtResource("14_7q3ja") - -[node name="VolumeSlider" type="VSlider" parent="."] -layout_direction = 3 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -1121.0 -offset_top = 563.0 -offset_right = -1103.0 -offset_bottom = 571.0 -grow_horizontal = 2 -grow_vertical = 0 -size_flags_horizontal = 1 -size_flags_vertical = 8 -value = 100.0 - -[node name="Logo" type="Sprite2D" parent="."] -modulate = Color(1, 1, 1, 0.686275) -position = Vector2(192, 162) -scale = Vector2(0.159259, 0.159259) -texture = ExtResource("10_xnj6a") - -[node name="TimeListeningSong" type="Label" parent="."] -offset_left = 66.0 -offset_top = 597.0 -offset_right = 178.0 -offset_bottom = 633.0 - -[node name="DiscordMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 1042.0 -offset_top = 174.0 -offset_right = 1082.0 -offset_bottom = 214.0 - -[node name="YtTabButton" type="Button" parent="."] -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = 1065.0 -offset_top = 107.0 -offset_right = 1713.0 -offset_bottom = 558.0 -grow_horizontal = 0 -scale = Vector2(0.105, 0.105) -focus_mode = 0 -toggle_mode = true -icon = ExtResource("12_bc5ym") -flat = true -script = ExtResource("16_2t15p") - -[node name="YoutubeMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 794.0 -offset_top = 107.0 -offset_right = 834.0 -offset_bottom = 147.0 - -[node name="Youtube menu" type="Control" parent="YoutubeMenuHolder"] -layout_mode = 3 -anchors_preset = 0 -offset_right = 200.0 -offset_bottom = 363.0 - -[node name="YTLink" type="LineEdit" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -229.0 -offset_bottom = 47.0 -grow_horizontal = 0 -placeholder_text = "Youtube link(can be playlist)" - -[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -offset_left = -29.0 -offset_top = 70.465 -offset_right = 58.0 -offset_bottom = 110.465 -focus_mode = 0 -text = "Download" - -[node name="LoadingIMG" type="Sprite2D" parent="YoutubeMenuHolder/Youtube menu"] -position = Vector2(80, 90.165) -rotation = 1.5708 -scale = Vector2(-0.5, 0.5) -texture = ExtResource("13_de5ej") -script = ExtResource("14_rhw4k") - -[node name="Label" type="Label" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 0 -offset_left = -27.795 -offset_top = 49.0 -offset_right = 197.205 -offset_bottom = 72.0 -text = "NOTE: speeds depend on your internet" -label_settings = SubResource("LabelSettings_fiiw4") - -[node name="Version" type="Label" parent="."] -offset_left = 1083.0 -offset_top = 625.0 -offset_right = 1147.0 -offset_bottom = 648.0 -text = "v1.0.3" -horizontal_alignment = 2 - -[node name="WavDisclaimer" type="AcceptDialog" parent="."] -transparent_bg = true -title = "WAV disclaimer" -initial_position = 4 -size = Vector2i(256, 100) -transparent = true -popup_window = true -force_native = true -dialog_text = "wav files are not supported yet" - -[connection signal="pressed" from="SettingsButton" to="SettingsButton" method="_on_pressed"] -[connection signal="toggled" from="SearchToggle" to="SearchToggle" method="_on_toggled"] -[connection signal="text_submitted" from="SearchBar" to="SearchBar" method="_on_text_submitted"] -[connection signal="index_pressed" from="SearchResults" to="SearchBar" method="_on_search_results_index_pressed"] -[connection signal="toggled" from="VolumeButton" to="VolumeButton" method="_on_toggled"] -[connection signal="toggled" from="YtTabButton" to="YtTabButton" method="_on_toggled"] diff --git a/MaiEDBE.tmp b/MaiEDBE.tmp deleted file mode 100644 index 03e364b..0000000 --- a/MaiEDBE.tmp +++ /dev/null @@ -1,448 +0,0 @@ -[gd_scene load_steps=50 format=3 uid="uid://b2sygl55s6fng"] - -[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] -[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] -[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"] -[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Skip.png" id="3_4vx67"] -[ext_resource type="Script" path="res://wallpaper_manager.gd" id="4_y372l"] -[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Loop.png" id="5_c2g63"] -[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Headphones.png" id="6_3mi6c"] -[ext_resource type="Texture2D" uid="uid://snne8iiftksi" path="res://Evening_view_of_Munnar_1633.jpg" id="6_5vm0w"] -[ext_resource type="Texture2D" uid="uid://ba5wdmchyy50n" path="res://nighttime-in-the-hills-henry-porter.jpg" id="6_8abnc"] -[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Play.png" id="8_5v7u3"] -[ext_resource type="Shader" path="res://CoverShader.gdshader" id="8_4531v"] -[ext_resource type="Shader" path="res://Main.gdshader" id="10_20857"] -[ext_resource type="Texture2D" uid="uid://b00wlqid2jdvi" path="res://BigLogo.png" id="10_xnj6a"] -[ext_resource type="Texture2D" uid="uid://0r1tx6l1lc6x" path="res://settingscog.png" id="11_esjel"] -[ext_resource type="Script" path="res://cover.gd" id="12_3v50a"] -[ext_resource type="Script" path="res://settings_button.gd" id="12_073mb"] -[ext_resource type="Texture2D" uid="uid://bdpat2sfflaxq" path="res://Youtube_logo.png" id="12_bc5ym"] -[ext_resource type="Texture2D" uid="uid://myq6n4bshduj" path="res://search.png" id="12_cv2gm"] -[ext_resource type="Script" path="res://search_bar.gd" id="12_mr42x"] -[ext_resource type="Script" path="res://search_toggle.gd" id="13_5illk"] -[ext_resource type="PackedScene" uid="uid://dqg674t6kun4e" path="res://Settings.tscn" id="13_7atry"] -[ext_resource type="Texture2D" uid="uid://b5eims5ucn81r" path="res://Loding.png" id="13_de5ej"] -[ext_resource type="Script" path="res://volume_button.gd" id="14_7q3ja"] -[ext_resource type="Texture2D" uid="uid://1rstn6r2wisy" path="res://X.png" id="14_mioc4"] -[ext_resource type="Script" path="res://Spinning.gd" id="14_rhw4k"] -[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ku7tv"] -shader = ExtResource("10_20857") -shader_parameter/intensity = 1.0 - -[sub_resource type="Gradient" id="Gradient_7vgyc"] -offsets = PackedFloat32Array(0.00292398, 0.845029) -colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_bhdch"] -gradient = SubResource("Gradient_7vgyc") -fill_to = Vector2(0, 1) - -[sub_resource type="Gradient" id="Gradient_hqvtw"] -offsets = PackedFloat32Array(0.459016, 0.565574, 0.704918, 0.827869, 0.92623, 1) -colors = PackedColorArray(0, 0, 0, 1, 0.132947, 0.132947, 0.132947, 0.867053, 0.286885, 0.286885, 0.286885, 0.713115, 0.536475, 0.536475, 0.536475, 0.463525, 0.790666, 0.790666, 0.790666, 0.209334, 1, 1, 1, 0) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_50sv0"] -gradient = SubResource("Gradient_hqvtw") -fill = 1 -fill_from = Vector2(0, 1) -fill_to = Vector2(1, 1) - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3bw0j"] -shader = ExtResource("8_4531v") -shader_parameter/dissolve = SubResource("GradientTexture2D_50sv0") - -[sub_resource type="InputEventKey" id="InputEventKey_x0ps1"] -device = -1 -ctrl_pressed = true -keycode = 68 - -[sub_resource type="Shortcut" id="Shortcut_vp2fh"] -events = [SubResource("InputEventKey_x0ps1")] - -[sub_resource type="InputEventKey" id="InputEventKey_0jlka"] -device = -1 -ctrl_pressed = true -keycode = 82 - -[sub_resource type="Shortcut" id="Shortcut_axi6u"] -events = [SubResource("InputEventKey_0jlka")] - -[sub_resource type="InputEventKey" id="InputEventKey_117g0"] -device = -1 -ctrl_pressed = true -keycode = 83 - -[sub_resource type="Shortcut" id="Shortcut_8p5o4"] -events = [SubResource("InputEventKey_117g0")] - -[sub_resource type="InputEventKey" id="InputEventKey_5af16"] -device = -1 -keycode = 32 -unicode = 32 - -[sub_resource type="Shortcut" id="Shortcut_0ov5v"] -events = [SubResource("InputEventKey_5af16")] - -[sub_resource type="InputEventKey" id="InputEventKey_l1ahe"] -device = -1 -keycode = 4194321 - -[sub_resource type="Shortcut" id="Shortcut_qw6pv"] -events = [SubResource("InputEventKey_l1ahe")] - -[sub_resource type="InputEventKey" id="InputEventKey_c5qef"] -device = -1 -keycode = 76 -unicode = 108 - -[sub_resource type="Shortcut" id="Shortcut_vot6l"] -events = [SubResource("InputEventKey_c5qef")] - -[sub_resource type="InputEventKey" id="InputEventKey_y4cc2"] -device = -1 -keycode = 4194319 - -[sub_resource type="Shortcut" id="Shortcut_xu6hm"] -events = [SubResource("InputEventKey_y4cc2")] - -[sub_resource type="LabelSettings" id="LabelSettings_6prit"] -font_size = 22 -outline_size = 3 -outline_color = Color(0.215902, 0.215902, 0.215902, 1) - -[sub_resource type="InputEventKey" id="InputEventKey_puhgg"] -device = -1 -ctrl_pressed = true -keycode = 81 - -[sub_resource type="Shortcut" id="Shortcut_g3fcr"] -events = [SubResource("InputEventKey_puhgg")] - -[node name="Node2D" type="Node2D"] -script = ExtResource("1_ubs1p") -LoopPressed = ExtResource("2_iolk5") -LoopNotPressed = ExtResource("5_c2g63") - -[node name="WallpaperManager" type="Node2D" parent="." node_paths=PackedStringArray("Daytime", "Evening", "Nighttime")] -script = ExtResource("4_y372l") -Daytime = NodePath("../Daytime") -Evening = NodePath("../Evening") -Nighttime = NodePath("../Nighttime") - -[node name="Daytime" type="Sprite2D" parent="."] -position = Vector2(576.949, 401) -scale = Vector2(1.27923, 1.25956) -texture = ExtResource("2_wf35v") - -[node name="Evening" type="Sprite2D" parent="."] -visible = false -position = Vector2(582, 342) -scale = Vector2(1.00181, 1.00181) -texture = ExtResource("6_5vm0w") - -[node name="Nighttime" type="Sprite2D" parent="."] -visible = false -modulate = Color(0.347817, 0.347817, 0.347817, 1) -position = Vector2(610, 326) -scale = Vector2(1.49056, 1.51111) -texture = ExtResource("6_8abnc") - -[node name="PausedIndicator" type="TextureRect" parent="."] -material = SubResource("ShaderMaterial_ku7tv") -offset_left = -10.0 -offset_top = 468.0 -offset_right = 1161.0 -offset_bottom = 657.0 -texture = SubResource("GradientTexture2D_bhdch") - -[node name="CoverHolder" type="Node2D" parent="."] -position = Vector2(-3, 649) - -[node name="Cover" type="Sprite2D" parent="CoverHolder"] -modulate = Color(1, 1, 1, 0.592157) -material = SubResource("ShaderMaterial_3bw0j") -position = Vector2(200, -122.333) -scale = Vector2(0.333333, 0.333333) -region_rect = Rect2(142.036, 106.625, 632.359, 516.605) -region_filter_clip_enabled = true -script = ExtResource("12_3v50a") - -[node name="SelectPlaylist" type="Button" parent="."] -offset_left = 20.0 -offset_top = 24.0 -offset_right = 255.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vp2fh") -text = "select the directory -(playlist's folder)" - -[node name="RandomizeList" type="Button" parent="."] -offset_left = 897.0 -offset_top = 24.0 -offset_right = 1065.0 -offset_bottom = 80.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_axi6u") -text = "Randomize" - -[node name="SettingsButton" type="Button" parent="."] -offset_left = 1073.0 -offset_top = 24.0 -offset_right = 1145.0 -offset_bottom = 96.0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -shortcut = SubResource("Shortcut_8p5o4") -icon = ExtResource("11_esjel") -script = ExtResource("12_073mb") - -[node name="SettingsPopup" type="Popup" parent="."] -position = Vector2i(265, 110) -size = Vector2i(575, 458) -visible = true - -[node name="SettingsMenuChild" parent="SettingsPopup" instance=ExtResource("13_7atry")] -offset_left = -272.0 -offset_top = 8.0 -offset_right = 288.0 -offset_bottom = 458.0 - -[node name="FileDialog" type="FileDialog" parent="."] -title = "Open a Directory" -position = Vector2i(28, 115) -size = Vector2i(576, 507) -ok_button_text = "Select Current Folder" -file_mode = 2 -access = 2 -use_native_dialog = true - -[node name="MusicPlayer" type="AudioStreamPlayer" parent="."] -bus = &"Music" - -[node name="playList" type="Button" parent="."] -offset_left = 20.0 -offset_top = 572.0 -offset_right = 92.0 -offset_bottom = 644.0 -scale = Vector2(0.5, 0.5) -focus_mode = 0 -shortcut = SubResource("Shortcut_0ov5v") -icon = ExtResource("8_5v7u3") - -[node name="CurrentProgress" type="HSlider" parent="."] -offset_left = 64.0 -offset_top = 560.0 -offset_right = 944.0 -offset_bottom = 624.0 -max_value = 1000.0 -ticks_on_borders = true - -[node name="Skip" type="Button" parent="."] -offset_left = 1046.0 -offset_top = 573.0 -offset_right = 1086.0 -offset_bottom = 613.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_qw6pv") -icon = ExtResource("3_4vx67") - -[node name="Loop" type="Button" parent="."] -offset_left = 1000.0 -offset_top = 573.0 -offset_right = 1040.0 -offset_bottom = 613.0 -focus_mode = 0 -shortcut = SubResource("Shortcut_vot6l") -icon = ExtResource("5_c2g63") - -[node name="GoBack" type="Button" parent="."] -offset_left = 994.0 -offset_top = 613.0 -offset_right = 1034.0 -offset_bottom = 653.0 -rotation = 3.14159 -focus_mode = 0 -shortcut = SubResource("Shortcut_xu6hm") -icon = ExtResource("3_4vx67") - -[node name="SongName" type="Label" parent="."] -offset_left = 66.0 -offset_top = 524.0 -offset_right = 994.0 -offset_bottom = 581.0 -text = "Please select a directory" -label_settings = SubResource("LabelSettings_6prit") -clip_text = true -text_overrun_behavior = 2 - -[node name="SearchToggle" type="Button" parent="."] -offset_left = 833.0 -offset_top = 24.0 -offset_right = 905.0 -offset_bottom = 96.0 -scale = Vector2(0.79, 0.79) -focus_mode = 0 -toggle_mode = true -shortcut = SubResource("Shortcut_g3fcr") -icon = ExtResource("12_cv2gm") -script = ExtResource("13_5illk") -PressedIcon = ExtResource("14_mioc4") -NotPressedIcon = ExtResource("12_cv2gm") - -[node name="SearchBar" type="LineEdit" parent="."] -visible = false -offset_left = 265.0 -offset_top = 24.0 -offset_right = 825.0 -offset_bottom = 80.0 -focus_mode = 1 -placeholder_text = "Search" -alignment = 1 -caret_blink = true -script = ExtResource("12_mr42x") - -[node name="SongsMenu" type="MenuButton" parent="."] -offset_left = 265.0 -offset_top = 24.0 -offset_right = 825.0 -offset_bottom = 80.0 -text = "Select Songs" -flat = false - -[node name="SearchResults" type="PopupMenu" parent="."] -handle_input_locally = false -position = Vector2i(265, 80) -size = Vector2i(623, 300) -wrap_controls = false -max_size = Vector2i(625, 300) -allow_search = false - -[node name="VolumeButton" type="Button" parent="."] -offset_left = 1092.0 -offset_top = 573.0 -offset_right = 1132.0 -offset_bottom = 613.0 -focus_mode = 0 -toggle_mode = true -icon = ExtResource("6_3mi6c") -script = ExtResource("14_7q3ja") - -[node name="VolumeSlider" type="VSlider" parent="."] -layout_direction = 3 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -1121.0 -offset_top = 563.0 -offset_right = -1103.0 -offset_bottom = 571.0 -grow_horizontal = 2 -grow_vertical = 0 -size_flags_horizontal = 1 -size_flags_vertical = 8 -value = 100.0 - -[node name="Logo" type="Sprite2D" parent="."] -modulate = Color(1, 1, 1, 0.686275) -position = Vector2(192, 162) -scale = Vector2(0.159259, 0.159259) -texture = ExtResource("10_xnj6a") - -[node name="TimeListeningSong" type="Label" parent="."] -offset_left = 66.0 -offset_top = 597.0 -offset_right = 178.0 -offset_bottom = 633.0 - -[node name="DiscordMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 1042.0 -offset_top = 174.0 -offset_right = 1082.0 -offset_bottom = 214.0 - -[node name="YtTabButton" type="Button" parent="."] -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = 1065.0 -offset_top = 107.0 -offset_right = 1713.0 -offset_bottom = 558.0 -grow_horizontal = 0 -scale = Vector2(0.105, 0.105) -focus_mode = 0 -toggle_mode = true -icon = ExtResource("12_bc5ym") -flat = true -script = ExtResource("16_2t15p") - -[node name="YoutubeMenuHolder" type="Control" parent="."] -layout_mode = 3 -anchors_preset = 0 -offset_left = 794.0 -offset_top = 107.0 -offset_right = 834.0 -offset_bottom = 147.0 - -[node name="Youtube menu" type="Control" parent="YoutubeMenuHolder"] -layout_mode = 3 -anchors_preset = 0 -offset_right = 200.0 -offset_bottom = 363.0 - -[node name="YTLink" type="LineEdit" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = -229.0 -offset_bottom = 47.0 -grow_horizontal = 0 -placeholder_text = "Youtube link(can be playlist)" - -[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"] -layout_mode = 1 -offset_left = -29.0 -offset_top = 58.0 -offset_right = 58.0 -offset_bottom = 98.0 -focus_mode = 0 -text = "Download" - -[node name="LoadingIMG" type="Sprite2D" parent="YoutubeMenuHolder/Youtube menu"] -position = Vector2(80, 78) -rotation = 1.5708 -scale = Vector2(-0.5, 0.5) -texture = ExtResource("13_de5ej") -script = ExtResource("14_rhw4k") - -[node name="Version" type="Label" parent="."] -offset_left = 1083.0 -offset_top = 625.0 -offset_right = 1147.0 -offset_bottom = 648.0 -text = "v1.0.1" -horizontal_alignment = 2 - -[node name="WavDisclaimer" type="AcceptDialog" parent="."] -transparent_bg = true -title = "WAV disclaimer" -initial_position = 4 -size = Vector2i(256, 100) -transparent = true -popup_window = true -force_native = true -dialog_text = "wav files are not supported yet" - -[connection signal="pressed" from="SettingsButton" to="SettingsButton" method="_on_pressed"] -[connection signal="toggled" from="SearchToggle" to="SearchToggle" method="_on_toggled"] -[connection signal="text_submitted" from="SearchBar" to="SearchBar" method="_on_text_submitted"] -[connection signal="index_pressed" from="SearchResults" to="SearchBar" method="_on_search_results_index_pressed"] -[connection signal="toggled" from="VolumeButton" to="VolumeButton" method="_on_toggled"] -[connection signal="toggled" from="YtTabButton" to="YtTabButton" method="_on_toggled"] diff --git a/Scenes/SourceDisplay.tscn b/Scenes/SourceDisplay.tscn index 8fc4d1e..1c1a3af 100644 --- a/Scenes/SourceDisplay.tscn +++ b/Scenes/SourceDisplay.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=5 format=3 uid="uid://bam5mbsffdryc"] -[ext_resource type="Script" uid="uid://cohxe7s2pd123" path="res://Scripts/SourceDisplay.cs" id="1_24osb"] +[ext_resource type="Script" uid="uid://du2j3lspxge7f" path="res://Scripts/SourceDisplay.cs" id="1_wqeof"] [ext_resource type="Texture2D" uid="uid://dwvy6crqhardn" path="res://Icons/Dropdown.png" id="2_wqeof"] [sub_resource type="LabelSettings" id="LabelSettings_84l0p"] @@ -13,7 +13,7 @@ font_color = Color(0.791999, 0.791999, 0.791999, 1) shadow_size = 2 shadow_color = Color(0, 0, 0, 0.564706) -[node name="SourceDisplay" type="Control" node_paths=PackedStringArray("NameLabel", "PathLabel", "CheckButtonButton")] +[node name="SourceDisplay" type="Control" unique_id=2040468863 node_paths=PackedStringArray("EnabledCheck", "NameLabel", "PathLabel")] custom_minimum_size = Vector2(0, 75) layout_mode = 3 anchors_preset = 15 @@ -23,12 +23,12 @@ offset_right = -572.0 offset_bottom = -573.0 grow_horizontal = 2 grow_vertical = 2 -script = ExtResource("1_24osb") +script = ExtResource("1_wqeof") +EnabledCheck = NodePath("HBoxContainer/CheckBox") NameLabel = NodePath("HBoxContainer/VBoxContainer/Name") PathLabel = NodePath("HBoxContainer/VBoxContainer/Path") -CheckButtonButton = NodePath("HBoxContainer/CheckBox") -[node name="Panel" type="Panel" parent="."] +[node name="Panel" type="Panel" parent="." unique_id=220383628] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -37,7 +37,7 @@ grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="."] +[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=730957905] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -45,12 +45,12 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer" unique_id=707103310] layout_mode = 2 size_flags_horizontal = 3 mouse_filter = 2 -[node name="Name" type="Label" parent="HBoxContainer/VBoxContainer"] +[node name="Name" type="Label" parent="HBoxContainer/VBoxContainer" unique_id=1705771460] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 6 @@ -59,7 +59,7 @@ label_settings = SubResource("LabelSettings_84l0p") clip_text = true text_overrun_behavior = 3 -[node name="Path" type="Label" parent="HBoxContainer/VBoxContainer"] +[node name="Path" type="Label" parent="HBoxContainer/VBoxContainer" unique_id=1633998177] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 6 @@ -68,12 +68,12 @@ label_settings = SubResource("LabelSettings_24osb") clip_text = true text_overrun_behavior = 3 -[node name="CheckBox" type="CheckBox" parent="HBoxContainer"] +[node name="CheckBox" type="CheckBox" parent="HBoxContainer" unique_id=38681969] layout_mode = 2 size_flags_vertical = 4 text = "Enabled" -[node name="MenuButton" type="MenuButton" parent="HBoxContainer"] +[node name="MenuButton" type="MenuButton" parent="HBoxContainer" unique_id=1880046464] custom_minimum_size = Vector2(20, 0) layout_mode = 2 icon = ExtResource("2_wqeof") diff --git a/Scenes/full_interface.tscn b/Scenes/full_interface.tscn new file mode 100644 index 0000000..3b0e991 --- /dev/null +++ b/Scenes/full_interface.tscn @@ -0,0 +1,143 @@ +[gd_scene load_steps=7 format=3 uid="uid://5v56arvjyw4p"] + +[ext_resource type="Texture2D" uid="uid://df2e70jxwrmjs" path="res://Icons/BackOne.png" id="1_543jr"] +[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Icons/Play.png" id="2_pwrg8"] +[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Icons/Loop.png" id="3_f21cu"] +[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Icons/Skip.png" id="3_hr4cn"] +[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Icons/Headphones.png" id="4_pwrg8"] +[ext_resource type="Texture2D" uid="uid://dvid0yk4kh5hq" path="res://Images/Eveningsmall.jpg" id="6_f21cu"] + +[node name="FullInterface" type="Control" unique_id=678905669] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1255661485] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +alignment = 2 + +[node name="Panel" type="Panel" parent="VBoxContainer" unique_id=961658991] +custom_minimum_size = Vector2(300, 150) +layout_mode = 2 +size_flags_horizontal = 0 + +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/Panel" unique_id=1736629774] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_left = 10 +theme_override_constants/margin_top = 10 +theme_override_constants/margin_right = 10 +theme_override_constants/margin_bottom = 10 + +[node name="Control" type="Control" parent="VBoxContainer/Panel/MarginContainer" unique_id=1960151738] +layout_mode = 2 + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Panel/MarginContainer/Control" unique_id=1483630949] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Control/HBoxContainer" unique_id=433909645] +custom_minimum_size = Vector2(130, 130) +layout_mode = 2 +texture = ExtResource("6_f21cu") +expand_mode = 1 +stretch_mode = 6 + +[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/Panel/MarginContainer/Control/HBoxContainer" unique_id=1251684129] +layout_mode = 2 +size_flags_horizontal = 3 +text = "SimplSong +Artist +Album" +vertical_alignment = 1 + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=1091310261] +layout_mode = 2 + +[node name="GoBack" type="Button" parent="VBoxContainer/HBoxContainer" unique_id=1229237570] +custom_minimum_size = Vector2(42, 42) +layout_mode = 2 +icon = ExtResource("1_543jr") +expand_icon = true + +[node name="PausePlay" type="Button" parent="VBoxContainer/HBoxContainer" unique_id=1822291703] +custom_minimum_size = Vector2(42, 36) +layout_mode = 2 +icon = ExtResource("2_pwrg8") +expand_icon = true + +[node name="Loop" type="Button" parent="VBoxContainer/HBoxContainer" unique_id=1919587878] +custom_minimum_size = Vector2(42, 36) +layout_mode = 2 +icon = ExtResource("3_f21cu") +expand_icon = true + +[node name="Skip" type="Button" parent="VBoxContainer/HBoxContainer" unique_id=133075482] +custom_minimum_size = Vector2(42, 36) +layout_mode = 2 +icon = ExtResource("3_hr4cn") +expand_icon = true + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer" unique_id=1007920060] +layout_mode = 2 +size_flags_horizontal = 3 +mouse_filter = 2 +alignment = 1 + +[node name="HSlider" type="HSlider" parent="VBoxContainer/HBoxContainer/VBoxContainer" unique_id=1811164513] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 4 + +[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer" unique_id=988865873] +custom_minimum_size = Vector2(42, 0) +layout_mode = 2 +icon = ExtResource("4_pwrg8") +expand_icon = true + +[node name="Progress" type="RichTextLabel" parent="." unique_id=674204878] +layout_mode = 1 +anchors_preset = 12 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 185.0 +offset_top = -48.0 +offset_right = -1.0 +grow_horizontal = 2 +grow_vertical = 0 +mouse_filter = 2 +text = "0:19/31:99" +vertical_alignment = 3 + +[node name="Song" type="VBoxContainer" parent="." unique_id=1592308856] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 303.0 +offset_top = 1.0 +offset_bottom = -47.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Sources" type="VBoxContainer" parent="." unique_id=2011065913] +layout_mode = 0 +offset_right = 300.0 +offset_bottom = 451.0 diff --git a/Scenes/main.tscn b/Scenes/main.tscn index 4954c52..776461d 100644 --- a/Scenes/main.tscn +++ b/Scenes/main.tscn @@ -1,57 +1,72 @@ -[gd_scene load_steps=22 format=3 uid="uid://mfcbf2sfino6"] +[gd_scene load_steps=23 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"] +[ext_resource type="Texture2D" uid="uid://0jo87vtoeheu" path="res://Images/pole2.jpg" id="2_bo1nx"] +[ext_resource type="Script" uid="uid://f5kkp8ovi107" path="res://Scripts/SourceLoader.cs" id="2_kry3j"] +[ext_resource type="Texture2D" uid="uid://dvid0yk4kh5hq" path="res://Images/Eveningsmall.jpg" id="4_hptm8"] +[ext_resource type="Texture2D" uid="uid://ch8wymyxftkb3" path="res://Icons/Pause.png" id="4_jkdf5"] +[ext_resource type="Texture2D" uid="uid://df2e70jxwrmjs" path="res://Icons/BackOne.png" id="5_d1ilt"] +[ext_resource type="Texture2D" uid="uid://myq6n4bshduj" path="res://Icons/search.png" id="5_kry3j"] +[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Icons/Play.png" id="6_6iyac"] +[ext_resource type="Texture2D" uid="uid://38c8dfym0svn" path="res://Icons/Loop.png" id="7_fdnlq"] +[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Icons/Skip.png" id="8_jkdf5"] +[ext_resource type="Texture2D" uid="uid://cekkhyppj88xi" path="res://Icons/Headphones.png" id="9_wsu2k"] +[ext_resource type="Script" uid="uid://bunh7x8sltmpc" path="res://Scripts/slider.gd" id="10_d1ilt"] +[ext_resource type="Script" uid="uid://dl1ipi4ocs3kq" path="res://Scripts/AddDialog.cs" id="12_fdnlq"] +[ext_resource type="Script" uid="uid://cl8087ysk6gbg" path="res://Scripts/SourceManager.cs" id="14_jkdf5"] +[ext_resource type="PackedScene" uid="uid://bam5mbsffdryc" path="res://Scenes/SourceDisplay.tscn" id="15_wsu2k"] -[sub_resource type="GDScript" id="GDScript_ynf5e"] -resource_name = "Toggle" +[sub_resource type="Gradient" id="Gradient_6iyac"] +offsets = PackedFloat32Array(0.7432432, 1) +colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_fdnlq"] +gradient = SubResource("Gradient_6iyac") +fill = 1 +fill_from = Vector2(0, 1) +fill_to = Vector2(0, 0) + +[sub_resource type="LabelSettings" id="LabelSettings_wsu2k"] +font_size = 17 +outline_size = 2 +outline_color = Color(0, 0, 0, 1) +shadow_size = 3 +shadow_color = Color(0, 0, 0, 0.57254905) + +[sub_resource type="LabelSettings" id="LabelSettings_6iyac"] +font_size = 25 +outline_size = 2 +outline_color = Color(0, 0, 0, 1) +shadow_size = 3 +shadow_color = Color(0, 0, 0, 0.49019608) + +[sub_resource type="LabelSettings" id="LabelSettings_fdnlq"] +font_size = 20 +font_color = Color(0.851769, 0.8517689, 0.85176885, 1) +outline_size = 2 +outline_color = Color(0, 0, 0, 1) +shadow_size = 3 +shadow_color = Color(0, 0, 0, 0.5882353) + +[sub_resource type="LabelSettings" id="LabelSettings_jkdf5"] +font_size = 20 +font_color = Color(0.851769, 0.8517689, 0.85176885, 1) +outline_size = 2 +outline_color = Color(0, 0, 0, 1) +shadow_size = 3 +shadow_color = Color(0, 0, 0, 0.5882353) + +[sub_resource type="GDScript" id="GDScript_6iyac"] +resource_name = "DirSelect" script/source = "extends Button -@export var searchbar:LineEdit -@export var showbutton:Button +@export var file_dialog: FileDialog -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() + file_dialog.show() " -[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" unique_id=710966374] +[node name="Main" type="Control" unique_id=710966374 node_paths=PackedStringArray("manager", "playbutton", "backbutton", "skipbutton", "loopbutton", "progressbar", "progresslabel", "TitleLabel", "ArtistLabel", "AlbumLabel", "CoverArt")] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -59,303 +74,20 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("1_k12tt") - -[node name="Context" type="Node" parent="." unique_id=1774241699] -script = ExtResource("3_8gbba") - -[node name="UiManager" type="Node" parent="." unique_id=1324792533 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" unique_id=236791205 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="." unique_id=1005189690] -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="." unique_id=1887461610] -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" unique_id=1200585373] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -alignment = 2 - -[node name="Top" type="Control" parent="Padding/VBoxContainer" unique_id=111990697] -custom_minimum_size = Vector2(0, 42) -layout_mode = 2 - -[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Top" unique_id=683685039] -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" unique_id=1939866435] -clip_contents = true -layout_mode = 2 -size_flags_horizontal = 3 -alignment = 1 - -[node name="SearchBar" type="LineEdit" parent="Padding/VBoxContainer/Top/HBoxContainer/Control" unique_id=1940839068] -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" unique_id=1036897699] -layout_mode = 2 -size_flags_horizontal = 4 -text = "SHOW_SONGS" - -[node name="SearchToggle" type="Button" parent="Padding/VBoxContainer/Top/HBoxContainer/Control" unique_id=185868424 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" unique_id=834339092] -custom_minimum_size = Vector2(42, 0) -layout_mode = 2 -icon = ExtResource("2_344ge") -expand_icon = true - -[node name="Center" type="Control" parent="Padding/VBoxContainer" unique_id=1121630758] -layout_mode = 2 -size_flags_vertical = 3 - -[node name="HSplitContainer" type="HSplitContainer" parent="Padding/VBoxContainer/Center" unique_id=1017273384] -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" unique_id=1275051820] -custom_minimum_size = Vector2(250, 0) -layout_mode = 2 - -[node name="Panel" type="Panel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources" unique_id=306471911] -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" unique_id=424804791] -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" unique_id=837327006] -layout_mode = 2 - -[node name="RichTextLabel" type="RichTextLabel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/HBoxContainer" unique_id=1555214569] -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" unique_id=1298656246] -layout_mode = 2 -text = "ADD" - -[node name="AddSource" type="PanelContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer" unique_id=236739777] -layout_mode = 2 - -[node name="AddNew" type="VBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource" unique_id=469839701] -layout_mode = 2 -theme_override_constants/separation = 6 - -[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew" unique_id=145355055] -layout_mode = 2 - -[node name="RichTextLabel" type="RichTextLabel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew/HBoxContainer" unique_id=1060860618] -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" unique_id=918348875 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" unique_id=744317373] -layout_mode = 2 -placeholder_text = "NAME" - -[node name="Button" type="Button" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew" unique_id=1073120484] -layout_mode = 2 -text = "SELECT_DIR" - -[node name="RichTextLabel2" type="RichTextLabel" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew" unique_id=1169775431] -layout_mode = 2 -fit_content = true -scroll_active = false - -[node name="Button2" type="Button" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew" unique_id=1152374549] -layout_mode = 2 -text = "ADD" - -[node name="FileDialog" type="FileDialog" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/AddSource/AddNew" unique_id=1647907678] -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" unique_id=31060683] -layout_mode = 2 - -[node name="ScrollContainer" type="ScrollContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer" unique_id=1212463777] -layout_mode = 2 -size_flags_vertical = 3 - -[node name="SourceContainer" type="VBoxContainer" parent="Padding/VBoxContainer/Center/HSplitContainer/Sources/Panel/VBoxContainer/ScrollContainer" unique_id=436986523] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 - -[node name="SearchResults" parent="Padding/VBoxContainer/Center/HSplitContainer" unique_id=491001094 instance=ExtResource("5_fdnlq")] -custom_minimum_size = Vector2(500, 0) -layout_mode = 2 - -[node name="Bottom" type="Control" parent="Padding/VBoxContainer" unique_id=176014070] -custom_minimum_size = Vector2(0, 42) -layout_mode = 2 - -[node name="HBoxContainer" type="HBoxContainer" parent="Padding/VBoxContainer/Bottom" unique_id=1615147072] -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" unique_id=498838677] -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" unique_id=863470090] -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" unique_id=262773788] -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" unique_id=1969204251] -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" unique_id=1668328934] -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" unique_id=266740639] -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" unique_id=1355370683] -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" unique_id=981601120] -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") +script = ExtResource("2_kry3j") +manager = NodePath("SourceManager") +playbutton = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/PausePlay") +backbutton = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/GoBack") +skipbutton = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/Skip") +loopbutton = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/Loop") +progressbar = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/VBoxContainer/HSlider") +progresslabel = NodePath("InterfaceHolder/FullInterface/Progress") +TitleLabel = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer2/Title") +ArtistLabel = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer2/Artit") +AlbumLabel = NodePath("InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer2/Album") +CoverArt = NodePath("InterfaceHolder/FullInterface/TextureRect/TextureRect") +PausedIcon = ExtResource("6_6iyac") +PlayingIcon = ExtResource("4_jkdf5") [node name="Label" type="Label" parent="." unique_id=1116909625] layout_mode = 1 @@ -369,3 +101,274 @@ offset_top = -23.0 grow_horizontal = 0 grow_vertical = 0 text = "v2.0" + +[node name="TextureRect" type="TextureRect" parent="." unique_id=1332965117] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("2_bo1nx") +expand_mode = 5 +stretch_mode = 6 + +[node name="InterfaceHolder" type="MarginContainer" parent="." unique_id=1778024061] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_top = 45 + +[node name="FullInterface" type="Control" parent="InterfaceHolder" unique_id=678905669] +layout_mode = 2 + +[node name="Song" type="VBoxContainer" parent="InterfaceHolder/FullInterface" unique_id=1592308856] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 303.0 +offset_top = 1.0 +offset_bottom = -47.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="TextureRect" type="TextureRect" parent="InterfaceHolder/FullInterface" unique_id=433909645] +clip_children = 1 +custom_minimum_size = Vector2(130, 130) +layout_mode = 1 +anchors_preset = -1 +anchor_top = 1.0 +anchor_bottom = 1.0 +offset_top = -343.0 +offset_right = 343.0 +grow_vertical = 0 +size_flags_horizontal = 0 +texture = SubResource("GradientTexture2D_fdnlq") +expand_mode = 3 +stretch_mode = 6 +metadata/_edit_use_anchors_ = true + +[node name="TextureRect" type="TextureRect" parent="InterfaceHolder/FullInterface/TextureRect" unique_id=1371068144] +custom_minimum_size = Vector2(130, 130) +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 0 +texture = ExtResource("4_hptm8") +expand_mode = 1 +stretch_mode = 6 + +[node name="Progress" type="Label" parent="InterfaceHolder/FullInterface" unique_id=1303512998] +layout_mode = 1 +anchors_preset = 12 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 185.0 +offset_top = -50.0 +offset_right = -1.0 +grow_horizontal = 2 +grow_vertical = 0 +text = "0:19/31:99" +label_settings = SubResource("LabelSettings_wsu2k") +vertical_alignment = 3 + +[node name="VBoxContainer" type="VBoxContainer" parent="InterfaceHolder/FullInterface" unique_id=1255661485] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +alignment = 2 + +[node name="HBoxContainer2" type="VBoxContainer" parent="InterfaceHolder/FullInterface/VBoxContainer" unique_id=1571684229] +layout_mode = 2 + +[node name="Title" type="Label" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer2" unique_id=968360559] +layout_mode = 2 +text = "TITLE" +label_settings = SubResource("LabelSettings_6iyac") +clip_text = true + +[node name="Artit" type="Label" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer2" unique_id=1594212855] +layout_mode = 2 +text = "ARTIST" +label_settings = SubResource("LabelSettings_fdnlq") +clip_text = true + +[node name="Album" type="Label" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer2" unique_id=434177385] +layout_mode = 2 +text = "ALBUM" +label_settings = SubResource("LabelSettings_jkdf5") +clip_text = true + +[node name="HBoxContainer" type="HBoxContainer" parent="InterfaceHolder/FullInterface/VBoxContainer" unique_id=1091310261] +layout_mode = 2 + +[node name="GoBack" type="Button" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer" unique_id=1229237570] +custom_minimum_size = Vector2(42, 42) +layout_mode = 2 +icon = ExtResource("5_d1ilt") +expand_icon = true + +[node name="PausePlay" type="Button" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer" unique_id=1822291703] +custom_minimum_size = Vector2(42, 36) +layout_mode = 2 +toggle_mode = true +icon = ExtResource("6_6iyac") +expand_icon = true + +[node name="Loop" type="Button" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer" unique_id=1919587878] +custom_minimum_size = Vector2(42, 36) +layout_mode = 2 +toggle_mode = true +icon = ExtResource("7_fdnlq") +expand_icon = true + +[node name="Skip" type="Button" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer" unique_id=133075482] +custom_minimum_size = Vector2(42, 36) +layout_mode = 2 +icon = ExtResource("8_jkdf5") +expand_icon = true + +[node name="VBoxContainer" type="VBoxContainer" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer" unique_id=1007920060] +layout_mode = 2 +size_flags_horizontal = 3 +mouse_filter = 2 +alignment = 1 + +[node name="HSlider" type="HSlider" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/VBoxContainer" unique_id=1811164513] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 4 +max_value = 1.0 +step = 0.0 + +[node name="Button" type="Button" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer" unique_id=988865873] +custom_minimum_size = Vector2(42, 0) +layout_mode = 2 +icon = ExtResource("9_wsu2k") +expand_icon = true + +[node name="VSlider" type="VSlider" parent="InterfaceHolder/FullInterface/VBoxContainer/HBoxContainer/Button" unique_id=981008252] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = -8.0 +offset_top = -111.0 +offset_right = 8.0 +offset_bottom = -8.0 +grow_horizontal = 2 +max_value = 1.0 +step = 0.01 +value = 1.0 +script = ExtResource("10_d1ilt") + +[node name="Panel" type="Panel" parent="InterfaceHolder/FullInterface" unique_id=1241981314] +layout_mode = 1 +anchors_preset = -1 +anchor_right = 0.24000001 +anchor_bottom = 0.753 +offset_right = 0.519989 +offset_bottom = -0.059020996 + +[node name="SourcesRoot" type="VBoxContainer" parent="InterfaceHolder/FullInterface/Panel" unique_id=2011065913] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Label" type="Label" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot" unique_id=1139116413] +layout_mode = 2 +text = "Sources:" + +[node name="AddDialog" type="Panel" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot" unique_id=1695223686 node_paths=PackedStringArray("SourcesRoot", "NameEdit", "Dialog", "DirectoryLabel", "AddButton")] +custom_minimum_size = Vector2(0, 150) +layout_mode = 2 +script = ExtResource("12_fdnlq") +SourcesRoot = NodePath("..") +NameEdit = NodePath("VBoxContainer/NameEdit") +Dialog = NodePath("VBoxContainer/DirSelect/FileDialog") +DirectoryLabel = NodePath("VBoxContainer/DirDisplay") +AddButton = NodePath("VBoxContainer/Button2") + +[node name="VBoxContainer" type="VBoxContainer" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog" unique_id=1274684795] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Label" type="Label" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog/VBoxContainer" unique_id=1065512212] +layout_mode = 2 +text = "Add Source" + +[node name="NameEdit" type="LineEdit" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog/VBoxContainer" unique_id=880637161] +layout_mode = 2 +placeholder_text = "Name" + +[node name="DirSelect" type="Button" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog/VBoxContainer" unique_id=192358857 node_paths=PackedStringArray("file_dialog")] +layout_mode = 2 +text = "Select directory" +script = SubResource("GDScript_6iyac") +file_dialog = NodePath("FileDialog") + +[node name="FileDialog" type="FileDialog" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog/VBoxContainer/DirSelect" unique_id=1146828904] +oversampling_override = 1.0 +title = "Open a Directory" +initial_position = 4 +size = Vector2i(744, 360) +file_mode = 2 +access = 2 +use_native_dialog = true + +[node name="DirDisplay" type="Label" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog/VBoxContainer" unique_id=25621450] +layout_mode = 2 +clip_text = true + +[node name="Button2" type="Button" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog/VBoxContainer" unique_id=316723766] +layout_mode = 2 +disabled = true +text = "Add" + +[node name="SourcesContainer" type="VBoxContainer" parent="InterfaceHolder/FullInterface/Panel/SourcesRoot" unique_id=405400634] +layout_mode = 2 + +[node name="SearchContainer" type="HBoxContainer" parent="." unique_id=955825789] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = -34.0 +offset_right = 34.0 +offset_bottom = 40.0 +grow_horizontal = 2 + +[node name="LineEdit" type="LineEdit" parent="SearchContainer" unique_id=556652431] +layout_mode = 2 +expand_to_text_length = true + +[node name="Button" type="Button" parent="SearchContainer" unique_id=317701807] +custom_minimum_size = Vector2(40, 0) +layout_mode = 2 +icon = ExtResource("5_kry3j") +expand_icon = true + +[node name="SourceManager" type="Node" parent="." unique_id=729994015 node_paths=PackedStringArray("SourceRoot", "AddDialog")] +script = ExtResource("14_jkdf5") +SourceRoot = NodePath("../InterfaceHolder/FullInterface/Panel/SourcesRoot/SourcesContainer") +AddDialog = NodePath("../InterfaceHolder/FullInterface/Panel/SourcesRoot/AddDialog") +SourceDisplayScene = ExtResource("15_wsu2k") diff --git a/Scenes/simplified_interface.tscn b/Scenes/simplified_interface.tscn new file mode 100644 index 0000000..81fdca4 --- /dev/null +++ b/Scenes/simplified_interface.tscn @@ -0,0 +1,130 @@ +[gd_scene load_steps=11 format=3 uid="uid://e1638m72yit4"] + +[ext_resource type="Theme" uid="uid://vhvx5qjav337" path="res://ClearTheme.tres" id="1_g8rey"] +[ext_resource type="Texture2D" uid="uid://bp4ipephewcrn" path="res://SmoothEdges.png" id="1_rr0ra"] +[ext_resource type="Texture2D" uid="uid://dvid0yk4kh5hq" path="res://Images/Eveningsmall.jpg" id="1_s3st5"] +[ext_resource type="Texture2D" uid="uid://df2e70jxwrmjs" path="res://Icons/BackOne.png" id="2_7ks72"] +[ext_resource type="Texture2D" uid="uid://ctb4s2nks73rx" path="res://Icons/Play.png" id="3_x84vf"] +[ext_resource type="Texture2D" uid="uid://daq8wnhtscpjl" path="res://Icons/Skip.png" id="4_rr0ra"] + +[sub_resource type="Gradient" id="Gradient_s3st5"] +offsets = PackedFloat32Array(0, 0.5338983, 0.80508476, 1) +colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0.34433544, 0, 0, 0, 0.11016947, 0, 0, 0, 0) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_7ks72"] +gradient = SubResource("Gradient_s3st5") +width = 128 +height = 128 +fill = 1 +fill_from = Vector2(0.5, 0.5) +fill_to = Vector2(0.5, 0) +metadata/_snap_enabled = true +metadata/_snap_count = 12 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_rqjnj"] +texture = SubResource("GradientTexture2D_7ks72") + +[sub_resource type="LabelSettings" id="LabelSettings_7ks72"] +font_size = 25 + +[node name="SimplifiedInterface" type="Control" unique_id=721327160] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_g8rey") + +[node name="CenterContainer" type="CenterContainer" parent="." unique_id=1734276215] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Centerroot" type="Control" parent="CenterContainer" unique_id=891907347] +layout_mode = 2 + +[node name="Panel" type="Panel" parent="CenterContainer/Centerroot" unique_id=861126034] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -325.0 +offset_top = -325.0 +offset_right = 325.0 +offset_bottom = 325.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_rqjnj") + +[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/Centerroot" unique_id=471497401] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -149.5 +offset_top = -147.5 +offset_right = 149.5 +offset_bottom = 147.5 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="TextureRect" type="TextureRect" parent="CenterContainer/Centerroot/VBoxContainer" unique_id=883547640] +clip_children = 1 +custom_minimum_size = Vector2(256, 0) +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 4 +texture = ExtResource("1_rr0ra") +expand_mode = 4 +stretch_mode = 6 + +[node name="TextureRect2" type="TextureRect" parent="CenterContainer/Centerroot/VBoxContainer/TextureRect" unique_id=1486812090] +custom_minimum_size = Vector2(256, 0) +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 4 +size_flags_vertical = 4 +texture = ExtResource("1_s3st5") +expand_mode = 4 +stretch_mode = 6 + +[node name="Label" type="Label" parent="CenterContainer/Centerroot/VBoxContainer" unique_id=1889746587] +layout_mode = 2 +size_flags_vertical = 3 +text = "SimpleSong - SimplAudio" +label_settings = SubResource("LabelSettings_7ks72") + +[node name="Buens" type="HBoxContainer" parent="CenterContainer/Centerroot/VBoxContainer" unique_id=766446512] +layout_mode = 2 +alignment = 1 + +[node name="GoBack" type="Button" parent="CenterContainer/Centerroot/VBoxContainer/Buens" unique_id=231535849] +custom_minimum_size = Vector2(66, 66) +layout_mode = 2 +icon = ExtResource("2_7ks72") +expand_icon = true + +[node name="PausePlay" type="Button" parent="CenterContainer/Centerroot/VBoxContainer/Buens" unique_id=591623444] +custom_minimum_size = Vector2(66, 66) +layout_mode = 2 +icon = ExtResource("3_x84vf") +expand_icon = true + +[node name="Skip" type="Button" parent="CenterContainer/Centerroot/VBoxContainer/Buens" unique_id=1881362143] +custom_minimum_size = Vector2(66, 66) +layout_mode = 2 +icon = ExtResource("4_rr0ra") +expand_icon = true diff --git a/Scenes/song_display.tscn b/Scenes/song_display.tscn index aea6237..9a55c1d 100644 --- a/Scenes/song_display.tscn +++ b/Scenes/song_display.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=5 format=3 uid="uid://c21wc1bq2pnm"] -[ext_resource type="Script" uid="uid://bs55rsv7eh4l5" path="res://Scripts/SongDisplay.cs" id="1_76jf4"] +[ext_resource type="Script" uid="uid://bs55rsv7eh4l5" path="res://Scripts/Backend/SongDisplay.cs" id="1_76jf4"] [ext_resource type="Texture2D" uid="uid://dwvy6crqhardn" path="res://Icons/Dropdown.png" id="2_x33bo"] [sub_resource type="LabelSettings" id="LabelSettings_swnt4"] diff --git a/Scripts/AddDialog.cs b/Scripts/AddDialog.cs new file mode 100644 index 0000000..748998f --- /dev/null +++ b/Scripts/AddDialog.cs @@ -0,0 +1,40 @@ +using Godot; +using System; + +public partial class AddDialog : Panel +{ + [Export] Control SourcesRoot; + [Export] LineEdit NameEdit; + [Export] FileDialog Dialog; + [Export] Label DirectoryLabel; + [Export] Button AddButton; + String dir = ""; + + // Name Dir + public event Action NewSource; + + public override void _Ready() + { + base._Ready(); + AddButton.Pressed += Add; + NameEdit.TextChanged += Update; + Dialog.DirSelected += DirectorySelected; + } + + void Add(){ + NewSource?.Invoke(NameEdit.Text, dir); + DirectorySelected(""); + AddButton.Disabled = true; + NameEdit.Text = ""; + } + + void DirectorySelected(String Path){ + DirectoryLabel.Text = Path; + dir = Path; + Update(); + } + + void Update(String Newtext=""){ + AddButton.Disabled = (NameEdit.Text.Replace(" ", "") == "") || dir == "" ; + } +} diff --git a/Scripts/AddDialog.cs.uid b/Scripts/AddDialog.cs.uid new file mode 100644 index 0000000..373d06d --- /dev/null +++ b/Scripts/AddDialog.cs.uid @@ -0,0 +1 @@ +uid://dl1ipi4ocs3kq diff --git a/Scripts/Data.cs b/Scripts/Backend/Data.cs similarity index 62% rename from Scripts/Data.cs rename to Scripts/Backend/Data.cs index b1dc3b8..acc4a3c 100644 --- a/Scripts/Data.cs +++ b/Scripts/Backend/Data.cs @@ -6,10 +6,10 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; using Godot; - using ATL.AudioData; using ATL; using System.Net.Http; +using System.Diagnostics; public class Song{ @@ -59,8 +59,8 @@ public class Song{ } String type = TLfile.Tag.Pictures[0].MimeType; byte[] pictureData = TLfile.Tag.Pictures[0].Data.Data; - Image image = new Image(); - Error error = Error.Failed; + Image image = new(); + Error error; switch (type) { case "image/jpeg": @@ -73,23 +73,20 @@ public class Song{ error = image.LoadWebpFromBuffer(pictureData); break; } - GD.Print(image); + Debug.WriteLine(image); return image; } } -public class DirectoryLoader{ - Task LoadTask; - IEnumerable LoadedSongs; - public IEnumerable LoadDirectory(String Path){ - - - GD.Print("Finished"); +public static class DirectoryLoader{ + public static IEnumerable LoadDirectory(String Path){ + Debug.WriteLine("Loading directory"); return ParseDirectory(Path); //if (file.EndsWith(".mp3")) } - private IEnumerable ParseDirectory(String Path){ - System.Collections.Generic.IEnumerable Files = Directory.EnumerateFiles(Path); + private static IEnumerable ParseDirectory(String Path){ + IEnumerable Files = Directory.EnumerateFiles(Path); IEnumerable Songs = []; + foreach (String file in Files){ if (!(file.EndsWith(".mp3") || file.EndsWith(".ogg") || file.EndsWith(".wav"))){ continue; @@ -99,10 +96,10 @@ public class DirectoryLoader{ Directory = file, }; String[] parts = file.Split("/"); - String LastPart = parts[^1 ]; + String LastPart = parts[^1 ]; // what in the fuck does ^1 do, i forogt song.Name = LastPart; Songs = Songs.Append(song); - + } @@ -110,6 +107,60 @@ public class DirectoryLoader{ } } +public class Source{ + public String Name; + public String Path; + public bool Enabled; + public Song[] Songs = []; + public void LoadSource(){ + Songs = (Song[])DirectoryLoader.LoadDirectory(Path).ToArray(); + } + public Source(String name,String path){ + Name = name; + Path = path; + } + +} + +public class MultipleSourceLoader{ + Source[] Sources = []; + public Song[] LoadSongs(){ + Song[] Songs = []; + foreach(Source source in Sources){ + if (source.Enabled){ + Songs = (Song[])Songs.Concat(source.Songs); + } + } + return Songs; + } + public void RemoveSource(String Path){ + Source[] NewSources = []; + foreach (Source source in Sources){ + if (source.Path != Path){ + source.LoadSource(); + NewSources = (Source[])NewSources.Append(source); + } + } + Sources = NewSources; + } + public void EnableSource(String Path){ + GetSourceByPath(Path).Enabled = true; + } + public void DisableSource(String Path){ + GetSourceByPath(Path).Enabled = false; + } + public ref Source GetSourceByPath(String Path){ + for (int i = 0; i < Sources.Length;i++) + { + if (Sources[i].Path == Path) + { + return ref Sources[i]; + } + } + return ref Sources[0]; + } +} + class URLImageGetter{ public static String GetImageURL(String source){ String cleansource = source; @@ -117,16 +168,13 @@ class URLImageGetter{ if (cleansource.StartsWith("https://")){ cleansource = cleansource.Remove(0,8); } - GD.Print(cleansource); + Debug.WriteLine(cleansource); if (cleansource.StartsWith("www.youtube")){ ImageURL = "https://i.ytimg.com/vi/"; ImageURL += cleansource.Split("?")[1].Split("&")[0].Replace("v=",""); ImageURL += "/hq720.jpg"; } - else{ - GD.Print("Dosent start wi yt "); - } - GD.Print("converted ", source, " to ", ImageURL); + Debug.WriteLine("converted " + source + " to " + ImageURL); return ImageURL; } } diff --git a/Scripts/Data.cs.uid b/Scripts/Backend/Data.cs.uid similarity index 100% rename from Scripts/Data.cs.uid rename to Scripts/Backend/Data.cs.uid diff --git a/Scripts/RichPresenceManager.cs b/Scripts/Backend/RichPresenceManager.cs similarity index 96% rename from Scripts/RichPresenceManager.cs rename to Scripts/Backend/RichPresenceManager.cs index 7870897..0a7ea7e 100644 --- a/Scripts/RichPresenceManager.cs +++ b/Scripts/Backend/RichPresenceManager.cs @@ -17,7 +17,7 @@ public class RichPresenceManager{ Details = "Just started up...", State = "Listening", DetailsUrl = "https://realbucketofchicken.github.io/SimplSite/simplaudio.html", - StatusDisplay = StatusDisplayType.State, + StatusDisplay = StatusDisplayType.Name, Type = DiscordRPC.ActivityType.Listening, Assets = new DiscordRPC.Assets() { @@ -56,7 +56,7 @@ public class RichPresenceManager{ { Details = song.Name, State = song.Artist , - StatusDisplay = (!String.IsNullOrEmpty(song.Artist)) ? StatusDisplayType.State : StatusDisplayType.Details, + StatusDisplay = (!String.IsNullOrEmpty(song.Artist)) ? StatusDisplayType.Details : StatusDisplayType.Details, Type = DiscordRPC.ActivityType.Listening, Assets = new DiscordRPC.Assets() { diff --git a/Scripts/RichPresenceManager.cs.uid b/Scripts/Backend/RichPresenceManager.cs.uid similarity index 100% rename from Scripts/RichPresenceManager.cs.uid rename to Scripts/Backend/RichPresenceManager.cs.uid diff --git a/Scripts/SongDisplay.cs b/Scripts/Backend/SongDisplay.cs similarity index 83% rename from Scripts/SongDisplay.cs rename to Scripts/Backend/SongDisplay.cs index a90c3ca..95b2e19 100644 --- a/Scripts/SongDisplay.cs +++ b/Scripts/Backend/SongDisplay.cs @@ -6,6 +6,7 @@ public partial class SongDisplay : Control { public int DisplayId; Song SavedInfo; + [Export] TextureRect background; [Export] Label NameLabel; [Export] Label ArtistLabel; @@ -21,13 +22,8 @@ public partial class SongDisplay : Control NameLabel.Text = SavedInfo.Name; ArtistLabel.Text = SavedInfo.Artist; - PlayButton.Pressed += ButtonPressed; //OpenURLButton.GetPopup().Connect("id_pressed", new Callable(this, "id_pressed")); } - void ButtonPressed(){ - Context.ISongPlayer.LoadSong(SavedInfo); - Context.ISongPlayer.PlaySong(); - } void URLOpen(){ OS.ShellOpen(SavedInfo.URL); } diff --git a/Scripts/SongDisplay.cs.uid b/Scripts/Backend/SongDisplay.cs.uid similarity index 100% rename from Scripts/SongDisplay.cs.uid rename to Scripts/Backend/SongDisplay.cs.uid diff --git a/Scripts/Context.cs b/Scripts/Context.cs deleted file mode 100644 index 05c61dd..0000000 --- a/Scripts/Context.cs +++ /dev/null @@ -1,47 +0,0 @@ -using ATL; -using Godot; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; - -public partial class Context : Node -{ - public Thread processingThread; - public static Context instance; - public IEnumerable Songs; - DirectoryLoader manager = new(); - static public SongPlayer ISongPlayer; - public event Action> SongsUpdated; - public SimplaudioSettings Setting; - - public override void _Ready() - { - base._Ready(); - Setting = SaveManager.LoadSettings(); - GD.Print("keys: ", Setting.Sources.Keys); - instance = this; - ISongPlayer = new SongPlayer(); - AddChild(ISongPlayer); - RichPresenceManager.instance = new(); - RichPresenceManager.instance.Setup(); - } - public override void _Process(double delta) - { - base._Process(delta); - RichPresenceManager.instance.Update(); - } - - - - - - public void LoadDirectory(String path){ - GD.Print("Loading ",path); - Songs = manager.LoadDirectory(path); - GD.Print("Songs loaded"); - - // Just event stuff - SongsUpdated(Songs); - } -} diff --git a/Scripts/Context.cs.uid b/Scripts/Context.cs.uid deleted file mode 100644 index 3d68fa1..0000000 --- a/Scripts/Context.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://bq55jftgugexl diff --git a/Scripts/PerformanceDisplay.cs b/Scripts/PerformanceDisplay.cs deleted file mode 100644 index 88f6bbd..0000000 --- a/Scripts/PerformanceDisplay.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Godot; -using System; -using System.Collections.Generic; -using System.Linq; - -public partial class PerformanceDisplay : Node -{ - [Export] public PackedScene display; - [Export] public Control UpperMargin; - [Export] public Control SongContainer; - [Export] public Control LowerMargin; - [Export] public ScrollContainer Scroll; - - public override void _Ready() - { - base._Ready(); - if (Context.instance != null){ - Context.instance.SongsUpdated += UpdateDisplay; - } - else{ - GD.PushError("instance null"); - } - - } - - IEnumerable DisplayedSongs = []; - void UpdateDisplay(IEnumerable songs){ - DisplayedSongs = songs; - GD.Print("Updated, songs ",songs.Count()); - - } - - public override void _Process(double delta) - { - base._Process(delta); - int CurrentIndex = (int)(Scroll.ScrollVertical/ 75); - int MaxIndex = (int)((Scroll.Size.Y / 75)+CurrentIndex+1); - - IEnumerable DisplayRemove =[]; - IEnumerable ids = []; - IEnumerable displays = []; - - foreach(Node child in SongContainer.GetChildren()){ - if (child is SongDisplay display1) - { - displays = displays.Append(display1); - } - } - if (displays.Any()) - { - foreach (SongDisplay display in displays){ - if (display.DisplayId < CurrentIndex || display.DisplayId > MaxIndex){ - DisplayRemove = DisplayRemove.Append(display); - } - else{ - ids = ids.Append(display.DisplayId); - } - } - } - for (int i = CurrentIndex; i >= CurrentIndex && i <= MaxIndex;i++) - { - if (!ids.Contains(i)){ - if (i > DisplayedSongs.Count()-1){ - break; - } - Song Songinfo = DisplayedSongs.ElementAt(i); - if (!Songinfo.LoadedMetadata){ - Songinfo.LoadMetadata(); - } - SongDisplay scene = (SongDisplay)display.Instantiate(); - SongContainer.AddChild(scene); - scene.Setup(Songinfo); - scene.DisplayId = i; - SongContainer.MoveChild(scene,i - CurrentIndex); - GD.Print("CurrentIndex ", CurrentIndex); - displays = displays.Append(scene); - } - } - - foreach (SongDisplay display in DisplayRemove) - { - display.QueueFree(); - } - update_margins(CurrentIndex); - } - void update_margins(int CurrentIndex,int songsize = 75){ - int ChildSize = SongContainer.GetChildren().Count * songsize; - int TotalSize = songsize * DisplayedSongs.Count(); - int TopMarginSize = CurrentIndex*songsize; - int LowMarginSize = TotalSize-ChildSize-TopMarginSize; - UpperMargin.CustomMinimumSize = new Vector2(0,TopMarginSize); - LowerMargin.CustomMinimumSize = new Vector2(0, LowMarginSize); - } -} diff --git a/Scripts/PerformanceDisplay.cs.uid b/Scripts/PerformanceDisplay.cs.uid deleted file mode 100644 index 5d46c7b..0000000 --- a/Scripts/PerformanceDisplay.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://23jo0gxt4s8r diff --git a/Scripts/SaveManager.cs b/Scripts/SaveManager.cs deleted file mode 100644 index 321938e..0000000 --- a/Scripts/SaveManager.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using DiscordRPC; -using Godot; - -public class SaveManager{ - const String SaveLocation = "user://Saved.tres"; - public static SimplaudioSettings LoadSettings(){ - SimplaudioSettings loaded = GD.Load(SaveLocation); - if (loaded == null){ - return new SimplaudioSettings(); - } - return loaded; - } - public static void SaveSettings(SimplaudioSettings settings){ - ResourceSaver.Save(settings, SaveLocation); - } -} \ No newline at end of file diff --git a/Scripts/SaveManager.cs.uid b/Scripts/SaveManager.cs.uid deleted file mode 100644 index 27d559f..0000000 --- a/Scripts/SaveManager.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://vqf4yrwaaggo diff --git a/Scripts/SearchDisplay.cs b/Scripts/SearchDisplay.cs deleted file mode 100644 index 2e3cfeb..0000000 --- a/Scripts/SearchDisplay.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Godot; -using System; -using System.Collections.Generic; -using System.Linq; - -public partial class SearchDisplay : PerformanceDisplay -{ - - public override void _Ready() - { - base._Ready(); - } - -} diff --git a/Scripts/SearchDisplay.cs.uid b/Scripts/SearchDisplay.cs.uid deleted file mode 100644 index e7c031d..0000000 --- a/Scripts/SearchDisplay.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dq3yj21reqk80 diff --git a/Scripts/SimplaudioSettings.cs b/Scripts/SimplaudioSettings.cs deleted file mode 100644 index 785658e..0000000 --- a/Scripts/SimplaudioSettings.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using Godot; -using Godot.Collections; - -[GlobalClass][Tool] -public partial class SimplaudioSettings : Resource{ - [Export] public bool Shuffled { get; set; } - [Export] public Dictionary Sources { get; set; } - - public SimplaudioSettings(){ - Sources = new Dictionary(); - } -} - -public partial class Source(String SourcePath, String SourceName) : Resource -{ - [Export] public String Path = SourcePath; - [Export] public String Name = SourceName; -} - -public partial class SimplaudioSave : Resource{ - [Export] public Source[] Sources; - -} diff --git a/Scripts/SimplaudioSettings.cs.uid b/Scripts/SimplaudioSettings.cs.uid deleted file mode 100644 index b36eac6..0000000 --- a/Scripts/SimplaudioSettings.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dbelngrrq8x2s diff --git a/Scripts/SongPlayer.cs b/Scripts/SongPlayer.cs deleted file mode 100644 index 3afee4f..0000000 --- a/Scripts/SongPlayer.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Godot; -using System; -public partial class SongPlayer : Node{ - AudioStreamPlayer Player; - - public Action SongChanged; - public Action SongStateUpdated; - public void PlaySong(){ - GD.Print("PlaySong"); - Player?.Play(); - SongStateUpdated?.Invoke(false); - } - public void PauseSong(){ - GD.Print("PauseSong"); - if (Player == null){ - return; - } - Player.StreamPaused = true; - SongStateUpdated?.Invoke(true); - - } - public void UnpauseSong(){ - GD.Print("UnpauseSong"); - if (Player == null){ - return; - } - Player.StreamPaused = false; - SongStateUpdated?.Invoke(false); - } - public void LoadSong(Song song){ - Player?.QueueFree(); - Player = new AudioStreamPlayer(); - Player.Stream = song.LoadSong(); - AddChild(Player); - GD.Print("Playing ", song.Directory); - SongChanged?.Invoke(song); - Player.Bus = "Music"; - RichPresenceManager.instance?.SetPresence(song); - } - // 0 - 1 range - public void SetPosition(float Position){ - if (Player == null || Player.Stream == null){ - return; - } - double length = Player.Stream.GetLength(); - Player.Play((float)length*Position); - RichPresenceManager.instance.UpdateTime((double)Position*length,(double)length,false); - } - public float GetPosition(){ - if (Player == null || Player.Stream == null){ - return 0f; - } - float length = (float)Player.Stream.GetLength(); - return (float)Player.GetPlaybackPosition()/length; - } -} diff --git a/Scripts/SongPlayer.cs.uid b/Scripts/SongPlayer.cs.uid deleted file mode 100644 index 8f7796d..0000000 --- a/Scripts/SongPlayer.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://d3v27hhdedguv diff --git a/Scripts/SourceDisplay.cs b/Scripts/SourceDisplay.cs index a55a4c1..b3fc8f4 100644 --- a/Scripts/SourceDisplay.cs +++ b/Scripts/SourceDisplay.cs @@ -3,17 +3,24 @@ using System; public partial class SourceDisplay : Control { - [Export] public Label NameLabel; - [Export] public Label PathLabel; - [Export] public CheckBox CheckButtonButton; + public event Action Changed; public Source source; - public override void _Ready() - { - base._Ready(); - if (source != null){ - NameLabel.Text = source.Name; - PathLabel.Text = source.Path; - } - + [Export] CheckBox EnabledCheck; + [Export] Label NameLabel; + [Export] Label PathLabel; + public bool Enabled; + public void Update(){ + PathLabel.Text = source.Path; + NameLabel.Text = source.Name; + EnabledCheck.Toggled += Toggled; + } + void Toggled(bool enabled){ + Enabled = enabled; + Changed?.Invoke(); + } + void Delete(){ + Enabled = false; + Changed?.Invoke(); + QueueFree(); } } diff --git a/Scripts/SourceDisplay.cs.uid b/Scripts/SourceDisplay.cs.uid index d56b9b1..065f9f6 100644 --- a/Scripts/SourceDisplay.cs.uid +++ b/Scripts/SourceDisplay.cs.uid @@ -1 +1 @@ -uid://cohxe7s2pd123 +uid://du2j3lspxge7f diff --git a/Scripts/SourceLoader.cs b/Scripts/SourceLoader.cs new file mode 100644 index 0000000..0ccc597 --- /dev/null +++ b/Scripts/SourceLoader.cs @@ -0,0 +1,163 @@ +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +using Godot; +using System.Diagnostics; +using System.Collections; + +public partial class SourceLoader : Node +{ + AudioStreamPlayer player; + Song CurrentSong; + + bool ModifyingProgressbar; + + RichPresenceManager RichPresence; + + [Export] SourceManager manager; + + [ExportSubgroup("UI Elements")] + [Export] Button playbutton; + [Export] Button backbutton; + [Export] Button skipbutton; + [Export] Button loopbutton; + [Export] HSlider progressbar; + [Export] Label progresslabel; + [Export] Label TitleLabel; + [Export] Label ArtistLabel; + [Export] Label AlbumLabel; + [Export] TextureRect CoverArt; + + [ExportSubgroup("Resources")] + [Export] Texture2D PausedIcon; + [Export] Texture2D PlayingIcon; + event Action UpdatedSong; + int last_time; + public override void _Ready() + { + base._Ready(); + playbutton.Pressed += PausePlay; + backbutton.Pressed += PlayLast; + skipbutton.Pressed += PlayNext; + RichPresence = new(); + RichPresence.Setup(); + progressbar.DragStarted += StartInteractionProgressbar; + progressbar.DragEnded += StopInteractionProgressbar; + } + + public override void _Process(double delta) + { + base._Process(delta); + if (player != null && player.Stream != null){ + if (!ModifyingProgressbar){ + progressbar.Value = player.GetPlaybackPosition()/player.Stream.GetLength(); + + } + else{ + if (last_time != (int)(progressbar.Value * player.Stream.GetLength())){ + player.Play((float)(progressbar.Value * player.Stream.GetLength())); + } + last_time = (int)(progressbar.Value * player.Stream.GetLength()); + } + progresslabel.Text = GetTimeFormattedString((float)(progressbar.Value * player.Stream.GetLength()),(float)(player.Stream.GetLength())) + " / " + GetTimeFormattedString((float)(player.Stream.GetLength())); + } + } + + static String GetTimeFormattedString(float time,float maxTime = 0){ + if (maxTime == 0){ + maxTime = time; + } + int seconds = (int)time % 60; + int minutes = (int)time / 60 % 60; + int hours = (int)time / 3600 % 60; + String SecondsString = seconds < 10 ? "0"+ seconds.ToString() : seconds.ToString(); + String MinutesString = maxTime > 60 ? minutes.ToString() + ":" : ""; + String HoursString = maxTime > 3600 ? hours.ToString() + ":" : ""; + return HoursString + MinutesString + SecondsString; + } + + public IEnumerable GetSongs(){ + return manager.Songs; + } + + public int GetCurrentIndex(){ + int index = -1; + for (int i = 0; i < manager.Songs.Length - 1;i++){ + if (CurrentSong == manager.Songs[i]){ + index = i; + break; + } + } + Debug.WriteLine("GOt: " + index.ToString()); + return index; + } + + void PausePlay(){ + if (playbutton.ButtonPressed){ + player.StreamPaused = true; + RichPresence.UpdateTime(progressbar.Value * player.Stream.GetLength(),player.Stream.GetLength(),true); + playbutton.Icon = PausedIcon; + } + else{ + player.StreamPaused = false; + RichPresence.UpdateTime(progressbar.Value * player.Stream.GetLength(),player.Stream.GetLength(),false); + playbutton.Icon = PlayingIcon; + } + } + + void PlayNext(){ + int index = (GetCurrentIndex()+1) % manager.Songs.Length; + ref Song newSong = ref manager.Songs[index]; + CurrentSong = newSong; + PlaySong(ref CurrentSong); + } + void PlayLast(){ + int index = (GetCurrentIndex()-1) % manager.Songs.Length; + if (index < 0){ + index += manager.Songs.Length; + } + ref Song newSong = ref manager.Songs[index]; + CurrentSong = newSong; + PlaySong(ref CurrentSong); + } + + void PlaySong(ref Song song){ + player?.QueueFree(); + player = new(); + GetTree().Root.CallDeferred("add_child",player); + player.Stream = song.LoadSong(); + player.CallDeferred("play"); + player.Finished += SongEnded; + RichPresence.SetPresence(song); + playbutton.ButtonPressed = false; + UpdatedSong?.Invoke(song); + if (!song.LoadedMetadata){ + song.LoadMetadata(); + } + TitleLabel.Text = song.Name; + ArtistLabel.Text = song.Artist; + AlbumLabel.Text = song.Album; + ImageTexture adfj = ImageTexture.CreateFromImage(song.LoadImage()); + CoverArt.Texture = adfj; + playbutton.Icon = PlayingIcon; + } + void SongEnded(){ + if (loopbutton.ButtonPressed){ + player.Play(); + } + else{ + PlayNext(); + } + } + void StartInteractionProgressbar(){ + ModifyingProgressbar = true; + } + void StopInteractionProgressbar(bool changed){ + ModifyingProgressbar = false; + playbutton.ButtonPressed = false; + playbutton.Icon = PlayingIcon; + RichPresence.UpdateTime(progressbar.Value * player.Stream.GetLength(),player.Stream.GetLength(),false); + last_time = -1; + } +} diff --git a/Scripts/SourceLoader.cs.uid b/Scripts/SourceLoader.cs.uid new file mode 100644 index 0000000..3d1a765 --- /dev/null +++ b/Scripts/SourceLoader.cs.uid @@ -0,0 +1 @@ +uid://f5kkp8ovi107 diff --git a/Scripts/SourceManager.cs b/Scripts/SourceManager.cs new file mode 100644 index 0000000..2bdd6ad --- /dev/null +++ b/Scripts/SourceManager.cs @@ -0,0 +1,38 @@ +using Godot; +using System; +using System.Linq; + +public partial class SourceManager : Node +{ + [Export] Control SourceRoot; + [Export] AddDialog AddDialog; + [Export] PackedScene SourceDisplayScene; + public Song[] Songs = []; + MultipleSourceLoader loader; + public override void _Ready() + { + base._Ready(); + loader = new(); + AddDialog.NewSource += NewSource; + } + void NewSource(String Name,String Directory){ + SourceDisplay display = (SourceDisplay)SourceDisplayScene.Instantiate(); + SourceRoot.AddChild(display); + Source newsource = new(Name,Directory); + display.source = newsource; + display.Changed += UpdateSongs; + display.Update(); + UpdateSongs(); + } + void UpdateSongs(){ + Song[] NewSongs = []; + foreach(SourceDisplay display in SourceRoot.GetChildren()){ + if (display.Enabled){ + NewSongs = (Song[])NewSongs.Concat(display.source.Songs); + display.source.LoadSource(); + } + + } + Songs = NewSongs; + } +} diff --git a/Scripts/SourceManager.cs.uid b/Scripts/SourceManager.cs.uid new file mode 100644 index 0000000..de46eb0 --- /dev/null +++ b/Scripts/SourceManager.cs.uid @@ -0,0 +1 @@ +uid://cl8087ysk6gbg diff --git a/Scripts/SourcetabUI.cs b/Scripts/SourcetabUI.cs deleted file mode 100644 index 02cac04..0000000 --- a/Scripts/SourcetabUI.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Godot; -using System; - -public partial class SourcetabUI : Node -{ - [Export] public Button AddSourceButton; - [Export] public Control Adder; - [Export] public LineEdit Namer; - [Export] public Button DirOpenButton; - [Export] public RichTextLabel DirLabel; - [Export] public Button AddButton; - [Export] public FileDialog Dialog; - [Export] public Control SourceContainer; - [Export] public PackedScene SourceScene; - String Directory = ""; - - public event Action SongsUpdated; - public override void _Ready() - { - base._Ready(); - AddSourceButton.Pressed += AddSource; - Namer.TextChanged += TextChanged; - Dialog.DirSelected += DirSelected; - DirOpenButton.Pressed += ShowDialog; - AddButton.Pressed += Add; - Adder.Hide(); - } - void AddSource(){ - Adder.Show(); - DirLabel.Text = ""; - Namer.Text = ""; - Dialog.Visible = false; - Directory = ""; - AddButton.Disabled = true; - } - void ShowDialog(){ - Dialog.Show(); - } - - void DirSelected(String Dir){ - Directory = Dir; - UpdateVisuals(); - } - - void TextChanged(String Text){ - UpdateVisuals(); - } - void UpdateVisuals(){ - DirLabel.Text = Directory; - AddButton.Disabled = !IsValid(); - } - - bool IsValid(){ - bool valid = true; - if (Namer.Text == ""){ - valid = false; - } - if (Directory == ""){ - valid = false; - } - return valid; - } - void Add(){ - SourceDisplay NewSource = (SourceDisplay)SourceScene.Instantiate(); - Source sauce = new Source(Directory, Namer.Text); - NewSource.source = sauce; - SourceContainer.AddChild(NewSource); - SongsUpdated?.Invoke(); - Context.instance.LoadDirectory(Directory); - Adder.Hide(); - } -} diff --git a/Scripts/SourcetabUI.cs.uid b/Scripts/SourcetabUI.cs.uid deleted file mode 100644 index 970716b..0000000 --- a/Scripts/SourcetabUI.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://y1d7cbmhmllf diff --git a/Scripts/UIManager.cs b/Scripts/UIManager.cs deleted file mode 100644 index d26ef1a..0000000 --- a/Scripts/UIManager.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Godot; -using System; -using System.Collections.Generic; -using System.Linq; - -public partial class UIManager : Node{ - [Export] Button PlayPauseButton; - [Export] Texture2D PauseImage; - [Export] Texture2D PlayImage; - [Export] HSlider ProgressIndicator; - [Export] Button SkipButton; - [Export] Button GoBackButton; - [Export] Button LoopButton; - [Export] Button RandomizeButton; - - bool SliderDragging; - - static UIManager instance; - public override void _Ready() - { - base._Ready(); - instance = this; - ProgressIndicator.DragStarted += sliderDrag; - ProgressIndicator.DragEnded += sliderDragEnded; - PlayPauseButton.Toggled += PausePlay; - Context.ISongPlayer.SongStateUpdated += UpdatePausePlay; - } - - void PausePlay(bool Newstate){ - if (Newstate){ - Context.ISongPlayer.PauseSong(); - PlayPauseButton.Icon = PlayImage; - } - else{ - Context.ISongPlayer.UnpauseSong(); - PlayPauseButton.Icon = PauseImage; - } - } - - void UpdatePausePlay(bool paused){ - if (paused){ - PlayPauseButton.Icon = PlayImage; - PlayPauseButton.ButtonPressed = true; - } - else{ - PlayPauseButton.Icon = PauseImage; - PlayPauseButton.ButtonPressed = false; - } - } - - public override void _Process(double delta) - { - base._Process(delta); - if (!SliderDragging){ - ProgressIndicator.Value = Context.ISongPlayer.GetPosition(); - } - } - - void sliderDrag(){ - SliderDragging = true; - } - void sliderDragEnded(bool changed){ - SliderDragging = false; - - Context.ISongPlayer.SetPosition((float)ProgressIndicator.Value); - } -} diff --git a/Scripts/UIManager.cs.uid b/Scripts/UIManager.cs.uid deleted file mode 100644 index 0cf4592..0000000 --- a/Scripts/UIManager.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://ci5h1wwbedkbt diff --git a/Scripts/slider.gd b/Scripts/slider.gd new file mode 100644 index 0000000..c7c0998 --- /dev/null +++ b/Scripts/slider.gd @@ -0,0 +1,4 @@ +extends VSlider + +func _process(_delta: float) -> void: + AudioServer.set_bus_volume_db(0,((pow(value,0.25))*100)-100) diff --git a/Scripts/slider.gd.uid b/Scripts/slider.gd.uid new file mode 100644 index 0000000..da55091 --- /dev/null +++ b/Scripts/slider.gd.uid @@ -0,0 +1 @@ +uid://bunh7x8sltmpc diff --git a/Simplaudio.csproj b/Simplaudio.csproj index 26993ea..4b243bf 100644 --- a/Simplaudio.csproj +++ b/Simplaudio.csproj @@ -1,4 +1,4 @@ - + net8.0 true diff --git a/Simplaudio.csproj.old.1 b/Simplaudio.csproj.old.1 new file mode 100644 index 0000000..26993ea --- /dev/null +++ b/Simplaudio.csproj.old.1 @@ -0,0 +1,14 @@ + + + net8.0 + true + + + + + + + + + + \ No newline at end of file diff --git a/Simplaudio.csproj.old.2 b/Simplaudio.csproj.old.2 new file mode 100644 index 0000000..f37377d --- /dev/null +++ b/Simplaudio.csproj.old.2 @@ -0,0 +1,14 @@ + + + net8.0 + true + + + + + + + + + + \ No newline at end of file diff --git a/new_shader.tres b/new_shader.tres deleted file mode 100644 index 7166e3f..0000000 --- a/new_shader.tres +++ /dev/null @@ -1,13 +0,0 @@ -[gd_resource type="VisualShader" format=3 uid="uid://b1lo8i4plpumb"] - -[resource] -code = "shader_type canvas_item; -render_mode blend_mix; - - - -" -graph_offset = Vector2(-407.855, 21.2834) -mode = 1 -flags/light_only = false -nodes/fragment/0/position = Vector2(400, 160) diff --git a/project.godot b/project.godot index fa4ccb6..935a4ff 100644 --- a/project.godot +++ b/project.godot @@ -45,6 +45,21 @@ version_control/autoload_on_startup=true enabled=PackedStringArray() +[input] + +ui_accept={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194310,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +ui_select={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":3,"pressure":0.0,"pressed":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194309,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} + [internationalization] locale/translations=PackedStringArray("res://translation/translations.de.translation", "res://translation/translations.en.translation") diff --git a/shaders/SongShader.gdshader b/shaders/SongShader.gdshader new file mode 100644 index 0000000..70eeab7 --- /dev/null +++ b/shaders/SongShader.gdshader @@ -0,0 +1,21 @@ +shader_type canvas_item; + +uniform sampler2D dissolve; +uniform sampler2D dissolve2 : repeat_enable; +uniform float secondIntensity; +uniform float secondSpeed; + +void vertex() { + // Called for every vertex the material is visible on. +} + +void fragment() { + vec4 tex = texture(dissolve,UV); + COLOR.a = tex.a; + COLOR.a -= (texture(dissolve2,UV+(vec2(TIME,TIME*0.3)*secondSpeed))*1.0-tex.a*secondIntensity).r; +} + +//void light() { + // Called for every pixel for every light affecting the CanvasItem. + // Uncomment to replace the default light processing function with this one. +//} \ No newline at end of file diff --git a/shaders/SongShader.gdshader.uid b/shaders/SongShader.gdshader.uid new file mode 100644 index 0000000..41bda33 --- /dev/null +++ b/shaders/SongShader.gdshader.uid @@ -0,0 +1 @@ +uid://can7wccpqov5f