Music room customization [Solved]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Boniae
Regular
Posts: 187
Joined: Fri Apr 10, 2009 4:10 pm
Completed: I want 2 be single and Forget-Me-Not
Projects: Cry Girlhood, Dakota Wanderers, Sagebrush
Organization: Rosewater Games
Tumblr: boniae
Location: Cleveland, OH
Contact:

Music room customization [Solved]

#1 Post by Boniae »

I've got my music room setup but I'm hoping to customize it a little. When the player clicks the button, I want a picture to show up on the right (album picture). I also want to know how I can add a scroll bar to the frame (since there's a lot of music).

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()
Not sure how to incorporate it, any help is greatly appreciated! :mrgreen:
Last edited by Boniae on Sat Jul 05, 2014 6:25 pm, edited 1 time in total.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Music room customization

#2 Post by Donmai »

Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Boniae
Regular
Posts: 187
Joined: Fri Apr 10, 2009 4:10 pm
Completed: I want 2 be single and Forget-Me-Not
Projects: Cry Girlhood, Dakota Wanderers, Sagebrush
Organization: Rosewater Games
Tumblr: boniae
Location: Cleveland, OH
Contact:

Re: Music room customization

#3 Post by Boniae »

Thank you so much! I was able to get the design I wanted. :)

Post Reply

Who is online

Users browsing this forum: Google [Bot]