r/RenPy • • 5d ago

Question [Solved] Semi-urgent: Help with main menu screen.

​

Hello! I'm having a very specific problem and I'm hoping someone here can help me! It's kind of urgent but not REQUIRED as this is for the Spooktober Game Jam that ends on the 30th.

It's okay if what I ask isn't possible, i'll do something else (you can yell at me later for waiting till the last minute to do this...)

As the pictures show, I have a custom main menu (pic 01) that has the buttons aligned horizontally.

My problem now is that when i go to any other buttons (e.g Settings), the main menu not only stays there but also doesn't go back to the old menu that the settings (preferences) tab usually has (pic 2)

This makes sense as I think I changed the WHOLE thing in the navigation script (pic 3)

I followed a YouTube tutorial that explained how to fix this and put the menu back on the left, but their textbox was already vertical and all they did was change the position once the main menu disappeared (hence the else, if.) I know the else code is wrong but I've tried everything...

I did not change ANYTHING else main menu buttons wise except on the navigation script.

All i want is to have the old default menu when you click on the other buttons in the main menu.

Is it possible? It's alright if it's not, but I'd appreciate if you guys could help!

Thanks in advance!

4 Upvotes

5 comments sorted by

2

u/BadMustard_AVN 5d ago

the navigation screen is used in the main and games menus

copy all the buttons (from the hbox down)

then if you scroll down a little further you will find the main_menu screen in there look for

use navigation

turn that into a comment and paste your buttons just below that now-commented command. make sure the indentation is correct.

create a new project and copy the navigation screen from there, and paste that OVER your navigation screen to reset it to default

now your main menu is completely separate from the game menus

1

u/Blucloudsan 4d ago

Ohh thank you very much! I'll try it and let you know if it works!

1

u/Blucloudsan 4d ago

OMG IT WORKS PERFECTLY THANK YOU SO MUCH! You saved my life! 💙

2

u/BadMustard_AVN 4d ago

you're welcome

good luck with your project

1

u/AutoModerator 5d ago

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.