Skip to content

Commit

Permalink
add notify outside of music room
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronya-Rand committed Feb 6, 2022
1 parent 721e68b commit f436908
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions game/audio_code.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ init python:
try: ost_info.current_soundtrack = soundtracks[index+1]
except: ost_info.current_soundtrack = soundtracks[0]

if not renpy.get_screen("new_music_room"):
renpy.notify("Now Playing: " + ost_info.get_title() + " - " + ost_info.get_artist())

renpy.audio.music.play(ost_info.get_path(), self.channel, self.loopSong)

def random_track(self):
Expand All @@ -305,6 +308,9 @@ init python:
if ost_info.current_soundtrack != soundtracks[a]:
unique = 0
ost_info.current_soundtrack = soundtracks[a]

if not renpy.get_screen("new_music_room"):
renpy.notify("Now Playing: " + ost_info.get_title() + " - " + ost_info.get_artist())

renpy.audio.music.play(ost_info.get_path(), self.channel, self.loopSong)

Expand Down Expand Up @@ -690,6 +696,6 @@ init python:
ost_main = OSTPlayerMain()
renpy.game.preferences.set_mute("music", False)
ost_monitor = ExternalOSTMonitor()

# Backwards Compatability
manualDefineList = ost_song_assign.manualList
manualDefineList = ost_song_assign.manualList

0 comments on commit f436908

Please sign in to comment.