In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
-
smollvrn
- Newbie
- Posts: 14
- Joined: Sun Mar 14, 2021 3:24 pm
-
Contact:
#1
Post
by smollvrn » Sun May 23, 2021 1:30 pm
should vpgrid takes position size properties?
Code: Select all
screen char:
vpgrid:
yfill True
xminimum 427
cols 1
scrollbars "vertical"
side_xalign 0.0
vbox :
text "1"
label start:
show screen char
"scrollbar test"
return
-
smollvrn
- Newbie
- Posts: 14
- Joined: Sun Mar 14, 2021 3:24 pm
-
Contact:
#3
Post
by smollvrn » Sun May 23, 2021 5:36 pm
In addition, a vpgrid takes all properties a viewport can, and the following groups of style properties:
Common Properties
Position Style Properties
Position Style Properties
xmaximum - int
ymaximum - int
maximum - tuple of (int, int)
xminimum - int
yminimum - int
minimum - tuple of (int, int)
xsize - int
ysize - int
xysize - tuple of (int, int)
Grid Style Properties
https://www.renpy.org/doc/html/screens.html#vpgrid
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#4
Post
by PyTom » Mon May 24, 2021 9:41 pm
So, this was a change in 7.3.3, albeit a obscure one - the xminimum and yminimum properties weren't listed as position properties. If a vpgrid has a side, position properties go to the side containing it, and not the viewport itself. To give the xminimum to the viewport, you need to use viewport_xminimum:
Code: Select all
screen char:
vpgrid:
yfill True
viewport_xminimum 427
cols 1
scrollbars "vertical"
side_xalign 0.0
vbox :
text "1"
label start:
show screen char
"scrollbar test"
return
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
Users browsing this forum: No registered users