Code: Select all
init python:
mr = MusicRoom(fadeout = 1.0)
#Song List
mr.add("music/Act1/00-00-01 Flair of Familiarity - Slow.ogg", always_unlocked=True)
mr.add("music/Act1/01-01-01 Ambient3.ogg")
mr.add("music/Act1/01-01-02 Another Pint Please - Foggy.ogg")
mr.add("music/Act1/01-01-02 Another Pint Please - Chronic.ogg")
mr.add("music/Act1/01-03-01 Feel Strings2.ogg")
mr.add("music/Act1/01-03-02 Flair of Familiarity - Shipwright.ogg")
mr.add("music/Act1/01-99-01 Clandestine Passenger - Extended Version.ogg")
mr.add("music/Act1/01-03-03 Feel Strings4.ogg")
#Screen
screen music_room:
tag menu
modal True
add "ui/extras_submenu.jpg"
frame:
has vbox
textbutton "Flair Of Familiarity" action mr.Play ("music/Act1/00-00-01 Flair of Familiarity - Slow.ogg")
textbutton "Ambience #3" action mr.Play("music/Act1/01-01-01 Ambient3.ogg")
textbutton "Another Pint Please - Foggy Memories" action mr.Play("music/Act1/01-01-02 Another Pint Please - Foggy.ogg")
textbutton "Another Pint Please - Chronic Alchoholism" action mr.Play("music/Act1/01-01-02 Another Pint Please - Chronic.ogg")
textbutton "Feel Strings #2" action mr.Play("music/Act1/01-03-01 Feel Strings2.ogg")
textbutton "Flair of Familiarity - Shipwright Fiddle" action mr.Play("music/Act1/01-03-02 Flair of Familiarity - Shipwright.ogg")
textbutton "Clandestine Passenger" action mr.Play("music/Act1/01-99-01 Clandestine Passenger - Extended Version.ogg")
textbutton "Feel Strings #4" action mr.Play("music/Act1/01-03-03 Feel Strings4.ogg")
null height 20
textbutton "Next" action mr.Next()
textbutton "Previous" action mr.Previous()
null height 20
textbutton "Return" action Hide("music_room")
#Starts new music upon entry to the music room
on "replace" action mr.Play()
#Resumes main menu music
on "replaced" action Play("music", "music/Act1/00-00-01 Flair of Familiarity - Slow.ogg")
key "K_ESCAPE" action Hide("music_room")
Code: Select all
init:
style.musicroom = Style(style.button_text)
style.musicroom.background = Frame("ui/button.png", 10,10)
Code: Select all
[code]
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/gallery.rpy", line 2: expected 'word' not found.
style.musicroom = Style(style.button_text)
^
File "game/gallery.rpy", line 3: expected 'word' not found.
style.musicroom.background = Frame("ui/button.png", 10,10)
^
Ren'Py Version: Ren'Py 6.99.12.4.2187
I have other styles that work just fine, so I don't know why this is giving me trouble