Skip to content

Instantly share code, notes, and snippets.

@renpytom
Created September 16, 2019 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renpytom/559ace3a2764bf080c26b5089c79fc20 to your computer and use it in GitHub Desktop.
Save renpytom/559ace3a2764bf080c26b5089c79fc20 to your computer and use it in GitHub Desktop.
screen nvl(dialogue, items=None):
window:
style "nvl_window"
has vbox:
spacing gui.nvl_spacing
viewport:
scrollbars "vertical"
yinitial 1.0
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment