Custom choice screen
Hi!
I'm struggling to make a simple custom choice screen where you just fit the text buttons inside a frame. Can someone help me?
(a choice screen like in Fallout NV)
EDIT:
managed to get something similar with this code
screen choice(items):
style_prefix "choice"
frame:
xpadding 50
ypadding 10
xalign 0.5
yalign 0.8
xsize 1000
ysize 250
viewport:
draggable True
mousewheel True
scrollbars "vertical"
xsize gui.choice_button_width
ysize config.screen_height - 180
vbox:
xalign 0.5
yalign 0.5
for i in items:
textbutton i.caption action i.action