Add lua function Media.DisplaySystemMessage

This commit is contained in:
Mustafa Alperen Seki
2019-06-09 16:46:40 +03:00
committed by abcdefg30
parent 97084effac
commit 0eb5063260

View File

@@ -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)
{