If I have a bunch of displayables (an image and its text) that are vertically stacked under one another, the displayables will eventually go off-screen. Does renpy have some way of wrapping these in a container to make them scrollable?
If not, what's the best way of doing this?
Scrollable displayable?
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.
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.
-
- Regular
- Posts: 85
- Joined: Tue Dec 19, 2017 1:36 pm
- Contact:
Re: Scrollable displayable?
Check this - https://www.renpy.org/doc/html/screens.html#viewport
And tutorial game that ships with Ren'Py.
And tutorial game that ships with Ren'Py.
-
- Regular
- Posts: 85
- Joined: Tue Dec 19, 2017 1:36 pm
- Contact:
Re: Scrollable displayable?
Ah cool, I'll play around with it. Is there a way to change the default scroll bar to an image I have?
Re: Scrollable displayable?
Yes you can change. Through the style or change to screen.rpy for all kinds of bar imagenewbiemate wrote: ↑Tue Feb 13, 2018 6:02 pm Ah cool, I'll play around with it. Is there a way to change the default scroll bar to an image I have?
Code: Select all
init -5 python:
style.timebar = Style(style.default)
style.timebar.left_bar = Frame("ui/interface/timerfull.png", 0, 0)
style.timebar.right_bar = Frame("ui/interface/timerempty.png", 0, 0)
style.timebar.xmaximum = 695
style.timebar.ymaximum = 27
Code: Select all
style bar:
ysize gui.bar_size
left_bar Frame("gui/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
right_bar Frame("gui/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
style vbar:
xsize gui.bar_size
top_bar Frame("gui/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
bottom_bar Frame("gui/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
style scrollbar:
ysize gui.scrollbar_size
base_bar Frame("gui/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
thumb Frame("gui/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
style vscrollbar:
xsize gui.scrollbar_size
base_bar Frame("gui/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
thumb Frame("gui/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
style slider:
ysize gui.slider_size
base_bar Frame("gui/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
thumb "gui/slider/horizontal_[prefix_]thumb.png"
style vslider:
xsize gui.slider_size
base_bar Frame("gui/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
thumb "gui/slider/vertical_[prefix_]thumb.png"
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive.
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive.
Who is online
Users browsing this forum: No registered users