add Media.StopMusic()
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user