BlackFeeder.Entry.ShowNotification C# (CSharp) Method

ShowNotification() public static method

public static ShowNotification ( string message, Color color, int duration = -1, bool dispose = true ) : LeagueSharp.Common.Notification
message string
color Color
duration int
dispose bool
return LeagueSharp.Common.Notification
        public static Notification ShowNotification(string message, Color color, int duration = -1, bool dispose = true)
        {
            var notif = new Notification(message).SetTextColor(color);
            Notifications.AddNotification(notif);
            if (dispose)
            {
                Utility.DelayAction.Add(duration, () => notif.Dispose());
            }
            return notif;
        }