Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Make use of new notification system.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed May 24, 2022
1 parent dc5a82d commit dde5027
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ReModCE/Components/MediaControlComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
using System.Text;
using System.Threading;
using System.Windows.Forms;
using ReMod.Core.Notification;
using ReMod.Core.UI.QuickMenu;
using ReMod.Core.Unity;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
Expand Down Expand Up @@ -172,7 +174,8 @@ public override void OnUpdate()
}
if (SongPreviewEnabled)
{
VRCUiManagerEx.Instance.QueueHudMessage($"Now Playing on Spotify:\n{song}", Color.green);
NotificationSystem.EnqueueNotification("ReModCE", $"<color=#{Color.green.ToHex()}>Now Playing on Spotify:\n{song}</color>", icon: ResourceManager.GetSprite("remodce.remod"));
// VRCUiManagerEx.Instance.QueueHudMessage($"Now Playing on Spotify:\n{song}", Color.green);
}
}
_currentSong = isPlayingSong ? song : string.Empty;
Expand Down

0 comments on commit dde5027

Please sign in to comment.