Compare commits

..

7 Commits

Author SHA1 Message Date
notdraimdev c0b1bf0efb better update checker commit 2 2024-09-30 13:47:40 +02:00
notdraimdev 35acc4725b Better update checker 2024-09-30 13:47:40 +02:00
notdraimdev 13acb8002c dsew 2024-09-30 13:47:40 +02:00
Bucket Of Chicken 0564e0bd26 Version checker
Version checker
2024-09-25 20:33:03 +02:00
Bucket Of Chicken 63be2bb195 Merge pull request #4 from notdraimdev/development
Development to main merge
2024-09-25 18:00:19 +02:00
Bucket Of Chicken d6736d8ff5 Merge pull request #3 from notdraimdev/development
Fixed wrong playlist at start
2024-09-16 16:45:12 +02:00
Bucket Of Chicken 090e226053 Merge pull request #1 from notdraimdev/development
Development
2024-09-12 22:09:11 +02:00
204 changed files with 2441 additions and 2690 deletions
-31
View File
@@ -1,31 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
BIN
View File
Binary file not shown.
-24
View File
@@ -1,24 +0,0 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://n8g3v41u2u48"
path="res://.godot/imported/Error.wav-b2b6458729ce3f06f5935efb0ef36e35.sample"
[deps]
source_file="res://Audio/Error.wav"
dest_files=["res://.godot/imported/Error.wav-b2b6458729ce3f06f5935efb0ef36e35.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cvndnnx1mdvqp"
path="res://.godot/imported/Project_4.mp3-fd67a84f690ad3944c7f4be9f2916969.mp3str"
[deps]
source_file="res://Audio/Project_4.mp3"
dest_files=["res://.godot/imported/Project_4.mp3-fd67a84f690ad3944c7f4be9f2916969.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bwfw3l3iyv67o"
path="res://.godot/imported/roblox win sound effect.mp3-fbcd76ac4667d55628ca51372d6bb237.mp3str"
[deps]
source_file="res://Audio/roblox win sound effect.mp3"
dest_files=["res://.godot/imported/roblox win sound effect.mp3-fbcd76ac4667d55628ca51372d6bb237.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
View File

Before

Width:  |  Height:  |  Size: 692 KiB

After

Width:  |  Height:  |  Size: 692 KiB

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b00wlqid2jdvi"
path="res://.godot/imported/BigLogo.png-5bca373df344b6475370cc45bf707716.ctex"
path="res://.godot/imported/BigLogo.png-5051142ace79d986d878d7479103140f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/BigLogo.png"
dest_files=["res://.godot/imported/BigLogo.png-5bca373df344b6475370cc45bf707716.ctex"]
source_file="res://BigLogo.png"
dest_files=["res://.godot/imported/BigLogo.png-5051142ace79d986d878d7479103140f.ctex"]
[params]
Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://drj8iwoxqu7kk"
path="res://.godot/imported/Cat_August_2010-4.jpg-ee22e0b2d7c21625ade8bb157ecd9ac0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Cat_August_2010-4.jpg"
dest_files=["res://.godot/imported/Cat_August_2010-4.jpg-ee22e0b2d7c21625ade8bb157ecd9ac0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
View File

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 644 B

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dwvy6crqhardn"
path="res://.godot/imported/Dropdown.png-f0021d4c0ded22eb7c63bcbc517eb8ad.ctex"
path="res://.godot/imported/Dropdown.png-c266aedf7196a233015624b329244429.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Dropdown.png"
dest_files=["res://.godot/imported/Dropdown.png-f0021d4c0ded22eb7c63bcbc517eb8ad.ctex"]
source_file="res://Dropdown.png"
dest_files=["res://.godot/imported/Dropdown.png-c266aedf7196a233015624b329244429.ctex"]
[params]
@@ -21,7 +21,7 @@ compress/lossy_quality=1.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal=""
Binary file not shown.

After

Width:  |  Height:  |  Size: 711 KiB

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://snne8iiftksi"
path="res://.godot/imported/Evening_view_of_Munnar_1633.jpg-4870b614e5bd4e88e63602e1260d7057.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Evening_view_of_Munnar_1633.jpg"
dest_files=["res://.godot/imported/Evening_view_of_Munnar_1633.jpg-4870b614e5bd4e88e63602e1260d7057.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
View File

Before

Width:  |  Height:  |  Size: 609 B

After

Width:  |  Height:  |  Size: 609 B

+3 -3
View File
@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://pgij783wgbhn"
path="res://.godot/imported/File.png-4411e7b96437ffc88364c665e51b8d04.ctex"
path="res://.godot/imported/File.png-57bbd962d1d727ee4616fbeb9b4b7d6d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/File.png"
dest_files=["res://.godot/imported/File.png-4411e7b96437ffc88364c665e51b8d04.ctex"]
source_file="res://File.png"
dest_files=["res://.godot/imported/File.png-57bbd962d1d727ee4616fbeb9b4b7d6d.ctex"]
[params]
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cekkhyppj88xi"
path="res://.godot/imported/Headphones.png-d3ff607bfcad0de8118c5633a583eaf3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Headphones.png"
dest_files=["res://.godot/imported/Headphones.png-d3ff607bfcad0de8118c5633a583eaf3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bmbxyma4ra46p"
path="res://.godot/imported/Download.png-6edabc13913011fcc1c474de846d5a9e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Download.png"
dest_files=["res://.godot/imported/Download.png-6edabc13913011fcc1c474de846d5a9e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cekkhyppj88xi"
path="res://.godot/imported/Headphones.png-5216505d06b86ae3755e2faf13668450.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Headphones.png"
dest_files=["res://.godot/imported/Headphones.png-5216505d06b86ae3755e2faf13668450.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b8on1case224h"
path="res://.godot/imported/LoopPressed.png-4a3ff253d730f38bb12be6a28d2296e8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/LoopPressed.png"
dest_files=["res://.godot/imported/LoopPressed.png-4a3ff253d730f38bb12be6a28d2296e8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cm5ps3a716wr0"
path="res://.godot/imported/XSmall.png-3f5e03f6bae52e14377c330d561cf482.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/XSmall.png"
dest_files=["res://.godot/imported/XSmall.png-3f5e03f6bae52e14377c330d561cf482.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://0r1tx6l1lc6x"
path="res://.godot/imported/settingscog.png-1b51c867ad6363c7213609d4b59a5432.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/settingscog.png"
dest_files=["res://.godot/imported/settingscog.png-1b51c867ad6363c7213609d4b59a5432.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dvid0yk4kh5hq"
path="res://.godot/imported/Eveningsmall.jpg-61c25a9a71bfd3fb3f9b3fde2977ed4a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/Eveningsmall.jpg"
dest_files=["res://.godot/imported/Eveningsmall.jpg-61c25a9a71bfd3fb3f9b3fde2977ed4a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 990 KiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ce7c76l0xpw4w"
path="res://.godot/imported/Nightsmall.jpg-53aa776f406c86c646063ceda059e43e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/Nightsmall.jpg"
dest_files=["res://.godot/imported/Nightsmall.jpg-53aa776f406c86c646063ceda059e43e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

-34
View File
@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://0jo87vtoeheu"
path="res://.godot/imported/pole2.jpg-1cce1e6b49f1c3dda6d93de5714565ac.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/pole2.jpg"
dest_files=["res://.godot/imported/pole2.jpg-1cce1e6b49f1c3dda6d93de5714565ac.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b5eims5ucn81r"
path="res://.godot/imported/Loding.png-6d3c0733bbca79cc50961d85464a8b98.ctex"
path="res://.godot/imported/Loding.png-13d0c1c393fa96e7f8c05bd230c70d68.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Loding.png"
dest_files=["res://.godot/imported/Loding.png-6d3c0733bbca79cc50961d85464a8b98.ctex"]
source_file="res://Loding.png"
dest_files=["res://.godot/imported/Loding.png-13d0c1c393fa96e7f8c05bd230c70d68.ctex"]
[params]
@@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

+3 -3
View File
@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b5ml1dkiuo5ta"
path="res://.godot/imported/Logo.png-74a0629716e72ae40e6b8ec0af0a36d4.ctex"
path="res://.godot/imported/Logo.png-3f727bc575b71196031e5024c4a29f71.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Logo.png"
dest_files=["res://.godot/imported/Logo.png-74a0629716e72ae40e6b8ec0af0a36d4.ctex"]
source_file="res://Logo.png"
dest_files=["res://.godot/imported/Logo.png-3f727bc575b71196031e5024c4a29f71.ctex"]
[params]
View File

Before

Width:  |  Height:  |  Size: 388 KiB

After

Width:  |  Height:  |  Size: 388 KiB

+4 -4
View File
@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c7h2dlsbj7e0u"
path="res://.godot/imported/Logo2.png-100c0815408d11fe328d0658eac3e9f7.ctex"
path="res://.godot/imported/Logo2.png-d2b706aaa6822e4fe45113d605e69914.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Logo2.png"
dest_files=["res://.godot/imported/Logo2.png-100c0815408d11fe328d0658eac3e9f7.ctex"]
source_file="res://Logo2.png"
dest_files=["res://.godot/imported/Logo2.png-d2b706aaa6822e4fe45113d605e69914.ctex"]
[params]
@@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 935 B

+4 -4
View File
@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://38c8dfym0svn"
path="res://.godot/imported/Loop.png-3a14373bdaaa66724c0d3e0e4930c783.ctex"
path="res://.godot/imported/Loop.png-bfc3463d46fb58690ebdf4ee06fd021a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Loop.png"
dest_files=["res://.godot/imported/Loop.png-3a14373bdaaa66724c0d3e0e4930c783.ctex"]
source_file="res://Loop.png"
dest_files=["res://.godot/imported/Loop.png-bfc3463d46fb58690ebdf4ee06fd021a.ctex"]
[params]
@@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b8on1case224h"
path="res://.godot/imported/LoopPressed.png-2571b6b294b9535da3cebb236adaaf3d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://LoopPressed.png"
dest_files=["res://.godot/imported/LoopPressed.png-2571b6b294b9535da3cebb236adaaf3d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
File diff suppressed because it is too large Load Diff
@@ -38,7 +38,7 @@ func get_mp3_metadata(stream: AudioStreamMP3) -> MusicMetadata:
return meta
var v = "ID3v2.%d.%d" % [header[3], header[4]]
if v == "ID3v2.4.0" or v == "ID3v2.3.0" or v == "ID3v2.2.0":
if v == "ID3v2.4.0" or v == "ID3v2.3.0":
var flags = header[5]
var _unsync = flags & 0x80 > 0
var extended = flags & 0x40 > 0
@@ -66,18 +66,15 @@ func get_mp3_metadata(stream: AudioStreamMP3) -> MusicMetadata:
match frame_id:
"TBPM", 'TBP':
meta.bpm = int(get_string_from_data(data, idx, size))
"TIT2","TT2":
"TIT2":
print("a " + str(Array(data.slice(idx, idx + 3)).hash()))
print([1, 0xff, 0xfe].hash())
meta.title = get_string_from_data(data, idx, size)
"TALB", 'TAL':
meta.album = get_string_from_data(data, idx, size)
"COMM","COM":
var string:String = get_string_from_data(data, idx, size)
print("got comment " + string)
if string:
meta.comments = string
"TYER","TYE":
"COMM":
meta.comments = get_string_from_data(data, idx, size)
"TYER":
meta.year = int(get_string_from_data(data, idx, size))
"TPE1", 'TP1':
meta.artist = get_string_from_data(data, idx, size)
@@ -1 +0,0 @@
uid://rnxfmtoo2yn4
@@ -1 +0,0 @@
uid://cdigfnlqg2r8l
@@ -1 +0,0 @@
uid://bs5vnv3baji7f
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

+4 -4
View File
@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://ch8wymyxftkb3"
path="res://.godot/imported/Pause.png-65652e6e56baf3539bef8ff5ed11c80f.ctex"
path="res://.godot/imported/Pause.png-99d81406ad159c03d8332d8485dcc99a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Pause.png"
dest_files=["res://.godot/imported/Pause.png-65652e6e56baf3539bef8ff5ed11c80f.ctex"]
source_file="res://Pause.png"
dest_files=["res://.godot/imported/Pause.png-99d81406ad159c03d8332d8485dcc99a.ctex"]
[params]
@@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

+4 -4
View File
@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://ctb4s2nks73rx"
path="res://.godot/imported/Play.png-027e1a7ba14d3532475ac2beb7611718.ctex"
path="res://.godot/imported/Play.png-6c190f94eded8f6a668bcf021d49d2ce.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Icons/Play.png"
dest_files=["res://.godot/imported/Play.png-027e1a7ba14d3532475ac2beb7611718.ctex"]
source_file="res://Play.png"
dest_files=["res://.godot/imported/Play.png-6c190f94eded8f6a668bcf021d49d2ce.ctex"]
[params]
@@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://c33qaelwn46f4"]
[ext_resource type="Script" uid="uid://cs12qambyvou8" path="res://Scripts/playlist_display.gd" id="1_h0jh1"]
[ext_resource type="Texture2D" uid="uid://dwvy6crqhardn" path="res://Icons/Dropdown.png" id="2_im6ur"]
[ext_resource type="Script" path="res://playlist_display.gd" id="1_h0jh1"]
[ext_resource type="Texture2D" uid="uid://dwvy6crqhardn" path="res://Dropdown.png" id="2_im6ur"]
[sub_resource type="LabelSettings" id="LabelSettings_ky8oc"]
font_size = 12
@@ -64,7 +64,7 @@ layout_mode = 2
custom_minimum_size = Vector2(70, 0)
layout_mode = 2
focus_mode = 0
text = "PLAY"
text = "Play"
[node name="OptionsDropdown" type="MenuButton" parent="HSplitContainer/HBoxContainer"]
modulate = Color(0.724643, 0.724643, 0.724643, 1)
@@ -72,13 +72,10 @@ custom_minimum_size = Vector2(20.505, 0)
layout_mode = 2
icon = ExtResource("2_im6ur")
expand_icon = true
item_count = 3
popup/item_0/text = "Open Directory"
popup/item_0/id = 2
popup/item_1/text = "Change Directory"
popup/item_1/id = 0
popup/item_2/text = "DELETE"
popup/item_2/id = 1
item_count = 2
popup/item_0/text = "Change Directory"
popup/item_1/text = "Delete"
popup/item_1/id = 1
[node name="FileDialog" type="FileDialog" parent="."]
title = "Open a Directory"
+19
View File
@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cvndnnx1mdvqp"
path="res://.godot/imported/Project_4.mp3-7c16bd7b00580091b3ef24ad137a239b.mp3str"
[deps]
source_file="res://Project_4.mp3"
dest_files=["res://.godot/imported/Project_4.mp3-7c16bd7b00580091b3ef24ad137a239b.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
-155
View File
@@ -1,155 +0,0 @@
[gd_scene load_steps=10 format=3 uid="uid://n7cnapaftfse"]
[ext_resource type="Script" uid="uid://q2gdlr10ncnb" path="res://Scripts/playing_now_window.gd" id="1_f0rac"]
[ext_resource type="Texture2D" uid="uid://bp4ipephewcrn" path="res://SmoothEdges.png" id="2_haeb5"]
[ext_resource type="Texture2D" uid="uid://0jo87vtoeheu" path="res://Images/pole2.jpg" id="3_j8vo6"]
[sub_resource type="Gradient" id="Gradient_nf0dg"]
offsets = PackedFloat32Array(0.410072, 1)
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_kcqx3"]
gradient = SubResource("Gradient_nf0dg")
[sub_resource type="Theme" id="Theme_yr2ao"]
RichTextLabel/colors/font_shadow_color = Color(0.0768358, 0.0768358, 0.0768358, 0.52549)
RichTextLabel/constants/shadow_outline_size = 10
[sub_resource type="ImageTexture" id="ImageTexture_yr2ao"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_haeb5"]
bg_color = Color(0.28485, 0.28485, 0.28485, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
expand_margin_top = 5.0
expand_margin_bottom = 5.0
shadow_color = Color(0, 0, 0, 0.443137)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yr2ao"]
bg_color = Color(1, 1, 1, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
expand_margin_top = 5.0
expand_margin_bottom = 5.0
[node name="PlayingNowWindow" type="Control" node_paths=PackedStringArray("SongImage", "SongNameLabel", "SongNameScroller", "SongAuthorScroller", "SongAuthorLabel", "slider")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_f0rac")
SongImage = NodePath("ColorRect/TextureRect")
SongNameLabel = NodePath("VBoxContainer/ScrollContainer/SongName")
SongNameScroller = NodePath("VBoxContainer/ScrollContainer")
SongAuthorScroller = NodePath("VBoxContainer/ScrollContainer2")
SongAuthorLabel = NodePath("VBoxContainer/ScrollContainer2/SongAuthor")
slider = NodePath("VBoxContainer/Slider")
[node name="ColorRect" type="TextureRect" parent="."]
clip_children = 1
z_index = -1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_haeb5")
expand_mode = 3
stretch_mode = 5
[node name="TextureRect2" type="TextureRect" parent="ColorRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
texture = ExtResource("3_j8vo6")
expand_mode = 3
stretch_mode = 6
[node name="TextureRect" type="TextureRect" parent="ColorRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
texture = ExtResource("3_j8vo6")
expand_mode = 3
stretch_mode = 6
[node name="Sprite2D" type="Sprite2D" parent="."]
clip_children = 1
position = Vector2(-95.3115, -216)
texture = SubResource("GradientTexture2D_kcqx3")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
theme = SubResource("Theme_yr2ao")
alignment = 1
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
custom_minimum_size = Vector2(200, 25)
layout_mode = 2
size_flags_horizontal = 4
horizontal_scroll_mode = 3
vertical_scroll_mode = 0
[node name="SongName" type="RichTextLabel" parent="VBoxContainer/ScrollContainer"]
custom_minimum_size = Vector2(200, 30)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 4
text = "Playing now TOOOOOOOOOOTT"
fit_content = true
scroll_active = false
autowrap_mode = 0
horizontal_alignment = 1
[node name="ScrollContainer2" type="ScrollContainer" parent="VBoxContainer"]
custom_minimum_size = Vector2(200, 25)
layout_mode = 2
size_flags_horizontal = 4
horizontal_scroll_mode = 3
vertical_scroll_mode = 0
[node name="SongAuthor" type="RichTextLabel" parent="VBoxContainer/ScrollContainer2"]
custom_minimum_size = Vector2(200, 30)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
text = "from protein ribosome"
autowrap_mode = 0
horizontal_alignment = 1
visible_characters_behavior = 3
[node name="Slider" type="HSlider" parent="VBoxContainer"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_icons/grabber_disabled = SubResource("ImageTexture_yr2ao")
theme_override_styles/slider = SubResource("StyleBoxFlat_haeb5")
theme_override_styles/grabber_area = SubResource("StyleBoxFlat_yr2ao")
max_value = 1000.0
value = 500.0
editable = false
scrollable = false
-59
View File
@@ -1,59 +0,0 @@
[gd_scene load_steps=4 format=3 uid="uid://ctqcbjrmxaqsk"]
[ext_resource type="Script" uid="uid://c3aaxhp0oim08" path="res://Scripts/search_item.gd" id="1_j4126"]
[ext_resource type="Texture2D" uid="uid://dwvy6crqhardn" path="res://Icons/Dropdown.png" id="2_hicj1"]
[ext_resource type="Script" uid="uid://dd38vqi4220tx" path="res://Scripts/SongSource.cs" id="3_ftuau"]
[node name="SearchItem" type="Control" node_paths=PackedStringArray("soung_source")]
custom_minimum_size = Vector2(0, 30)
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2
size_flags_horizontal = 3
size_flags_vertical = 4
script = ExtResource("1_j4126")
soung_source = NodePath("Node")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
custom_minimum_size = Vector2(200, 32)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="Songname" type="Button" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
flat = true
alignment = 0
text_overrun_behavior = 1
clip_text = true
[node name="Dropdown" type="Button" parent="HBoxContainer"]
custom_minimum_size = Vector2(20, 0)
layout_mode = 2
tooltip_text = "delete song from hard-drive"
focus_mode = 0
icon = ExtResource("2_hicj1")
flat = true
icon_alignment = 1
expand_icon = true
[node name="PopupMenu" type="PopupMenu" parent="."]
size = Vector2i(116, 100)
item_count = 2
item_0/text = "DELETE"
item_0/id = 0
item_1/text = "OPEN SOURCE"
item_1/id = 1
[node name="Node" type="Node" parent="."]
script = ExtResource("3_ftuau")
[connection signal="pressed" from="HBoxContainer/Songname" to="." method="_on_songname_pressed"]
[connection signal="pressed" from="HBoxContainer/Dropdown" to="." method="_on_dropdown_pressed"]
-42
View File
@@ -1,42 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://bel6i6wdbexw4"]
[ext_resource type="Script" uid="uid://d0hvudugo3d37" path="res://Scripts/search_results.gd" id="1_mcn1o"]
[node name="SearchResults" type="Control"]
layout_mode = 3
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -311.5
offset_right = 311.5
offset_bottom = 300.0
grow_horizontal = 2
script = ExtResource("1_mcn1o")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
color = Color(0.14902, 0.14902, 0.14902, 1)
[node name="Control" type="ScrollContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
follow_focus = true
horizontal_scroll_mode = 0
[node name="ItemContainer" type="VBoxContainer" parent="Control"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
-20
View File
@@ -1,20 +0,0 @@
shader_type canvas_item;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
vec2 animatedUV;
animatedUV.x = (sin(UV.x + (TIME))/2.0)+0.5;
animatedUV.y = (sin(UV.y + (TIME+(PI/2.0)))/2.0)+0.5;
float color1 = 1.0 *animatedUV.x;
float color2 = 1.0 *animatedUV.y;
COLOR = vec4((color1*0.7)+(color2*0.3),(color1*0.5)+(color2*0.5),(color1*0.3)+(color2*0.7),1);
}
//void light() {
// Called for every pixel for every light affecting the CanvasItem.
// Uncomment to replace the default light processing function with this one.
//}
-1
View File
@@ -1 +0,0 @@
uid://dgwslfj43mu1y
-1
View File
@@ -1 +0,0 @@
uid://cv5aoaprqfuhx
-1
View File
@@ -1 +0,0 @@
uid://cf1rsngucr7e2
-1
View File
@@ -1 +0,0 @@
uid://b8g2xx06g626m
-16
View File
@@ -1,16 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using ATL;
using Godot;
public partial class SongSource : Node{
public String TryGetSongUrl(String path){
Track theTrack = new(path);
if (theTrack.AdditionalFields.TryGetValue("comment", out string value)){
return value;
}
return "";
}
}
-1
View File
@@ -1 +0,0 @@
uid://dd38vqi4220tx
-1
View File
@@ -1 +0,0 @@
uid://bx75h6xic1hi7
-38
View File
@@ -1,38 +0,0 @@
extends Control
@onready var birthday_particles: GPUParticles2D = $BirthdayParticles
@onready var audio_stream_player: AudioStreamPlayer = $AudioStreamPlayer
@onready var birthday_happy: Label = $"../BirthdayHappy"
@export var opacitycurve:Curve
var opacity:float = 1
var awaitingJumpscare:bool
var IsFocused:bool
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
birthday_happy.hide()
var bday:bool
if Time.get_datetime_dict_from_system().day == 9:
if Time.get_datetime_dict_from_system().month == 9:
await get_tree().create_timer(0.2).timeout
awaitingJumpscare = true
bday = true
func _notification(what):
if what == get_tree().NOTIFICATION_APPLICATION_FOCUS_IN:
IsFocused = true
if what == get_tree().NOTIFICATION_APPLICATION_FOCUS_OUT:
IsFocused = false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if awaitingJumpscare && IsFocused:
birthday_happy.show()
awaitingJumpscare = false
birthday_particles.emitting = true
audio_stream_player.play()
if !awaitingJumpscare:
opacity -= delta/5
birthday_happy.modulate.a = opacitycurve.sample_baked(opacity)
if opacity <= 0.0:
process_mode = ProcessMode.PROCESS_MODE_DISABLED
-1
View File
@@ -1 +0,0 @@
uid://n3koklp0funr
-1
View File
@@ -1 +0,0 @@
uid://dg68hvw773xu6
-1
View File
@@ -1 +0,0 @@
uid://bsnt1irskti8d
-1
View File
@@ -1 +0,0 @@
uid://dl37gwyodonea
-1
View File
@@ -1 +0,0 @@
uid://kt7n1epi3ng8
-1
View File
@@ -1 +0,0 @@
uid://bn0iqqmor3b2b
-14
View File
@@ -1,14 +0,0 @@
extends MenuButton
@export var settings:Settings
func _ready() -> void:
for trans_language in TranslationServer.get_loaded_locales():
get_popup().add_item(trans_language)
get_popup().id_pressed.connect(got_pressed)
func got_pressed(id:int) -> void:
settings.Parent.overridden_locale = get_popup().get_item_text(id)
TranslationServer.set_locale(get_popup().get_item_text(id))
settings.Parent.SaveEverything()
-1
View File
@@ -1 +0,0 @@
uid://cej7efsj2cyen
-29
View File
@@ -1,29 +0,0 @@
extends Control
@onready var continue_anyways: Button = $VBoxContainer/HBoxContainer/ContinueAnyways
@onready var contact: Button = $VBoxContainer/HBoxContainer/Contact
@onready var failed_audio_cue: AudioStreamPlayer = $FailedAudioCue
@onready var confirmation_dialog: ConfirmationDialog = $ConfirmationDialog
func Show():
failed_audio_cue.play()
show()
continue_anyways.pressed.connect(confirmation_dialog.show)
confirmation_dialog.confirmed.connect(Confiremed)
contact.pressed.connect(Contact)
func Confiremed():
owner.LoadingSaveFailed = false
hide()
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
hide()
func Contact():
print("Contact pressed")
OS.shell_open("https://notdraimdev.github.io/SimplSite/Contact.html")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
-1
View File
@@ -1 +0,0 @@
uid://cbdcs7oie12g5
-1
View File
@@ -1 +0,0 @@
uid://cvqefw0g6ala7
-1
View File
@@ -1 +0,0 @@
uid://bh3btjt2hkbs
-43
View File
@@ -1,43 +0,0 @@
extends Control
@export var ParentScene:MainScene
@export var SongImage:TextureRect
@export var SongNameLabel: RichTextLabel
@export var SongNameScroller:ScrollContainer
@export var SongAuthorScroller:ScrollContainer
@export var SongAuthorLabel: RichTextLabel
@onready var ParentWindow:Window = $".."
@export var update_tick:float = 0.1
@export var slider:HSlider
var ticktime:float
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
ParentScene.SongChanged.connect(SongChanged)
func scroll(scroller:ScrollContainer,incriment:float):
var scroll_h = scroller.get_h_scroll_bar().max_value - scroller.custom_minimum_size.x
if scroll_h !=0:
scroller.scroll_horizontal = wrapi(scroller.scroll_horizontal+incriment,0,\
scroll_h)
return scroller.scroll_horizontal == scroll_h-1 or scroller.scroll_horizontal == 0
return false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
ticktime -= delta
ParentWindow.size = size
slider.value = ParentScene.current_progress.value
if ticktime <= 0:
ticktime = update_tick
if scroll(SongNameScroller,1):
ticktime = 2
scroll(SongAuthorScroller,1)
func SongChanged():
SongImage.texture = ParentScene.cover.texture
print("SongChanged: ", ParentScene.currentSongName)
SongNameLabel.text = ParentScene.currentSongName
if ParentScene.currentArtistName:
SongAuthorLabel.text = ParentScene.currentArtistName
else:
SongAuthorLabel.text = ""
#ParentWindow.size = size * 2
-1
View File
@@ -1 +0,0 @@
uid://q2gdlr10ncnb
-18
View File
@@ -1,18 +0,0 @@
shader_type canvas_item;
uniform sampler2D alpha;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
COLOR.a = texture(alpha,UV).a;
//COLOR.a = 1.0-((cos((UV.x)*PI*2.0)+1.0)/2.0);
//COLOR.a -= ((cos(UV.y*PI*2.0)+1.0)/2.0);
}
//void light() {
// // Called for every pixel for every light affecting the CanvasItem.
// // Uncomment to replace the default light processing function with this one.
//}
-1
View File
@@ -1 +0,0 @@
uid://byan4wmg2pjl6
-1
View File
@@ -1 +0,0 @@
uid://cs12qambyvou8
-1
View File
@@ -1 +0,0 @@
uid://bxc2fqwlm5ea5
-59
View File
@@ -1,59 +0,0 @@
extends LineEdit
@onready var search_results: SearchResults = $"../SearchResults"
var values:Dictionary = {}
var ErrorMargin:float = 0.9
var updatetime:float = 0.5
var currentTime:float
var TextChanged:bool
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
currentTime -= delta
if TextChanged:
if currentTime < 0:
updateResults()
func updateResults():
release_focus()
TextChanged = false
search_results.clear()
values.clear()
currentTime = updatetime
var _i:int = 0
var _s:int = 0
for song:String in owner.textSongs:
var margin:float
var fragments:Array
#print(int((text.length() / 2.0) + 0.5))
for num in range(int((text.length() / 2.0) + 0.5)):
if text.to_lower().substr(int(num*2),2):
fragments.append(text.to_lower().substr(int(num*2),2))
elif text.to_lower().substr(int(num*2),1):
fragments.append(text.to_lower().substr(int(num*2),1))
var amountOfFrags:int
for fragment:String in fragments:
if song.to_lower().containsn(fragment):
amountOfFrags +=1
margin = float(amountOfFrags) / fragments.size()
if margin > ErrorMargin:
search_results.add_item(song)
values[_i] = _s
_i += 1
_s += 1
func _on_search_results_index_pressed(index: int) -> void:
print("index " + str(index))
owner.SetSong(values[index])
func _on_text_submitted(new_text: String) -> void:
TextChanged = true
if !search_results.visible:
search_results.show()
-1
View File
@@ -1 +0,0 @@
uid://cchutywgopaq4
-42
View File
@@ -1,42 +0,0 @@
extends Control
var SongName:String
var CurrentlyPlaying:bool
var songidx:int
@onready var songname: Button = $HBoxContainer/Songname
@onready var dropdown: Button = $HBoxContainer/Dropdown
@onready var popup_menu: PopupMenu = $PopupMenu
@export var soung_source: Node
signal PlayPressed
signal DeletePressed
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
songname.text = SongName
popup_menu.index_pressed.connect(popupPressed)
func popupPressed(idx:int):
match idx:
0:
DeletePressed.emit(songidx)
1:
var songdir = MainScene.instance.CurrentDir + "/" + MainScene.instance.textSongs[songidx]
var source:String = soung_source.TryGetSongUrl(songdir)
print("Source: "+source)
if source:
OS.shell_open(source)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
dropdown.visible = songname.is_hovered() or dropdown.is_hovered()
func _on_songname_pressed() -> void:
PlayPressed.emit(songidx)
func _on_dropdown_pressed() -> void:
popup_menu.show()
popup_menu.position = get_global_mouse_position()
-1
View File
@@ -1 +0,0 @@
uid://c3aaxhp0oim08
-48
View File
@@ -1,48 +0,0 @@
class_name SearchResults
extends Control
signal index_pressed
signal song_deleted
const SEARCH_ITEM = preload("res://Scenes/search_item.tscn")
@onready var item_container: VBoxContainer = $Control/ItemContainer
var SongsAmount:int
@onready var parent:MainScene = owner
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func add_item(text:String):
var child = SEARCH_ITEM.instantiate()
child.SongName = text.replace(".mp3", "")
child.songidx = parent.textSongs.find(text)
SongsAmount+=1
child.PlayPressed.connect(songSelected)
child.DeletePressed.connect(deletePressed)
item_container.add_child(child)
func clear():
SongsAmount = 0
for child in item_container.get_children():
child.queue_free()
func songSelected(idx:int):
index_pressed.emit(idx)
func _input(event):
if (event is InputEventMouseButton) and event.pressed:
var evLocal = make_input_local(event)
if !Rect2(Vector2(0,0),Vector2(size.x,size.y)).has_point(evLocal.position):
hide()
func deletePressed(idx:int):
song_deleted.emit(idx)

Some files were not shown because too many files have changed in this diff Show More