- May 27, 2018
- 91
- 79
hello,
this is more a modder than developer question.
I want to "define" a screen, specifically:
but only if config.version == "some-game-name", else there should not be "defined" a screen with the name "game_menu".
(The case I need this screen with is RenPy 7.4.8)
1)
I know a ~little~ about renpy.define_screen()...
The label could be done as ui.text() I think, but this screen is being used and want to transclude.
and it want to use another screen itself.
Are there python equivalent for "transclude" and "use"?
2)
I fumbled a bit with defining a screen with a different name, and later on deepcopy it and then change the name in a python-block.
I kinda got this to work, but it's super dirty and e.g. requires me to "delete" the cache/screens.rpyb every init.
I think this is a dead end...any other ideas how I could trick RenPy?
thanks Mattock
this is more a modder than developer question.
I want to "define" a screen, specifically:
Python:
init 11 screen game_menu( title = "" ):# or#screen game_menu( title ):
tag menu
use navigation
label title align ( 0.98, 0.3 ) text_size ( stdTxtSize + smallTxtSize )
transclude
(The case I need this screen with is RenPy 7.4.8)
1)
I know a ~little~ about renpy.define_screen()...
The label could be done as ui.text() I think, but this screen is being used and want to transclude.
and it want to use another screen itself.
Are there python equivalent for "transclude" and "use"?
2)
I fumbled a bit with defining a screen with a different name, and later on deepcopy it and then change the name in a python-block.
I kinda got this to work, but it's super dirty and e.g. requires me to "delete" the cache/screens.rpyb every init.
I think this is a dead end...any other ideas how I could trick RenPy?
thanks Mattock