Page 1 of 1
How do I display the user-choice menu at specified positions?
Posted: Wed Jun 27, 2018 10:20 pm
by LTWasabi
I want to display an user-choice menu something like this :
XXX XXX XXX XXX
XXX XXX XXX XXX
XXX XXX XXX XXX
Please tell me how to do this.
Re: How do I display the user-choice menu at specified positions?
Posted: Thu Jun 28, 2018 4:08 am
by xavimat
Well, maybe you could explain more.
I guess you mean, that you want 12 options in four columns and three rows, like this:
Option1 Option2 Option3 Option4
Option5 Option6 Option7 Option8
Option9 Option10 Option11 Option12
For this you can change the
screen choice in screens.rpy.
Instead of vbox, put an hbox with box_wrap True.
Change the xsize of the texbutton-options (by default is very long) AND all your options should be short strings.
For example:
Code: Select all
screen choice(items):
style_prefix "choice"
hbox:
align (.5, .45)
box_wrap True
for i in items:
textbutton i.caption action i.action xsize 300
Re: How do I display the user-choice menu at specified positions?
Posted: Thu Jun 28, 2018 5:07 pm
by LTWasabi
xavimat wrote: ↑Thu Jun 28, 2018 4:08 am
Code: Select all
screen choice(items):
style_prefix "choice"
hbox:
align (.5, .45)
box_wrap True
for i in items:
textbutton i.caption action i.action xsize 300
Just what I wanted! Thanks for the help.