So I am almost complete with my project I just am looking for a way to change the about screen to have its own background image. but it just keeps using the main menu image instead.
Some of you may know how much I have destroyed this programs code, just looking for a nudge in the right direction to replacing it.
Thank you all again for your help.
Change the about screen background [solved]
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.
-
- Regular
- Posts: 62
- Joined: Thu Apr 13, 2017 6:47 am
- Contact:
Change the about screen background [solved]
Last edited by kahmehkahzeh on Thu Apr 27, 2017 3:01 am, edited 1 time in total.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Change the about screen background
Code: Select all
add gui.main_menu_background
Note, the overlay menu will still show (the half transparent bar on the left)
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
-
- Regular
- Posts: 62
- Joined: Thu Apr 13, 2017 6:47 am
- Contact:
Re: Change the about screen background
okay I have a main menu image and a game menu issue, but no matter what I try from the MAIN menu when I click about it keeps the main menu image and no matter what I try does not change.
I even tried this
I even tried this
Code: Select all
add gui.game_menu_background
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: Change the about screen background
The about screen is still part of "game menu", therefore it using the game menu background for this. You have to adjust that in "screen game_menu()" under "screens.rpy"
Code: Select all
screen game_menu(title, scroll=None):
style_prefix "game_menu"
if main_menu:
add gui.main_menu_background
## Add these lines ###################
elif renpy.get_screen("about"):
add "my_custom_background.png"
######################################
else:
add gui.game_menu_background
. . .
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Change the about screen background
Whoops, I left out some details and made a mistake. It was 3:30am and that's my excuse .kahmehkahzeh wrote:okay I have a main menu image and a game menu issue, but no matter what I try from the MAIN menu when I click about it keeps the main menu image and no matter what I try does not change.
I even tried thisCode: Select all
add gui.game_menu_background
Anyway, follow Divona's advice.
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
-
- Regular
- Posts: 62
- Joined: Thu Apr 13, 2017 6:47 am
- Contact:
Re: Change the about screen background
Before you posted this I did something and it works... but your method also worked on a dummy project thank you!
Who is online
Users browsing this forum: apocolocyntose, DewyNebula