hey peeps, question for bad ass problem-solvers:
I have the following main_menu
what I want to do when I click (let's say) the settings, is to default to the bg / screen I have for the game_menu
but right now I get the bg from the Main_Menu
how can I have the desired bg?
Question for bad ass problem-solvers: Different bgs in Main_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.
-
- Regular
- Posts: 137
- Joined: Mon Sep 09, 2019 10:31 am
- Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
- Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
- Organization: Funigami
- itch: funigami
- Discord: alexei#5190
- Contact:
Re: Question for bad ass problem-solvers: Different bgs in Main_Menu
Check gui.rpy for this lines
and set game menu bg to desirable image.
There should be this lines in game_menu screen that will use apropriate bg image
Code: Select all
## Main and Game Menus #########################################################
## The images used for the main and game menus.
define gui.main_menu_background = "gui/main_menu.png"
define gui.game_menu_background = "gui/game_menu.png"
There should be this lines in game_menu screen that will use apropriate bg image
Code: Select all
screen game_menu(title, scroll=None, yinitial=0.0):
style_prefix "game_menu"
if main_menu:
add gui.main_menu_background
else:
add gui.game_menu_background
-
- Regular
- Posts: 137
- Joined: Mon Sep 09, 2019 10:31 am
- Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
- Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
- Organization: Funigami
- itch: funigami
- Discord: alexei#5190
- Contact:
Re: Question for bad ass problem-solvers: Different bgs in Main_Menu
that's not what I asked.Alex wrote: ↑Thu Sep 16, 2021 7:21 am Check gui.rpy for this linesand set game menu bg to desirable image.Code: Select all
## Main and Game Menus ######################################################### ## The images used for the main and game menus. define gui.main_menu_background = "gui/main_menu.png" define gui.game_menu_background = "gui/game_menu.png"
There should be this lines in game_menu screen that will use apropriate bg imageCode: Select all
screen game_menu(title, scroll=None, yinitial=0.0): style_prefix "game_menu" if main_menu: add gui.main_menu_background else: add gui.game_menu_background
-
- Regular
- Posts: 137
- Joined: Mon Sep 09, 2019 10:31 am
- Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
- Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
- Organization: Funigami
- itch: funigami
- Discord: alexei#5190
- Contact:
Re: Question for bad ass problem-solvers: Different bgs in Main_Menu
I found the solution.
so, that's what I had to do.
so, that's what I had to do.
Code: Select all
screen game_menu(title, scroll=None, yinitial=0.0):
style_prefix "game_menu"
if renpy.get_screen("main_menu"):
add gui.main_menu_background
elif renpy.get_screen('history') or renpy.get_screen('about'):
add "gui/historybg.png"
elif renpy.get_screen('preferences'):
add "gui/settingsbg.png"
else:
add gui.game_menu_background
Who is online
Users browsing this forum: Google [Bot], Lucyper, Majestic-12 [Bot]