Add transient notifications pool

This commit is contained in:
Ivaylo Draganov
2022-04-29 15:01:33 +03:00
committed by Paul Chote
parent e22b6de4e8
commit a1e6ac85dc
5 changed files with 17 additions and 5 deletions

View File

@@ -26,6 +26,14 @@ namespace OpenRA
SystemMessageLabel = "Battlefield Control";
}
public static void AddTransientLine(string text)
{
if (string.IsNullOrEmpty(text))
return;
AddTextNotification(TextNotificationPool.Transients, SystemMessageLabel, text);
}
public static void AddFeedbackLine(string text)
{
AddTextNotification(TextNotificationPool.Feedback, SystemMessageLabel, text);
@@ -69,6 +77,7 @@ namespace OpenRA
return pool == TextNotificationPool.Chat ||
pool == TextNotificationPool.System ||
pool == TextNotificationPool.Mission ||
(pool == TextNotificationPool.Transients && filters.HasFlag(TextNotificationPoolFilters.Transients)) ||
(pool == TextNotificationPool.Feedback && filters.HasFlag(TextNotificationPoolFilters.Feedback));
}
}