private static void PushSpotifyInfo(string artist, string track, bool playing) { try { DashboardScaleform.CallFunction("SET_RADIO", "", playing ? "Spotify" : "Spotify - Paused", artist, track); } catch (Exception exception) { Game.Console.Print("Spotify f****d up, " + exception.ToString()); } }
/// <summary> /// Pushes the given info over to the Dashboard scaleform for use ingame. /// </summary> /// <param name="artist">The artist of the song.</param> /// <param name="track">The song name itself.</param> /// <param name="playing">Whether the song is playing or not.</param> private void PushSpotifyInfo(string artist, string track, bool playing) { try { // Call function. DashboardScaleform.CallFunction("SET_RADIO", "", playing ? "Spotify" : "Spotify - Paused", artist, track); } catch (Exception exception) { UI.Notify(exception.ToString()); } }