add Media.StopMusic()

This commit is contained in:
Matthias Mailänder
2014-11-01 20:14:05 +01:00
parent 3489794713
commit a7f27a65ea

View File

@@ -106,6 +106,12 @@ namespace OpenRA.Mods.Common.Scripting
previousMusic = Sound.CurrentMusic; previousMusic = Sound.CurrentMusic;
} }
[Desc("Stop the current song.")]
public void StopMusic()
{
Sound.StopMusic();
}
[Desc("Display a text message to the player.")] [Desc("Display a text message to the player.")]
public void DisplayMessage(string text, string prefix = "Mission") // TODO: expose HSLColor to Lua and add as parameter public void DisplayMessage(string text, string prefix = "Mission") // TODO: expose HSLColor to Lua and add as parameter
{ {