Siyokoy's Radial Card Spread menu

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
User avatar
Miko-Class Veteran
Posts: 689
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia

Siyokoy's Radial Card Spread menu

#1 Post by Andredron »


You can either replace the already existing files in the folder or add your own image in the cards folder with the naming convention "card Insert_Image_Name.png". Once you've done that, go to a normal menu and add this to the end of a choice:

"choice 1": # Default card hover image
"choice 2"(card = "Insert_Image_Name"): # Alternate card hover image
That should show choice 1 with a default card hover and choice 2 with an alternate one.

How to put text on card itself:
Go to gui.rpy and look for the next line:

define gui.choice_button_text_yoffset = 300 ## To put the choice text lower than the card for readability.
Then remove the line or set it to 0 to put the text back onto the center of the card. You could also just adjust the number higher or lower depending on what placement you want.

How to change card image and dimensions:
Just go to the "gui/button" folder and change the images. For the alternate images, refer to the first instruction.

If you want to change the dimensions of the button, just go to gui.rpy, locate, and then change the following as needed.

define gui.choice_button_width = 315
define gui.choice_button_height = 477
How to change hover animation:
Go to gui_transforms.rpy and adjust as needed. Do NOT use ypos or xpos unless you know what you're doing. Use yoffset and xoffset instead.

If you plan on changing the name of the transform, make sure that you change it in screens.rpy as well.

How to adjust radius and positioning:
This is documented inside the screens.rpy itself. Just go open that file and look through the comments.

Post Reply

Who is online

Users browsing this forum: No registered users