scrollbars in viewports?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

scrollbars in viewports?

#1 Post by xela »

scrollbars

If not None, scrollbars are added along with this viewport. This works by creating a side layout, and placing the created viewport in the center of the side. If scrollbars is "horizontal", a horizontal scrollbar is placed beneath the viewport. If scrollbars is "vertical", a vertical scrollbar is placed to the right of the viewport. If scrollbars is "both", both horizontal and vertical scrollbars are created.

If scrollbars is not None, the viewport takes properties prefixed with "side". These are passed to the created side layout.
Does this mean that a coder needs to create a side layout or that Ren'Py does so? Also screen language seems to reject properties that start with "side_" and just the side inside of a viewport doesn't seem to do anything meaningful (in fact it freezes it). Was this finished properly and if so, how should this be used?

Another issue that a viewport with a scrollbar cannot be aligned and if pos property is added, bar stays at the same place as if the pos was 0 while the viewport itself is being positioned properly.

Everything seems to be working well if a viewport is placed inside of any container, but even then it's not apparent how to place it to the left/top...

It's perfectly clear how to get it done using a side/viewport/bar with Y or XScrollValue, I just can't figure out how to get the same going with the newer scrollbars property.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: No registered users