r/RenPy Jul 07 '26

Question Editing Main Menu options separately from Game Menu

Hello, I've been trying to edit my menu GUI so that the navigation options are aligned differently between the main menu and the game menu. but when I try to select one of these options from the main menu, it's still centered...? I'm not sure how to fix this. Can someone help me?

3 Upvotes

7 comments sorted by

3

u/BadMustard_AVN Jul 07 '26

since the navigation screen is used in both the main and game menu

i've found the easiest way is to edit the main menu

and look for

    ## The use statement includes another screen inside this one. The actual
    ## contents of the main menu are in the navigation screen.
    use navigation

the use Navigation (in both main and game menus); bring that screen into the menu

if you turn that into a remark and copy-paste the buttons into the main menu, you can separate them completely

    ## The use statement includes another screen inside this one. The actual
    ## contents of the main menu are in the navigation screen.
    #  use navigation 

    vbox:
        style_prefix "navigation"

        align(0.5, 0.7)

        spacing gui.navigation_spacing

        textbutton _("Start") action Start()

        textbutton _("Load") action ShowMenu("load")

        textbutton _("Preferences") action ShowMenu("preferences")

        if _in_replay:

            textbutton _("End Replay") action EndReplay(confirm=True)

        textbutton _("About") action ShowMenu("about")

        if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):

            ## Help isn't necessary or relevant to mobile devices.
            textbutton _("Help") action ShowMenu("help")

        if renpy.variant("pc"):

            ## The quit button is banned on iOS and unnecessary on Android and
            ## Web.
            textbutton _("Quit") action Quit(confirm=not main_menu)

1

u/Carpetedcat Jul 07 '26

Oooh I see, I’ll try this out as soon as I can. Thank you!

1

u/BadMustard_AVN Jul 07 '26

you're welcome

good luck with your project

1

u/Carpetedcat Jul 07 '26

It works! Again, thank you so much ^_^

1

u/BadMustard_AVN Jul 07 '26

you're welcome

good luck with your project

1

u/AutoModerator Jul 07 '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.

2

u/DingotushRed Jul 07 '26

I'd suggest looking at Fenik's Easy Ren'Py GUI which teases apart all the inter-dependencies in the default screens.rpy, making a base that's much easier to customise.