static void AddTextNotification(TextNotificationPool pool, string prefix, string text, Color?prefixColor = null, Color?textColor = null) { if (IsPoolEnabled(pool)) { Game.OrderManager.AddTextNotification(new TextNotification(pool, prefix, text, prefixColor, textColor)); } }
public TextNotification(TextNotificationPool pool, string prefix, string text, Color prefixColor, Color textColor) { Pool = pool; Prefix = prefix; Text = text; PrefixColor = prefixColor; TextColor = textColor; }
public TextNotification(TextNotificationPool pool, string prefix, string text, Color?prefixColor, Color?textColor) { Pool = pool; Prefix = prefix; Text = text; PrefixColor = prefixColor; TextColor = textColor; Time = DateTime.Now; }
static bool IsPoolEnabled(TextNotificationPool pool) { var filters = Game.Settings.Game.TextNotificationPoolFilters; return(pool == TextNotificationPool.Chat || pool == TextNotificationPool.System || pool == TextNotificationPool.Mission || (pool == TextNotificationPool.Feedback && filters.HasFlag(TextNotificationPoolFilters.Feedback))); }