Howdy~ I am very new to Ren'Py, and I've been following some tutorials but seem to have run into a problem.
I managed to move the title screen option bottoms,
Screenshot Example: https://sta.sh/0n9vbe0x7wr
But when you go into one of the menus like preference, load/saving file, help, etc., the option are still in the same spot and over over lapping.
Screenshot Example:
https://sta.sh/01dy8y7etw96
https://sta.sh/0qor9g06cf3
https://sta.sh/01na3ku8a18l
Is there a way to fix this? The tutorial I watched was a little old, and didn't show how to fix this problem on the main title screen, only when you are in the game.
Thanks in advanced.
[Solved] Moving the Options Buttons back in Place
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.
- Zodiac_Stories
- Newbie
- Posts: 17
- Joined: Mon Mar 05, 2018 9:26 pm
- Completed: Flower of the North Star, Pnígike Paradise
- IRC Nick: Zodie
- Deviantart: EillaThePortalMaker
- itch: https://zodiacstorie
- Contact:
[Solved] Moving the Options Buttons back in Place
Last edited by Zodiac_Stories on Thu Feb 29, 2024 11:06 am, edited 1 time in total.
I make worlds filled with Monsters so you can be the Hero
Re: [Problem] Moving the Options Buttons back in Place
In file "screens.rpy" there is "screen main_menu".
It has a line "use navigation".
"screen navigation" is used in Main Menu and in Game Menu.
Therefore if you change anything related to "screen navigation", it shows in all menu screens of Main Menu and Game Menu.
The easiest way to change the title screen but not affect other screens is to replace "use navigation" in "screen main_menu" with some custom layout. For example:
Then you can add some "style" to this vbox and change its position etc., for example:
It has a line "use navigation".
"screen navigation" is used in Main Menu and in Game Menu.
Therefore if you change anything related to "screen navigation", it shows in all menu screens of Main Menu and Game Menu.
The easiest way to change the title screen but not affect other screens is to replace "use navigation" in "screen main_menu" with some custom layout. For example:
Code: Select all
screen main_menu():
tag menu
add gui.main_menu_background
frame:
style "main_menu_frame"
#use navigation WAS HERE :-)
vbox:
textbutton _("Start") action Start()
textbutton _("Load") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("About") action ShowMenu("about")
if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
textbutton _("Help") action ShowMenu("help")
if renpy.variant("pc"):
textbutton _("Quit") action Quit(confirm=not main_menu)
Code: Select all
#use navigation
vbox:
pos (1000, 600)
textbutton _("Start") action Start()
#...and so on
If the problem is solved, please edit the original post and add [SOLVED] to the title.
Re: [Problem] Moving the Options Buttons back in Place
Here is an example:
"gui.main_menu_background" in file "gui.rpy" is set to the background that you see in the screenshot.
The screens "navigation" and "game_menu" are left unchanged.
The "main_menu" screen is (vbox is changed to hbox, as another example of possible modifications):
"gui.main_menu_background" in file "gui.rpy" is set to the background that you see in the screenshot.
The screens "navigation" and "game_menu" are left unchanged.
The "main_menu" screen is (vbox is changed to hbox, as another example of possible modifications):
Code: Select all
screen main_menu():
tag menu
add gui.main_menu_background
hbox:
style_prefix "title_menu"
textbutton _("Start") action Start()
textbutton _("Load") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("About") action ShowMenu("about")
if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
textbutton _("Help") action ShowMenu("help")
if renpy.variant("pc"):
textbutton _("Quit") action Quit(confirm=not main_menu)
if gui.show_name:
vbox:
style "main_menu_vbox"
text "[config.name!t]":
style "main_menu_title"
text "[config.version]":
style "main_menu_version"
style title_menu_hbox:
align (0.5, 0.0)
spacing 24
style title_menu_button_text:
color "#CC9"
hover_color "#FFC"
outlines [(3, "#3333")]
size 64
If the problem is solved, please edit the original post and add [SOLVED] to the title.
- Zodiac_Stories
- Newbie
- Posts: 17
- Joined: Mon Mar 05, 2018 9:26 pm
- Completed: Flower of the North Star, Pnígike Paradise
- IRC Nick: Zodie
- Deviantart: EillaThePortalMaker
- itch: https://zodiacstorie
- Contact:
Re: [Problem] Moving the Options Buttons back in Place
Thanks! It works wonderfullyjeffster wrote: ↑Thu Feb 29, 2024 2:14 am In file "screens.rpy" there is "screen main_menu".
It has a line "use navigation".
"screen navigation" is used in Main Menu and in Game Menu.
Therefore if you change anything related to "screen navigation", it shows in all menu screens of Main Menu and Game Menu.
The easiest way to change the title screen but not affect other screens is to replace "use navigation" in "screen main_menu" with some custom layout. For example:Then you can add some "style" to this vbox and change its position etc., for example:Code: Select all
screen main_menu(): tag menu add gui.main_menu_background frame: style "main_menu_frame" #use navigation WAS HERE :-) vbox: textbutton _("Start") action Start() textbutton _("Load") action ShowMenu("load") textbutton _("Preferences") action ShowMenu("preferences") textbutton _("About") action ShowMenu("about") if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")): textbutton _("Help") action ShowMenu("help") if renpy.variant("pc"): textbutton _("Quit") action Quit(confirm=not main_menu)
Code: Select all
#use navigation vbox: pos (1000, 600) textbutton _("Start") action Start() #...and so on
I make worlds filled with Monsters so you can be the Hero
- Zodiac_Stories
- Newbie
- Posts: 17
- Joined: Mon Mar 05, 2018 9:26 pm
- Completed: Flower of the North Star, Pnígike Paradise
- IRC Nick: Zodie
- Deviantart: EillaThePortalMaker
- itch: https://zodiacstorie
- Contact:
Re: [Problem] Moving the Options Buttons back in Place
Thanks!jeffster wrote: ↑Thu Feb 29, 2024 2:45 am Here is an example:
"gui.main_menu_background" in file "gui.rpy" is set to the background that you see in the screenshot.
The screens "navigation" and "game_menu" are left unchanged.
The "main_menu" screen is (vbox is changed to hbox, as another example of possible modifications):Code: Select all
screen main_menu(): tag menu add gui.main_menu_background hbox: style_prefix "title_menu" textbutton _("Start") action Start() textbutton _("Load") action ShowMenu("load") textbutton _("Preferences") action ShowMenu("preferences") textbutton _("About") action ShowMenu("about") if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")): textbutton _("Help") action ShowMenu("help") if renpy.variant("pc"): textbutton _("Quit") action Quit(confirm=not main_menu) if gui.show_name: vbox: style "main_menu_vbox" text "[config.name!t]": style "main_menu_title" text "[config.version]": style "main_menu_version" style title_menu_hbox: align (0.5, 0.0) spacing 24 style title_menu_button_text: color "#CC9" hover_color "#FFC" outlines [(3, "#3333")] size 64
I make worlds filled with Monsters so you can be the Hero
Re: [Solved] Moving the Options Buttons back in Place
You are welcome.
If the problem is solved, please edit the original post and add [SOLVED] to the title.
Who is online
Users browsing this forum: No registered users