internal static void ShowMessageMassive(string s, int time = 5000, NotificationType type = NotificationType.Info) { if (s == null) { return; } Logger.Log($@"Notification: {s}"); if (GameBase.Tournament) { return; } GameBase.Scheduler.Add(delegate { if (massiveMessage != null && massiveMessage.Visible) { ClearMessageMassive(); } massiveMessage = new NotificationMassive(s, time, type); if (GameBase.spriteManagerOverlayHighest != null) { GameBase.spriteManagerOverlayHighest.Add(massiveMessage.SpriteCollection); } }, true); }
internal static void ClearMessageMassive() { GameBase.Scheduler.Add(delegate { if (massiveMessage == null) { return; } massiveMessage.Clear(); massiveMessage = null; }); }