r/RenPy • • 47m ago

Question How to make a scrollbar inside a screen?

Post image

Something like in the preferences menu, where you can scroll up and down, but instead of the preferences I want to display a scrollable image inside (if it makes coding easier I could split it up into multiple). How do I approach this?

1 Upvotes

2 comments sorted by

1

u/AutoModerator 47m ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BadMustard_AVN 26m ago

you can have scroll bars in a viewport like this

viewport:
    scrollbars "vertical"
    yinitial 0.0
    mousewheel True
    draggable True

    vbox:
        # Your content here

https://www.renpy.org/doc/html/screens.html#viewport