

▲ 2 r/RenPy
Hi all! I'm attempting to work on a VN by myself, and have been slowly learning how to use Ren'py for my script writing, but I stumble as soon as I hit anything that has to do with UI. It just doesn't click in my head.
Ideally, I'd like to have my menu choices contained within a vbox that sits on top of/inside of my dialogue box (Similar to that of Scarlet Hollow), but the tutorials I've found have simply said "just put it in a viewport" and left it at that with no further elaboration. I'm not sure how to go about moving the viewport/frame where I need it and aligning my choices within it, and would appreciate any help anyone is willing to offer.
This is my code as it stands, if the image for whatever reason doesn't work.
screen choice(items):
style_prefix "choice"
frame:
viewport:
scrollbars "vertical"
xmaximum 400
ymaximum 400
mousewheel True
has vbox
vbox:
for i in items:
textbutton i.caption action i.action
style choice_vbox is vbox
style choice_button is button
style choice_button_text is button_text
style choice_vbox:
xalign 0.5
ypos 405
yanchor 0.5
spacing gui.choice_spacing
style choice_button is default:
properties gui.button_properties("choice_button")
style choice_button_text is default:
properties gui.text_properties("choice_button")
Thank you!
u/CardEnvironmental271 — 17 days ago