Use mission notifications pool with appropriate chat line template

This commit is contained in:
Ivaylo Draganov
2021-11-05 20:21:44 +02:00
committed by Matthias Mailänder
parent a71da0a25a
commit 3310f14dea
9 changed files with 13 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ namespace OpenRA.Mods.Common.Scripting
return;
var c = color.HasValue ? color.Value : Color.White;
TextNotificationsManager.AddChatLine(prefix, text, c);
TextNotificationsManager.AddMissionLine(prefix, text, c);
}
[Desc("Display a system message to the player. If 'prefix' is nil the default system prefix is used.")]

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Widgets
public string ChatTemplate = "CHAT_LINE_TEMPLATE";
public string SystemTemplate = "SYSTEM_LINE_TEMPLATE";
public string MissionTemplate = "SYSTEM_LINE_TEMPLATE";
public string MissionTemplate = "CHAT_LINE_TEMPLATE";
public string FeedbackTemplate = "TRANSIENT_LINE_TEMPLATE";
readonly Dictionary<TextNotificationPool, Widget> templates = new Dictionary<TextNotificationPool, Widget>();