Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a5d6f90e6 | |||
| b4fb35ceeb | |||
| cbdb3a4e52 | |||
| 0c21592f91 | |||
| dde309291e | |||
| 4a83c33452 |
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=73 format=3 uid="uid://b2sygl55s6fng"]
|
||||
[gd_scene load_steps=80 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"]
|
||||
@@ -37,6 +37,9 @@
|
||||
[ext_resource type="Script" path="res://CustomButtonColor.gd" id="32_pwgec"]
|
||||
[ext_resource type="Script" path="res://loading_failed_screen.gd" id="37_mkkhu"]
|
||||
[ext_resource type="AudioStream" uid="uid://n8g3v41u2u48" path="res://Error.wav" id="38_nkjlp"]
|
||||
[ext_resource type="Script" path="res://birthday_container.gd" id="38_pitc3"]
|
||||
[ext_resource type="AudioStream" uid="uid://bwfw3l3iyv67o" path="res://roblox win sound effect.mp3" id="39_3er0p"]
|
||||
[ext_resource type="PackedScene" uid="uid://n7cnapaftfse" path="res://playing_now_window.tscn" id="40_ismud"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kvkfy"]
|
||||
shader = ExtResource("8_xtnau")
|
||||
@@ -187,6 +190,33 @@ shadow_size = 4
|
||||
shadow_color = Color(0.290196, 0.290196, 0.290196, 0.270588)
|
||||
shadow_offset = Vector2(2, 3)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_wqjqk"]
|
||||
_data = [Vector2(0, 0), 0.0, 16.8231, 0, 0, Vector2(0.119342, 1), 0.0, 0.0, 0, 0, Vector2(0.991769, 1), 8.04663e-07, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_wg7pm"]
|
||||
curve = SubResource("Curve_wqjqk")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cr82i"]
|
||||
particle_flag_disable_z = true
|
||||
angle_min = -406.2
|
||||
angle_max = 219.7
|
||||
direction = Vector3(0, -1, 0)
|
||||
initial_velocity_min = 357.05
|
||||
initial_velocity_max = 586.59
|
||||
gravity = Vector3(0, 392, 0)
|
||||
scale_min = 10.0
|
||||
scale_max = 22.95
|
||||
scale_curve = SubResource("CurveTexture_wg7pm")
|
||||
hue_variation_min = -0.77
|
||||
hue_variation_max = 0.22
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_f1d3e"]
|
||||
font_size = 80
|
||||
shadow_size = 2
|
||||
shadow_color = Color(0, 0, 0, 0.556863)
|
||||
shadow_offset = Vector2(6.55, 6.735)
|
||||
|
||||
[node name="Node2D" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -723,7 +753,7 @@ offset_right = -200.0
|
||||
offset_bottom = -95.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
text = "Please make a Playlist "
|
||||
text = "(no song)"
|
||||
label_settings = SubResource("LabelSettings_6prit")
|
||||
clip_text = true
|
||||
text_overrun_behavior = 2
|
||||
@@ -740,7 +770,6 @@ offset_right = -199.0
|
||||
offset_bottom = -68.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
text = "Artist name"
|
||||
label_settings = SubResource("LabelSettings_jg5vn")
|
||||
clip_text = true
|
||||
text_overrun_behavior = 2
|
||||
@@ -757,7 +786,6 @@ offset_right = -199.0
|
||||
offset_bottom = -53.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
text = "Album"
|
||||
label_settings = SubResource("LabelSettings_6um0v")
|
||||
clip_text = true
|
||||
text_overrun_behavior = 2
|
||||
@@ -882,7 +910,7 @@ offset_left = -64.0
|
||||
offset_top = -23.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "v1.5.2"
|
||||
text = "v1.5.4"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="."]
|
||||
@@ -973,6 +1001,8 @@ grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
script = ExtResource("30_byc5i")
|
||||
errorColor = Color(0.981984, 0, 0.065929, 1)
|
||||
IMPUpdateLinkColor = Color(0.51, 0.31008, 0.2652, 1)
|
||||
IMPUpdatePatchNotesColor = Color(0.35, 0.27125, 0.2555, 1)
|
||||
|
||||
[node name="HTTPRequest" type="HTTPRequest" parent="UpdateChecker"]
|
||||
timeout = 5.0
|
||||
@@ -992,8 +1022,8 @@ layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -68.0
|
||||
offset_right = 68.0
|
||||
offset_left = -136.0
|
||||
offset_right = 113.0
|
||||
offset_bottom = 23.0
|
||||
grow_horizontal = 2
|
||||
text = "Update Available!"
|
||||
@@ -1009,11 +1039,12 @@ anchor_right = 1.0
|
||||
anchor_bottom = 0.820755
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "PatchNotes"
|
||||
text = "PatchNotes
|
||||
(!IT) for importaint updates"
|
||||
context_menu_enabled = true
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="UpdateChecker/ColorRect/Patchnotes"]
|
||||
[node name="PatchnotesBG" type="ColorRect" parent="UpdateChecker/ColorRect/Patchnotes"]
|
||||
z_index = -1
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@@ -1036,7 +1067,7 @@ grow_vertical = 0
|
||||
text = "Update"
|
||||
flat = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="UpdateChecker/ColorRect/LinkButton"]
|
||||
[node name="LinkBTTNBG" type="ColorRect" parent="UpdateChecker/ColorRect/LinkButton"]
|
||||
z_index = -1
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@@ -1152,6 +1183,7 @@ initial_position = 2
|
||||
dialog_text = "Are you sure you want to delete"
|
||||
|
||||
[node name="LoadingFailedScreen" type="Control" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
@@ -1233,6 +1265,58 @@ cancel_button_text = "No"
|
||||
[node name="FailedAudioCue" type="AudioStreamPlayer" parent="LoadingFailedScreen"]
|
||||
stream = ExtResource("38_nkjlp")
|
||||
|
||||
[node name="BirthdayContainer" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
script = ExtResource("38_pitc3")
|
||||
|
||||
[node name="BirthdayParticles" type="GPUParticles2D" parent="BirthdayContainer"]
|
||||
emitting = false
|
||||
amount = 120
|
||||
process_material = SubResource("ParticleProcessMaterial_cr82i")
|
||||
lifetime = 5.0
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
visibility_rect = Rect2(-750, -750, 1500, 1000)
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="BirthdayContainer"]
|
||||
stream = ExtResource("39_3er0p")
|
||||
volume_db = -17.885
|
||||
|
||||
[node name="BirthdayHappy" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -62.5
|
||||
offset_top = -11.5
|
||||
offset_right = 62.5
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Happy Birthday!"
|
||||
label_settings = SubResource("LabelSettings_f1d3e")
|
||||
|
||||
[node name="PlayingNow" type="Window" parent="."]
|
||||
transparent_bg = true
|
||||
visible = false
|
||||
borderless = true
|
||||
transparent = true
|
||||
mouse_passthrough = true
|
||||
force_native = true
|
||||
|
||||
[node name="PlayingNowWindow" parent="PlayingNow" node_paths=PackedStringArray("ParentScene") instance=ExtResource("40_ismud")]
|
||||
ParentScene = NodePath("../..")
|
||||
|
||||
[connection signal="toggled" from="SelectPlaylist" to="SelectPlaylist" method="_on_toggled"]
|
||||
[connection signal="pressed" from="PlaylistPanelHolder/PlaylistsPanel/PlaylistsContainer/VBoxContainer/HBoxContainer/CreatePlaylist" to="PlaylistPanelHolder/PlaylistsPanel" method="_on_create_playlist_pressed"]
|
||||
[connection signal="toggled" from="PlaylistPanelHolder/PlaylistsPanel/PlaylistsContainer/VBoxContainer/HBoxContainer/PlayAll" to="PlaylistPanelHolder/PlaylistsPanel" method="_on_play_all_toggled"]
|
||||
|
||||
+26
-1
@@ -41,7 +41,6 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scroll_vertical = 100
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
|
||||
custom_minimum_size = Vector2(576, 493)
|
||||
@@ -507,6 +506,31 @@ autowrap_mode = 2
|
||||
custom_minimum_size = Vector2(0, 16.07)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MISC" type="Label" parent="ScrollContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(400, 26.975)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 3
|
||||
text = "MISC"
|
||||
label_settings = SubResource("LabelSettings_2bhor")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="NowPlayingWindowButton" type="CheckBox" parent="ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
focus_mode = 0
|
||||
text = "Now playing window"
|
||||
|
||||
[node name="NowPlayingInfo" type="Label" parent="ScrollContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(229.895, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "This setting enables a dedicated window for displaying the currently playing song. this can be useful when streaming "
|
||||
label_settings = SubResource("LabelSettings_p55k3")
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="Credits" type="VBoxContainer" parent="ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
@@ -588,6 +612,7 @@ flat = true
|
||||
[connection signal="drag_ended" from="ScrollContainer/VBoxContainer/CompressionContainer/ThresholdSettings/ThresholdSlider" to="." method="_on_threshold_slider_drag_ended"]
|
||||
[connection signal="drag_ended" from="ScrollContainer/VBoxContainer/CompressionContainer/RatioSettings/RatioSlider" to="." method="_on_ratio_slider_drag_ended"]
|
||||
[connection signal="drag_ended" from="ScrollContainer/VBoxContainer/CompressionContainer/GainSettings/GainSlider" to="." method="_on_gain_slider_drag_ended"]
|
||||
[connection signal="toggled" from="ScrollContainer/VBoxContainer/NowPlayingWindowButton" to="." method="_on_now_playing_window_button_toggled"]
|
||||
[connection signal="pressed" from="ScrollContainer/VBoxContainer/Reset" to="." method="_on_reset_pressed"]
|
||||
[connection signal="pressed" from="ScrollContainer/VBoxContainer/Reset" to="ScrollContainer/VBoxContainer/EQSettings" method="_on_reset_pressed"]
|
||||
[connection signal="pressed" from="Exit" to="." method="_on_exit_pressed"]
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
extends Control
|
||||
|
||||
@onready var birthday_particles: GPUParticles2D = $BirthdayParticles
|
||||
@onready var audio_stream_player: AudioStreamPlayer = $AudioStreamPlayer
|
||||
@onready var birthday_happy: Label = $"../BirthdayHappy"
|
||||
|
||||
var awaitingJumpscare:bool
|
||||
var IsFocused:bool
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
birthday_happy.hide()
|
||||
print("user: ",DiscordRPC.get_current_user().get("username"))
|
||||
var bday:bool
|
||||
if owner.DiscordUsername == "woostudiosjohn":
|
||||
if Time.get_datetime_dict_from_system().day == 5:
|
||||
if Time.get_datetime_dict_from_system().month == 11:
|
||||
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:
|
||||
birthday_happy.modulate.a -= delta/5
|
||||
@@ -14,6 +14,7 @@ func Show():
|
||||
|
||||
func Confiremed():
|
||||
owner.LoadingSaveFailed = false
|
||||
hide()
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
@@ -31,6 +31,7 @@ extends Control
|
||||
@onready var search_results: SearchResults = $SearchResults
|
||||
@onready var delete_confirm: ConfirmationDialog = $deleteConfirm
|
||||
@onready var search_bar: LineEdit = $SearchBar
|
||||
@onready var playing_now: Window = $PlayingNow
|
||||
|
||||
var DiscordUsername:String
|
||||
|
||||
@@ -62,6 +63,7 @@ var PlaylistsLocation:Dictionary
|
||||
var BackroundSetup:bool
|
||||
var CurrentPlaylist:String
|
||||
var PlayAllLists:bool
|
||||
var UsingPlayingNow:bool
|
||||
|
||||
@export var LoopPressed:Texture2D
|
||||
@export var LoopNotPressed:Texture2D
|
||||
@@ -69,11 +71,17 @@ var PlayAllLists:bool
|
||||
signal ContinueDelete
|
||||
var deleteSong:bool
|
||||
|
||||
var LoadingSaveFailed:bool
|
||||
signal SongChanged
|
||||
var currentSongName:String
|
||||
var currentArtistName:String
|
||||
var currentAlbumName:String
|
||||
|
||||
var LoadingSaveFailed:bool = true
|
||||
@onready var loading_failed_screen: Control = $LoadingFailedScreen
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
playing_now.visible = false
|
||||
get_tree().root.min_size = Vector2(850,492)
|
||||
current_progress.drag_ended.connect(SongDragStopped)
|
||||
current_progress.drag_started.connect(SongDragStarted)
|
||||
@@ -156,6 +164,8 @@ func _ready() -> void:
|
||||
PlayAllLists = data["PlayAllLists"]
|
||||
if PlayAllLists:
|
||||
play_all.button_pressed = true
|
||||
if data.has("UsingPlayingNow"):
|
||||
UsingPlayingNow = data["UsingPlayingNow"]
|
||||
else:
|
||||
if data != null:
|
||||
print(data["Volume"])
|
||||
@@ -312,9 +322,9 @@ func SetVolume(Volume:float):
|
||||
|
||||
var volume = (-50 + (Volume/2))
|
||||
if Volume >= 2:
|
||||
AudioServer.set_bus_volume_db(0,volume)
|
||||
AudioServer.set_bus_volume_db(1,volume)
|
||||
else:
|
||||
AudioServer.set_bus_volume_db(0,-1000)
|
||||
AudioServer.set_bus_volume_db(1,-1000)
|
||||
volume_slider.value = Volume
|
||||
|
||||
func SelectPlaylistDir():
|
||||
@@ -350,7 +360,7 @@ func PlaySongs():
|
||||
if LoopingSong:
|
||||
music_player.play()
|
||||
elif textSongs.size() != 0:
|
||||
var index
|
||||
var index:int
|
||||
if OpenedSong.is_empty():
|
||||
if PlayAllLists:
|
||||
if CurrentIDX >= (textSongs.size()):
|
||||
@@ -369,6 +379,7 @@ func PlaySongs():
|
||||
GetSongs(PlaylistsLocation[CurrentPlaylist])
|
||||
var CurrentSongDir:String = PlaylistsLocation[CurrentPlaylist] + "/" + textSongs[index]
|
||||
DiscordRPC.details = textSongs[index].replace(".mp3","")
|
||||
currentSongName = textSongs[index].replace(".mp3","")
|
||||
print(CurrentSongDir)
|
||||
var sonnname:String = textSongs[index]
|
||||
sonnname = sonnname.replace(".mp3", "")
|
||||
@@ -385,11 +396,13 @@ func PlaySongs():
|
||||
if MusicMetadataAutoload.get_mp3_metadata(song).title != "":
|
||||
song_name.text = MusicMetadataAutoload.get_mp3_metadata(song).title
|
||||
if MusicMetadataAutoload.get_mp3_metadata(song).artist != "":
|
||||
artist_name.text = MusicMetadataAutoload.get_mp3_metadata(song).artist
|
||||
else: artist_name.text = ""
|
||||
currentArtistName = MusicMetadataAutoload.get_mp3_metadata(song).artist
|
||||
else: currentArtistName = ""
|
||||
artist_name.text = currentArtistName
|
||||
if MusicMetadataAutoload.get_mp3_metadata(song).album != "":
|
||||
album_name.text = MusicMetadataAutoload.get_mp3_metadata(song).album
|
||||
else: album_name.text = ""
|
||||
currentAlbumName = MusicMetadataAutoload.get_mp3_metadata(song).album
|
||||
else: currentAlbumName = ""
|
||||
album_name.text = currentAlbumName
|
||||
if song != null:
|
||||
CurrentSongLenth = song.get_length()
|
||||
music_player.stream = song
|
||||
@@ -397,6 +410,7 @@ func PlaySongs():
|
||||
if !LoadingSaveFailed:
|
||||
SaveEverything()
|
||||
print("set stream")
|
||||
SongChanged.emit()
|
||||
|
||||
|
||||
func GetSongs(dir:String):
|
||||
@@ -465,6 +479,7 @@ func PlaylistSelected(Playlist:String,PlaylistLocation:String):
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
playing_now.visible = UsingPlayingNow
|
||||
currentSaveTime -= _delta
|
||||
if !BackroundSetup:
|
||||
if CurrentCustomBackroundImageDirectory != null and CurrentCustomBackroundImageDirectory != "":
|
||||
@@ -583,7 +598,8 @@ func SaveEverything():
|
||||
"CompressionGain" : settings_menu_child.gain_slider.value,
|
||||
"CurrentCustomBackroundImageDirectory" : CurrentCustomBackroundImageDirectory,
|
||||
"PlayAllLists" : PlayAllLists,
|
||||
"DiscordUsername" : DiscordRPC.get_current_user().get("username")
|
||||
"DiscordUsername" : DiscordRPC.get_current_user().get("username"),
|
||||
"UsingPlayingNow" : UsingPlayingNow
|
||||
}
|
||||
print("saving")
|
||||
saveUserdata(Data)
|
||||
@@ -629,6 +645,7 @@ func loadUserdata() -> Dictionary:
|
||||
content = json.parse_string(Marshalls.base64_to_utf8(file.get_as_text()))
|
||||
file.close()
|
||||
if content != null:
|
||||
LoadingSaveFailed = false
|
||||
return content
|
||||
else:
|
||||
LoadingSaveFailed = true
|
||||
@@ -656,13 +673,13 @@ func loadPlaylists():
|
||||
if file.get_as_text() != "" and file2.get_as_text() != "":
|
||||
var PlaylistsLocationTemp
|
||||
var PlaylistsTemp
|
||||
LoadingSaveFailed
|
||||
PlaylistsLocationTemp = json.parse_string(file.get_as_text())
|
||||
PlaylistsTemp = json.parse_string(file2.get_as_text())
|
||||
if (PlaylistsTemp == null) or (PlaylistsLocationTemp == null):
|
||||
printerr("Loading playlists failed")
|
||||
LoadingSaveFailed = true
|
||||
else:
|
||||
LoadingSaveFailed = false
|
||||
Playlists = PlaylistsTemp
|
||||
PlaylistsLocation = PlaylistsLocationTemp
|
||||
print(PlaylistsLocation)
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
extends Control
|
||||
|
||||
@export var ParentScene:MainScene
|
||||
@onready var desctibtor: Label = $Desctibtor
|
||||
@onready var ParentWindow:Window = $".."
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
ParentScene.SongChanged.connect(SongChanged)
|
||||
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
ParentWindow.size = size
|
||||
|
||||
func SongChanged():
|
||||
print("SongChanged: ", ParentScene.currentSongName)
|
||||
desctibtor.text = 'Now Playing: "' + ParentScene.currentSongName + '"'
|
||||
if ParentScene.currentArtistName:
|
||||
desctibtor.text += " uploaded by " + ParentScene.currentArtistName
|
||||
#ParentWindow.size = size * 2
|
||||
@@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://n7cnapaftfse"]
|
||||
|
||||
[ext_resource type="Script" path="res://playing_now_window.gd" id="1_f0rac"]
|
||||
|
||||
[node name="PlayingNowWindow" type="AspectRatioContainer"]
|
||||
offset_right = 160.0
|
||||
offset_bottom = 23.0
|
||||
script = ExtResource("1_f0rac")
|
||||
|
||||
[node name="Desctibtor" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
@@ -32,6 +32,7 @@ window/size/initial_position_type=3
|
||||
window/size/extend_to_title=true
|
||||
window/energy_saving/keep_screen_on=false
|
||||
window/stretch/aspect="expand"
|
||||
window/per_pixel_transparency/allowed=true
|
||||
|
||||
[dotnet]
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://bwfw3l3iyv67o"
|
||||
path="res://.godot/imported/roblox win sound effect.mp3-39d0ba8b033f858214671048098e2f18.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://roblox win sound effect.mp3"
|
||||
dest_files=["res://.godot/imported/roblox win sound effect.mp3-39d0ba8b033f858214671048098e2f18.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
+12
-1
@@ -2,6 +2,8 @@ class_name Settings
|
||||
extends Control
|
||||
@onready var exit: Button = $Exit
|
||||
|
||||
# do NOT think i dont hate this codebase, it sucks man 😭
|
||||
|
||||
@onready var discord_rich_presence_button: CheckBox = $ScrollContainer/VBoxContainer/DiscordRichPresenceButton
|
||||
|
||||
@onready var pitch_slider: HSlider = $ScrollContainer/VBoxContainer/PitchAdjustSettings/PitchSlider
|
||||
@@ -40,11 +42,14 @@ extends Control
|
||||
@onready var select_bg: Button = $ScrollContainer/VBoxContainer/VBoxContainer/HBoxContainer/SelectBG
|
||||
@onready var reset_bg: Button = $ScrollContainer/VBoxContainer/VBoxContainer/HBoxContainer/ResetBG
|
||||
|
||||
@onready var now_playing_window_button: CheckBox = $ScrollContainer/VBoxContainer/NowPlayingWindowButton
|
||||
|
||||
|
||||
var CurrentBGImagePath:String
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass
|
||||
now_playing_window_button.button_pressed = Parent.UsingPlayingNow
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
@@ -181,3 +186,9 @@ func _on_reset_bg_pressed() -> void:
|
||||
Parent.user_bg.texture = null
|
||||
Parent.CurrentCustomBackroundImageDirectory = ""
|
||||
Parent.SaveEverything()
|
||||
|
||||
|
||||
func _on_now_playing_window_button_toggled(toggled_on: bool) -> void:
|
||||
Parent.UsingPlayingNow = toggled_on
|
||||
Parent.SaveEverything()
|
||||
|
||||
|
||||
@@ -11,8 +11,12 @@ extends Control
|
||||
@onready var updating_bg: ColorRect = $"../UpdatingBG"
|
||||
@onready var paused_indicator: TextureRect = $"../PausedIndicator"
|
||||
@onready var patchnotes: RichTextLabel = $ColorRect/Patchnotes
|
||||
@onready var link_bttnbg: ColorRect = $ColorRect/LinkButton/LinkBTTNBG
|
||||
@onready var patchnotes_bg: ColorRect = $ColorRect/Patchnotes/PatchnotesBG
|
||||
|
||||
@export var errorColor:Color
|
||||
@export var IMPUpdateLinkColor:Color
|
||||
@export var IMPUpdatePatchNotesColor:Color
|
||||
|
||||
var CheckForUpdates:bool = true
|
||||
|
||||
@@ -54,6 +58,13 @@ func _on_http_request_completed(result: int, _response_code: int, _headers: Pack
|
||||
updateLink = result2["html_url"]
|
||||
if result2.has("body"):
|
||||
patchnotes.text = str(result2["body"])
|
||||
if patchnotes.text.contains("(!IT)"):
|
||||
patchnotes.text = patchnotes.text.erase(patchnotes.text.find("(!IT)"),7)
|
||||
print("importaint update detected")
|
||||
update_available_text.text = "(Important) " + result2["tag_name"] + " Is Out!"
|
||||
patchnotes_bg.color = IMPUpdatePatchNotesColor
|
||||
link_bttnbg.color = IMPUpdateLinkColor
|
||||
link_bttnbg.StandardColor = IMPUpdateLinkColor
|
||||
|
||||
func _on_close_buen_pressed() -> void:
|
||||
hide()
|
||||
|
||||
+23
-24
@@ -11,27 +11,26 @@ func _ready() -> void:
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if true != true:
|
||||
var timeInHours = Time.get_datetime_dict_from_system()["hour"]
|
||||
if timeInHours < 6:
|
||||
currentBG = 3
|
||||
elif timeInHours >= 6 and timeInHours <= 9:
|
||||
currentBG = 2
|
||||
elif timeInHours >= 9 and timeInHours <= 17:
|
||||
currentBG = 1
|
||||
elif timeInHours >= 17 and timeInHours <= 21:
|
||||
currentBG = 2
|
||||
elif timeInHours > 21:
|
||||
currentBG = 3
|
||||
if currentBG == 1:
|
||||
Daytime.show()
|
||||
Nighttime.hide()
|
||||
Evening.hide()
|
||||
elif currentBG == 2:
|
||||
Daytime.hide()
|
||||
Nighttime.hide()
|
||||
Evening.show()
|
||||
elif currentBG == 3:
|
||||
Daytime.hide()
|
||||
Nighttime.show()
|
||||
Evening.hide()
|
||||
var timeInHours = Time.get_datetime_dict_from_system()["hour"]
|
||||
if timeInHours < 6:
|
||||
currentBG = 3
|
||||
elif timeInHours >= 6 and timeInHours <= 9:
|
||||
currentBG = 2
|
||||
elif timeInHours >= 9 and timeInHours <= 17:
|
||||
currentBG = 1
|
||||
elif timeInHours >= 17 and timeInHours <= 21:
|
||||
currentBG = 2
|
||||
elif timeInHours > 21:
|
||||
currentBG = 3
|
||||
if currentBG == 1:
|
||||
Daytime.show()
|
||||
Nighttime.hide()
|
||||
Evening.hide()
|
||||
elif currentBG == 2:
|
||||
Daytime.hide()
|
||||
Nighttime.hide()
|
||||
Evening.show()
|
||||
elif currentBG == 3:
|
||||
Daytime.hide()
|
||||
Nighttime.show()
|
||||
Evening.hide()
|
||||
|
||||
Reference in New Issue
Block a user