Menu columns?

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.
Post Reply
Message
Author
HammeredEnt
Regular
Posts: 33
Joined: Sat May 04, 2019 8:09 am
Contact:

Menu columns?

#1 Post by HammeredEnt »

Hi there!

Is there a way to have a standard menu in a grid format? I've got so many options in one of my menus that it runs off the screen, so I'm trying to get multiple columns and I can't figure out if I can get the 'grid' tag to apply to menus. The documentation kinda makes it look like that it only applies to screens and I'm having a hard time getting textbuttons to look even remotely like the menu - I'm still struggling to try and change the font in a screen!

Thanks!

Tojaw
Newbie
Posts: 6
Joined: Thu Jan 31, 2019 1:28 pm
Contact:

Re: Menu columns?

#2 Post by Tojaw »

Hi!

You need to know that all the styling is done in screens.rpy. This also involves the choice screen. It looks like this:

Code: Select all

screen choice(items):
    style_prefix "choice"

    vbox:
        for i in items:
            textbutton i.caption action i.action
Replace it with this:

Code: Select all

screen choice(items):
    style_prefix "choice"

    vpgrid:
        xalign 0.5
        yalign 0.5
        cols 2

        for i in items:
            textbutton i.caption action i.action:
                xsize 500
Hope I could help.

HammeredEnt
Regular
Posts: 33
Joined: Sat May 04, 2019 8:09 am
Contact:

Re: Menu columns?

#3 Post by HammeredEnt »

Awesome, thanks Tojaw! I'll have a play around with it!

Post Reply

Who is online

Users browsing this forum: No registered users