Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lua function Media.DisplaySystemMessage #16667

Merged
merged 1 commit into from Jun 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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