Simplaudio.
This commit is contained in:
+185
@@ -0,0 +1,185 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user