コード例 #1
0
 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());
     }
 }
コード例 #2
0
ファイル: Spotify.cs プロジェクト: anonik9900/SpotifyRage
 /// <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());
     }
 }