if the rest of screens.rpy is standard, the load() and preferences() screens still use the navigation() screen and therefore you have these entries at the left sideI've created text buttons to appear on the main menu. However, when transitioning to the preferences menu, these buttons refuse to disappear, even though the title, subtitle and version do. I'd like these buttons to be removed when the "Preferences" or "Load" menu is opened.
You don't have permission to view the spoiler content. Log in or register now.
Thank you.
How do I verify which is using the navigation screen? (aka how do I tell if navigation is being used in the main menu (note: var main_menu does not work for this).if the rest of screens.rpy is standard, the load() and preferences() screens still use the navigation() screen and therefore you have these entries at the left side
eg. the preferences screen: use game_menu(_("Preferences"), scroll="viewport") <- you basically include the preferences screen into game_menu() via the transclude entry thereHow do I verify which is using the navigation screen? (aka how do I tell if navigation is being used in the main menu (note: var main_menu does not work for this).
I'm more wondering if I can tell from within the navigation screen if the navigation is being used by the main menu or the preferences menu.eg. the preferences screen: use game_menu(_("Preferences"), scroll="viewport") <- you basically include the preferences screen into game_menu() via the transclude entry there
and in game_menu() there is the entry use navigation() <- this includes the navigation frame at the left side
i hope you understand what i mean, i'm really bad in explaining stuff
pass the title var to the navigation screenI'm more wondering if I can tell from within the navigation screen if the navigation is being used by the main menu or the preferences menu.
screen navigation(title=""):
if main_menu:
some code
if title == "Preferences":
some code
screen game_menu(title, scroll=None, yinitial=0.0):
some code
use navigation(title)
Thanks, that's exactly what I was looking for!pass the title var to the navigation screen
Code:screen navigation(title=""): if main_menu: some code if title == "Preferences": some code screen game_menu(title, scroll=None, yinitial=0.0): some code use navigation(title)