"bug" fixes
This commit is contained in:
@@ -850,7 +850,7 @@ offset_left = -64.0
|
|||||||
offset_top = -23.0
|
offset_top = -23.0
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
text = "v1.5.0"
|
text = "v1.5.0.2"
|
||||||
horizontal_alignment = 2
|
horizontal_alignment = 2
|
||||||
|
|
||||||
[node name="SettingsButton" type="Button" parent="."]
|
[node name="SettingsButton" type="Button" parent="."]
|
||||||
|
|||||||
@@ -181,20 +181,11 @@ func _ready() -> void:
|
|||||||
child.focus_mode = child is LineEdit
|
child.focus_mode = child is LineEdit
|
||||||
|
|
||||||
func setUpDiscord():
|
func setUpDiscord():
|
||||||
DiscordRPC.app_id = 13
|
|
||||||
print("stibidiii ",DiscordRPC.get_current_user())
|
|
||||||
if DiscordUsername == "vrenthusiest" or DiscordRPC.get_current_user().get("username") == "vrenthusiest":
|
|
||||||
DiscordRPC.app_id = 1302002529378369568
|
|
||||||
else:
|
|
||||||
DiscordRPC.app_id = 1276916292170809426
|
DiscordRPC.app_id = 1276916292170809426
|
||||||
DiscordRPC.refresh()
|
DiscordRPC.refresh()
|
||||||
print("stiff chicks ",DiscordRPC.get_current_user())
|
print("stiff chicks ",DiscordRPC.get_current_user())
|
||||||
DiscordUsername = DiscordRPC.get_current_user().get("username")
|
DiscordUsername = DiscordRPC.get_current_user().get("username")
|
||||||
DiscordRPC.refresh()
|
DiscordRPC.refresh()
|
||||||
if DiscordRPC.app_id == 1302002529378369568:
|
|
||||||
DiscordRPC.large_image = "changed"
|
|
||||||
DiscordRPC.start_timestamp = Time.get_unix_time_from_system()
|
|
||||||
else:
|
|
||||||
DiscordRPC.large_image = "logo"
|
DiscordRPC.large_image = "logo"
|
||||||
# this is boolean if everything worked
|
# this is boolean if everything worked
|
||||||
print("Discord working: " + str(DiscordRPC.get_is_discord_working()))
|
print("Discord working: " + str(DiscordRPC.get_is_discord_working()))
|
||||||
@@ -256,7 +247,6 @@ func SongDragStopped(Changed:bool):
|
|||||||
pausePlay()
|
pausePlay()
|
||||||
|
|
||||||
UpdateProgressSlider = true
|
UpdateProgressSlider = true
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
DiscordRPC.start_timestamp = int(Time.get_unix_time_from_system() - (current_progress.value * CurrentSongLenth / current_progress.max_value))
|
DiscordRPC.start_timestamp = int(Time.get_unix_time_from_system() - (current_progress.value * CurrentSongLenth / current_progress.max_value))
|
||||||
DiscordRPC.refresh()
|
DiscordRPC.refresh()
|
||||||
|
|
||||||
@@ -332,13 +322,12 @@ func PlaySongs():
|
|||||||
Paused = true
|
Paused = true
|
||||||
music_player.stream_paused = true
|
music_player.stream_paused = true
|
||||||
play_list.icon = PLAY
|
play_list.icon = PLAY
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
DiscordRPC.state = "Paused"
|
DiscordRPC.state = "Paused"
|
||||||
print(DiscordRPC.get_current_user())
|
print(DiscordRPC.get_current_user())
|
||||||
else:
|
else:
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
DiscordRPC.start_timestamp = int(Time.get_unix_time_from_system() - (current_progress.value * CurrentSongLenth / current_progress.max_value))
|
DiscordRPC.start_timestamp = int(Time.get_unix_time_from_system() - (current_progress.value * CurrentSongLenth / current_progress.max_value))
|
||||||
print(DiscordRPC.get_current_user())
|
print(DiscordRPC.get_current_user())
|
||||||
|
|
||||||
DiscordRPC.state = "Listening To Music"
|
DiscordRPC.state = "Listening To Music"
|
||||||
Paused = false
|
Paused = false
|
||||||
music_player.stream_paused = false
|
music_player.stream_paused = false
|
||||||
@@ -366,7 +355,6 @@ func PlaySongs():
|
|||||||
if !CurrentDir.ends_with(CurrentPlaylist):
|
if !CurrentDir.ends_with(CurrentPlaylist):
|
||||||
GetSongs(PlaylistsLocation[CurrentPlaylist])
|
GetSongs(PlaylistsLocation[CurrentPlaylist])
|
||||||
var CurrentSongDir:String = PlaylistsLocation[CurrentPlaylist] + "/" + textSongs[index]
|
var CurrentSongDir:String = PlaylistsLocation[CurrentPlaylist] + "/" + textSongs[index]
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
DiscordRPC.details = textSongs[index].replace(".mp3","")
|
DiscordRPC.details = textSongs[index].replace(".mp3","")
|
||||||
print(CurrentSongDir)
|
print(CurrentSongDir)
|
||||||
var sonnname:String = textSongs[index]
|
var sonnname:String = textSongs[index]
|
||||||
@@ -488,10 +476,8 @@ func _process(_delta: float) -> void:
|
|||||||
if music_player.playing:
|
if music_player.playing:
|
||||||
TimeSpentListening += _delta
|
TimeSpentListening += _delta
|
||||||
CurrentPausedIndicatorShaderIntensity = lerp(CurrentPausedIndicatorShaderIntensity,0.0,0.1)
|
CurrentPausedIndicatorShaderIntensity = lerp(CurrentPausedIndicatorShaderIntensity,0.0,0.1)
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
DiscordRPC.state = "Listening To Music"
|
DiscordRPC.state = "Listening To Music"
|
||||||
else:
|
else:
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
DiscordRPC.start_timestamp = int(0)
|
DiscordRPC.start_timestamp = int(0)
|
||||||
DiscordRPC.state = "Paused"
|
DiscordRPC.state = "Paused"
|
||||||
if DiscordRPC.get_is_discord_working():
|
if DiscordRPC.get_is_discord_working():
|
||||||
@@ -535,7 +521,6 @@ func _process(_delta: float) -> void:
|
|||||||
|
|
||||||
|
|
||||||
func UpdateSplashes():
|
func UpdateSplashes():
|
||||||
if DiscordRPC.app_id != 1302002529378369568:
|
|
||||||
if DiscordRPC.get_is_discord_working():
|
if DiscordRPC.get_is_discord_working():
|
||||||
SplashStrings = ["Total listening time: %s!" % str(str(int(TimeSpentListening/60)/60 )
|
SplashStrings = ["Total listening time: %s!" % str(str(int(TimeSpentListening/60)/60 )
|
||||||
+ "h : " + str((int(TimeSpentListening) / 60) % 60) + "m : " +
|
+ "h : " + str((int(TimeSpentListening) / 60) % 60) + "m : " +
|
||||||
|
|||||||
Reference in New Issue
Block a user