Skip to content

Commit

Permalink
Add lua function Media.DisplaySystemMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR authored and abcdefg30 committed Jun 9, 2019
1 parent 97084ef commit 0eb5063
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OpenRA.Mods.Common/Scripting/Global/MediaGlobal.cs
Expand Up @@ -198,6 +198,15 @@ public void DisplayMessage(string text, string prefix = "Mission", Color? color
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)
{
Expand Down

0 comments on commit 0eb5063

Please sign in to comment.