I wanna to change background on settings screen, but it use game menu style that is using game menu background for all game menus like save or load.
if i turn off "use game_menu" then it lose all things like navigation menu and align of all properties but with this i can change backround but ofc i want to do it less painful way but i just can't understand how to do it....PLS HELP T_T
[SOLVED] Background in game menu
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.
- lentlen
- Newbie
- Posts: 13
- Joined: Fri Jan 24, 2020 9:27 pm
- Completed: Shoot in the head (ru)
- Projects: Backerei
- Discord: lentlen#1606
- Contact:
[SOLVED] Background in game menu
Last edited by lentlen on Thu Aug 05, 2021 8:45 am, edited 1 time in total.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Background in game menu
In your game_menu screen, adjust it to look for what screen is currently showing.
This is what you should see in a new project
Adjust that to this:
Where "my image" is a file path - example "gui/settings_background.jpg"
or you could do it this way
Somewhere in gui.rpy, paste this
Then make your screen like this:
This is what you should see in a new project
Code: Select all
if main_menu:
add gui.main_menu_background
else:
add gui.game_menu_background
Code: Select all
if main_menu:
add gui.main_menu_background
elif renpy.get_screen("preferences"):
add "my image"
else:
add gui.game_menu_background
or you could do it this way
Somewhere in gui.rpy, paste this
Code: Select all
default gui.settings_menu_background = "gui/settings_background.jpg"
Code: Select all
if main_menu:
add gui.main_menu_background
elif renpy.get_screen("preferences"):
add gui.settings_menu_background
else:
add gui.game_menu_background
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- lentlen
- Newbie
- Posts: 13
- Joined: Fri Jan 24, 2020 9:27 pm
- Completed: Shoot in the head (ru)
- Projects: Backerei
- Discord: lentlen#1606
- Contact:
Re: Background in game menu
wow, i'll try it, it's again easy af or im just too dumb lol.
it was kinda hard but it worked! thanks!
it was kinda hard but it worked! thanks!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]