If I show it on the overlay layer, it works, except that subsequent interactions like character dialogue dismiss it prematurely. I'm trying instead to stick it on a new layer, but then I can't seem to dismiss it, and it just hangs around forever.
I added a new layer
Code: Select all
init:
python:
config.top_layers = ['popupnotice']
Code: Select all
screen mynotice(boxtext):
tag mynoticealert
fixed:
image "sp/noticebg.png" at Position(xpos=0.85, ypos=0.1, xanchor=0.5, yanchor=0.5)
text boxtext id "noticetext" at Position(xpos=0.85, ypos=0.1, xanchor=0.5, yanchor=0.5) xmaximum 290 ymaximum 90
timer 3.0 action Hide("mynotice")
Code: Select all
def execute_notice(what):
renpy.show_screen("mynotice", _layer="overlay", boxtext=what)
Code: Select all
def execute_notice(what):
renpy.show_screen("mynotice", _layer="popupnotice", boxtext=what)