Use mission notifications pool with appropriate chat line template
This commit is contained in:
committed by
Matthias Mailänder
parent
a71da0a25a
commit
3310f14dea
@@ -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.")]
|
||||
|
||||
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user