Add lua function Media.DisplaySystemMessage
This commit is contained in:
committed by
abcdefg30
parent
97084effac
commit
0eb5063260
@@ -198,6 +198,15 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
Game.AddChatLine(prefix, c, text);
|
||||
}
|
||||
|
||||
[Desc("Display a system message to the player.")]
|
||||
public void DisplaySystemMessage(string text, string prefix = "Mission")
|
||||
{
|
||||
if (string.IsNullOrEmpty(text))
|
||||
return;
|
||||
|
||||
Game.AddSystemLine(prefix, text);
|
||||
}
|
||||
|
||||
[Desc("Displays a debug message to the player, if \"Show Map Debug Messages\" is checked in the settings.")]
|
||||
public void Debug(string text)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user