Here's my music room code:
Code: Select all
screen music_room:
tag menu
window:
style "mm_root"
add "UI/extrabg.png"
frame:
has vbox
# The buttons that play each track.
textbutton "Grande #2" action mr.Play("SOUND/02 Grande.ogg")
textbutton "Cuori Nel Vento" action mr.Play("SOUND/Cuori Nel Vento.ogg")
textbutton "Diary" action mr.Play("SOUND/Diary.ogg")
textbutton "III" action mr.Play("SOUND/III.ogg")
textbutton "VI" action mr.Play("SOUND/VI.ogg")
textbutton "Can I Talk To You" action mr.Play("SOUND/Can-I-Talk-To-You.ogg")
textbutton "Happiness is" action mr.Play("SOUND/Happiness-Is.ogg")
textbutton "Guestlist" action mr.Play("SOUND/Guestlist.ogg")
textbutton "Fantasy" action mr.Play("SOUND/Fantasy.ogg")
textbutton "Movin On Up" action mr.Play("SOUND/Movin-On-Up.ogg")
textbutton "Now Son" action mr.Play("SOUND/Now-Son.ogg")
textbutton "Peas Corps" action mr.Play("SOUND/PeasCorps.ogg")
textbutton "II-Remix" action mr.Play("SOUND/II-remix.ogg")
textbutton "Glass Piano" action mr.Play("SOUND/glasspiano.ogg")
textbutton "Ichill" action mr.Play("SOUND/Ichill.ogg")
textbutton "Somatou" action mr.Play("SOUND/Somatou.ogg")
textbutton "Yukiai" action mr.Play("SOUND/Yukiai.ogg")
textbutton "Flekkefjord" action mr.Play("SOUND/flekkefjord.ogg")
textbutton "Jingle Bells" action mr.Play("SOUND/JingleBells.ogg")
textbutton "The Night Sky" action mr.Play("SOUND/The night sky.ogg")
textbutton "We Came Down" action mr.Play("SOUND/We came down.ogg")
null height 20
# Buttons that let us advance tracks.
$ ui.imagebutton ("UI/mr_f2.png", "UI/mr_f.png", clicked=mr.Next())
$ ui.imagebutton ("UI/mr_b2.png", "UI/mr_b.png", clicked=mr.Previous())
null height 20
# The button that lets the user exit the music room.
textbutton "Return" action ShowMenu("extras_page")
# Start the music playing on entry to the music room.
on "replace" action mr.Play()