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.
frame:
style_group "characternames"
yalign 0.9
has vbox:
viewport:
mousewheel True
scrollbars "vertical"
vbox:
xmaximum 310
ymaximum 900
for i in range(Character_list):
textbutton Character_name[i]
I am trying to size the viewport to x=310 y=900 so it exactly matches the size of the child vbox, but I always get a tiny viewport only large enough to display 2 textbuttons. I've tried setting both child_size and xmaximum/ymaximum in the viewport styles, but no matter what I change it always remains the same size.
What about moving the xmaximum and ymaximum to the viewport? If it isn't automatically filling the space, add xfill and yfill to True. It doesn't work when I put them in vbox and only works when I put them in viewport, but maybe it'll work for you?
I'm just guessing now since I have no idea why none of that is working, but could it maybe have something to do with the style properties you have for "characternames"? What are the properties that you have set up?
I just figured it out, it wasn't working because I'm an idiot. XD There's another frame about 2 pages up for a completely different area, and somewhere along the line I tabbed the entire section with the frame I was having trouble with one indentation in, so the entire thing was getting the mins and maxes for a completely separate part of the interface.