Added argument to play a song that doesn't loop
This commit is contained in:
parent
d74103073d
commit
57e145b668
|
@ -321,6 +321,7 @@ Public Class MusicManager
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub [Stop]()
|
Public Shared Sub [Stop]()
|
||||||
|
Playlist.Clear()
|
||||||
MusicManager.Play(NO_MUSIC, False, 0.0F)
|
MusicManager.Play(NO_MUSIC, False, 0.0F)
|
||||||
_isIntroStarted = False
|
_isIntroStarted = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
|
@ -12,11 +12,21 @@
|
||||||
|
|
||||||
Select Case command.ToLower()
|
Select Case command.ToLower()
|
||||||
Case "play"
|
Case "play"
|
||||||
MusicManager.Play(argument, True)
|
Dim LoopSong As Boolean = True
|
||||||
|
If argument.Split(",").Length > 1 Then
|
||||||
|
LoopSong = CBool(argument.GetSplit(1, ","))
|
||||||
|
End If
|
||||||
|
MusicManager.Play(argument.GetSplit(0, ","), LoopSong, LoopSong)
|
||||||
|
|
||||||
|
If LoopSong = True Then
|
||||||
If Core.CurrentScreen.Identification = Screen.Identifications.OverworldScreen Then
|
If Core.CurrentScreen.Identification = Screen.Identifications.OverworldScreen Then
|
||||||
Screen.Level.MusicLoop = argument
|
Screen.Level.MusicLoop = argument
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
If Core.CurrentScreen.Identification = Screen.Identifications.OverworldScreen Then
|
||||||
|
Screen.Level.MusicLoop = "silence"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
Case "forceplay"
|
Case "forceplay"
|
||||||
MusicManager.ClearCurrentlyPlaying()
|
MusicManager.ClearCurrentlyPlaying()
|
||||||
MusicManager.Play(argument)
|
MusicManager.Play(argument)
|
||||||
|
|
Loading…
Reference in New Issue