Created
January 17, 2020 16:17
-
-
Save alicerunsonfedora/c441d414de9b69cecd08ca2c09d4cef8 to your computer and use it in GitHub Desktop.
Modified notify screen to do a permanent notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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