Code: Select all
playerList = [
("bgm/M01.ogg", "images/bgm/M01.png"),
("bgm/M02.ogg", "images/bgm/M02.png"),
("bgm/M03.ogg", "images/bgm/M03.png"),
("bgm/M04.ogg", "images/bgm/M04.png"),
]
if persistent.credits_seen:
playerList += [
("bgm/ED.ogg", "images/bgm/ED.png")
]
mr = MusicRoom(fadeout=0.0, shuffle=False)
for (track, image) in playerList:
mr.add(track, always_unlocked=True, action=SetVariable("my_image", image))
playerList = dict(playerList)
init:
default my_image = "images/bgm/M01.png"
screen extra:
tag menu
add "images/gui/menu_ground.png"
modal True
on "replaced" action Play("music", "bgm/M01.ogg")
imagemap:
auto "images/gui/extra_%s.png"
alpha False
hotspot(302,53,31,27) action mr.Previous()
hotspot(346,53,25,27) action mr.Play() selected renpy.music.is_playing()
hotspot(379,53,27,27) action mr.Stop()
hotspot(415,53,27,27) action mr.ToggleSingleTrack()
hotspot(454,53,32,27) action mr.Next()
hotspot(25,534,149,40) action Return()
add my_image pos(509,43)
Code: Select all
$ persistent.credits_seen = True