Skip to content

Instantly share code, notes, and snippets.

@renpytom
Created August 4, 2019 14:18
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/cbcd62a9714bc1d6020374aecb33b725 to your computer and use it in GitHub Desktop.
Save renpytom/cbcd62a9714bc1d6020374aecb33b725 to your computer and use it in GitHub Desktop.
default persistent.alternate_textbox = False
screen say(who, what):
style_prefix "say"
window:
id "window"
if persistent.alternate_textbox:
background "gui/alternate_textbox.png"
else:
background "gui/textbox.png"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what"
## If there's a side image, display it above the text. Do not display
## on the phone variant - there's no room.
if not renpy.variant("small"):
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