Relative newbie here, I tried poking around in the Documentation, but I got stuck. Or rather, found a workaround, but for future reference, want to understand why my original idea didn't work.
I was trying to make a popup (sub)menu that appears on top of the main menu screen, and then hides itself once one of its buttons is clicked which calls another game menu. I thought it would be as simple as calling the popup screen with ShowTransient, because the documentation says:
But the popup screen sticks around on top of the newly loaded menu. (I figured I can hide it manually, so that's fine.)ShowTransient(screen, transition=None, *args, **kwargs)
Shows a transient screen. A transient screen will be hidden when the current interaction completes. (...)
But now I wonder, why doesn't ShowTransient hide it? I suspect the interaction is not over with clicking a button. But then what is an interaction in Ren'Py exactly?
Just in case, here's a snippet of my code:
Code: Select all
screen navigation():
#blah blah usual stuff
textbutton "Extra" action ShowTransient("extra")
screen extra():
#Didn't use tag menu, I do want it to show on top of the main menu screen!
frame:
textbutton "Endings" action ShowMenu("endings")
# textbutton "Endings" action [Hide("Extra"), ShowMenu("endings")] # manually hiding the popup
textbutton "Gallery" action ShowMenu("gallery")
screen endings():
tag menu #replacing the main menu screen
use game_menu("Endings"):
text "Endings list."
#contents
