adjusted playing now window + adjustments to the save system
This commit is contained in:
@@ -76,7 +76,7 @@ var currentSongName:String
|
||||
var currentArtistName:String
|
||||
var currentAlbumName:String
|
||||
|
||||
var LoadingSaveFailed:bool
|
||||
var LoadingSaveFailed:bool = true
|
||||
@onready var loading_failed_screen: Control = $LoadingFailedScreen
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
@@ -645,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
|
||||
@@ -672,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)
|
||||
|
||||
@@ -17,5 +17,5 @@ func SongChanged():
|
||||
print("SongChanged: ", ParentScene.currentSongName)
|
||||
desctibtor.text = 'Now Playing: "' + ParentScene.currentSongName + '"'
|
||||
if ParentScene.currentArtistName:
|
||||
desctibtor.text += " from " + ParentScene.currentArtistName
|
||||
desctibtor.text += " uploaded by " + ParentScene.currentArtistName
|
||||
#ParentWindow.size = size * 2
|
||||
|
||||
@@ -9,13 +9,3 @@ script = ExtResource("1_f0rac")
|
||||
|
||||
[node name="Desctibtor" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="Desctibtor"]
|
||||
z_index = -2
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.187176, 0.187176, 0.187176, 0.101961)
|
||||
|
||||
Reference in New Issue
Block a user