Skip to content

Instantly share code, notes, and snippets.

@alicerunsonfedora
Created January 17, 2020 16:17
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 alicerunsonfedora/c441d414de9b69cecd08ca2c09d4cef8 to your computer and use it in GitHub Desktop.
Save alicerunsonfedora/c441d414de9b69cecd08ca2c09d4cef8 to your computer and use it in GitHub Desktop.
Modified notify screen to do a permanent notification
# Modded Notify
default notify_timeout = 3.25
screen notify(message):
zorder 100
style_prefix "notify"
frame at notify_appear:
text message
if notify_timeout:
timer notify_timeout action Hide('notify')
# Example usage
label aaa:
"I'm going to make a permanent remark."
python:
notify_timeout = None
renpy.notify("Well, I fucked up.")
"Okay, maybe having that permanent remark is a bad idea..."
python:
notify_timeout = 3.25
renpy.hide('notify')
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment