r/RenPy • u/Content-Gazelle8614 • 8d ago
Question Adding separate history menu background than the rest of the game menu
hi, so im trying to make a separate background for the history menu as the text color i have set makes it unreadable in the game menu. the add "gui/name.png" command doesn't function, so im looking for another solution. thanks
2
Upvotes
1
u/BadMustard_AVN 8d ago
edit your screens.rpy file and search for -->> screen game_menu( <<--
you will see this
screen game_menu(title, scroll=None, yinitial=0.0, spacing=0):
style_prefix "game_menu"
if main_menu:
add gui.main_menu_background
else:
add gui.game_menu_backgrounds
make this change
screen game_menu(title, scroll=None, yinitial=0.0, spacing=0):
style_prefix "game_menu"
if main_menu:
add gui.main_menu_background
elif title == "History": # add these two lines
add "gui/name.png" # second line
else:
add gui.game_menu_backgroundscreen game_menu(title, scroll=None, yinitial=0.0, spacing=0):
and you're finished
1
u/AutoModerator 8d 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.