Main menu centered buttons
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Main menu centered buttons
Hello everybody! I need help. How to remove the main menu buttons when you click on them? I placed the buttons in the center, but when I clicked on them, naturally, the menu of this button pops up, but at the same time the buttons of the main menu are not hidden.
- Kia
- Eileen-Class Veteran
- Posts: 1040
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
- Contact:
Re: Main menu centered buttons
I think you've removed the "tag menu" line from your main menu
Code: Select all
screen main_menu():
tag menu
Re: Main menu centered buttons
Hmm... Everything is in place
Code: Select all
screen main_menu():
tag menu
style_prefix "main_menu"
add gui.main_menu_background
frame:
pass
use navigation
if gui.show_name:
vbox:
text "[config.name!t]":
style "main_menu_title"
text "[config.version]":
style "main_menu_version"
- Kia
- Eileen-Class Veteran
- Posts: 1040
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
- Contact:
Re: Main menu centered buttons
check your other screens for "tag menu"
the screens with the same tag replace each other and when you go to another screen with the same tag, the previous screen will be hidden, if they're not doing that the likely case is: one of them doesn't have the same tag
the screens with the same tag replace each other and when you go to another screen with the same tag, the previous screen will be hidden, if they're not doing that the likely case is: one of them doesn't have the same tag
Re: Main menu centered buttons
This is a new project with a standard code, only the position of the buttons in the main menu has been changed using
Code: Select all
screen navigation():
tag menu
vbox:
style_prefix "navigation"
xalign 0.5
yalign 0.5
- Kia
- Eileen-Class Veteran
- Posts: 1040
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
- Contact:
Re: Main menu centered buttons
I don't think navigation should have a "tag menu"
maybe you can explain the problem with some screenshots, I still think the problem is a missing or misplaced "tag menu" line somewhere
maybe you can explain the problem with some screenshots, I still think the problem is a missing or misplaced "tag menu" line somewhere
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: Main menu centered buttons
This normal behavior of the main_menu screen...
Screens of main and game menu are connected by a 'tag menu' and a 'use navigation' statement.
If you want to change it, you need rewrite navigation screen(), and remove a use statement those screens where buttons aren't required.
https://www.renpy.org/doc/html/screen_s ... nu-screens
https://www.renpy.org/doc/html/screens. ... -statement
https://www.renpy.org/doc/html/screens.html#use
Screens of main and game menu are connected by a 'tag menu' and a 'use navigation' statement.
If you want to change it, you need rewrite navigation screen(), and remove a use statement those screens where buttons aren't required.
https://www.renpy.org/doc/html/screen_s ... nu-screens
https://www.renpy.org/doc/html/screens. ... -statement
https://www.renpy.org/doc/html/screens.html#use
Re: Main menu centered buttons
Thank you so much! I created a second screen game_menu2 completely copying screen game_menu, only deleted use navigation. And in the screens where I needed to have no buttons, I just fixed the use game_menu instead on use game_menu2 and it all worked. Спасибо.
Who is online
Users browsing this forum: No registered users