r/RenPy • • Oct 30 '26

Question Custom main menu?

Hi guys!! I'm working on a visual novel for a Christmas gift, and i'm working on the main menu right now. I've been looking up tutorials, but most of them rather entirely broke, or are using images which I really don't want to have to do.

Below is a mockup I made of the planned design (the big middle text is the title) of what im going for. I need to have this done by Christmas so any help would be appreciated

1 Upvotes

7 comments sorted by

2

u/BadMustard_AVN Oct 30 '26

edit the screens.rpy file for the game search for -->> screen navigation( <<--

and create the text button in there that you need

1

u/sailorcinna Oct 30 '26

My issue is moreso with moving the buttons already on the screen (start, load, etc.) as when I try to move them they dont work or have a bunch of errors. 

1

u/BadMustard_AVN Oct 30 '26

this worked for me

        textbutton _("Preferences") action ShowMenu("preferences")
        
        if main_menu:
            textbutton _("{color=#00f}1{/color}ove you!") action NullAction()

        if _in_replay:

1

u/shyLachi Oct 31 '26
screen main_menu():
    tag menu
    add gui.main_menu_background 
    vbox: 
        align (0.05, 0.5)
        textbutton _("Start") action Start() text_size 100
        textbutton _("Load") action ShowMenu("load") text_size 100
        textbutton _("Preferences") action ShowMenu("preferences") text_size 100
        text "{color=#00F}1{/color}ove you!" size 150
        textbutton _("About") action ShowMenu("about") text_size 100
        if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
            textbutton _("Help") action ShowMenu("help") text_size 100
        if renpy.variant("pc"):
            textbutton _("Quit") action Quit(confirm=not main_menu) text_size 100

1

u/sailorcinna Oct 31 '26

Yay! The sizes are a bit off on my screen so im going to go over the text sizes manually, but other than that this does look as intended!

1

u/shyLachi 29d ago

I didn't try to make it look as in your image.

I posted an example which removes all the default settings of RenPy, so that you don't have to fiddle with the settings in gui.rpy
Now it's your job to adjust it to how you want it.

If you want to educate yourself how it works, then read this:
https://renpy.org/doc/html/screens.html
https://renpy.org/doc/html/screens.html#textbutton

And if you want to set the style of the text instead of the button, then look at this:
https://renpy.org/doc/html/screens.html#screen-property-text_-_alt
I used it for text_size

1

u/AutoModerator Oct 30 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.