I'm using the new GUI and having trouble adjusting the NVL mode. I want it to dissolve in and out, but wait for the transition to fully play before the text begins to appear. It's quite off-putting seeing the NVL mode disappear with text already playing out underneath it. I know I could add a pause after every time I use NVL mode, but that would be a bit of a pain. I also want to do it into and out of NVL mode.
Here's what I have at the moment:
Code: Select all
screen nvl(dialogue, items=None):
window:
style "nvl_window"
has vbox:
spacing gui.nvl_spacing
## Displays dialogue in either a vpgrid or the vbox.
if gui.nvl_height:
vpgrid:
cols 1
yinitial 1.0
use nvl_dialogue(dialogue)
else:
use nvl_dialogue(dialogue)
## Displays the menu, if given. The menu may be displayed incorrectly if
## config.narrator_menu is set to True, as it is above.
for i in items:
textbutton i.caption:
action i.action
style "nvl_button"
add SideImage() xalign 0.0 yalign 1.0
on "show" action With(dissolve)
on "hide" action With(dissolve)