I'm trying to make a single close button for all screens, I mean I want an only single close button to close more screens once a time.
Something like:
Code: Select all
textbutton "Close Screen" action Hide("[Selected_Screen]")Code: Select all
textbutton "Close Screen" action Hide("[Selected_Screen]")Code: Select all
button action Function(renpy.scene)
You can have more than one action to a button, so you could do thisiDweadith wrote: ↑Tue Jun 09, 2020 1:45 pmGuys I'm sorry my english is not good and that's hard to explain so I try
I'm trying to make a single close button for all screens, I mean I want an only single close button to close more screens once a time.
Something like:
Can you help me?Code: Select all
textbutton "Close Screen" action Hide("[Selected_Screen]")
Code: Select all
textbutton "Close Screen" action [ Hide("screen1"), Hide("screen2"), Hide("screen3"), Hide("screen4"), Hide("screen5") ] I can't check right now but if I recall correctly: By default the scene function will only clear the master layer, however by changing it slightly to be Function(renpy.scene, layer='screens') I believe that would instead hide everything on the screens layer, which in the majority of cases will include all screens. If a more complex layering system is being used this may not have the desired effect, so ymmv.hell_oh_world wrote: ↑Tue Jun 09, 2020 7:04 pmScene clears the screen for you. It removes all currently showed images, and i think it includes screens too.
Users browsing this forum: Bing [Bot], Google [Bot]