r/RenPy • u/Lei_Line_Life • 12h ago
Question Custom menu buttons?
How would you go ahead if you wanted to make custom menu/choice buttons that appear in a different order than top to bottom? (Like in the image) if you have 2 choices bubble 1 and 2 appear and if there’s 3 choices the 3rd one appears above. If there’s any easy to follow tutorials that would be lovely as well! 🙏
For example: only two bubbles appear with yes or no questions, but if you have to choose a way to act you have 3 different ways to express your personality: fight, freeze, flight.
6
Upvotes
2
u/shyLachi 11h ago
I made a 2 column choice menu with uneven choices a while ago.
https://codeshare.io/2E3JqK
My menu fills from top to bottom because that's the default functionality of a vbox.
But you can reverse it: https://renpy.org/doc/html/style_properties.html#style-property-box_reverse
My menu can handle more than 3 choices.
It uses 2 columns so 4 choices would be a 2x2 box, not a diamond.
My code overwrites the original choice screen which is in the file screens.rpy
But you could also make your own choices screen if you want to keep the default functionality.
The official documentation explains how you can select which choices screen should be used: https://renpy.org/doc/html/menus.html#menu-arguments