-
-
Save videlais/76b16d82a743f865f8950da49d6e0d77 to your computer and use it in GitHub Desktop.
Custom text tags
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
init python: | |
def big_tag(tag, argument, contents): | |
size = int(argument) * 20 | |
return [ | |
(renpy.TEXT_TAG, u"size={}".format(size)), | |
] + contents + [ | |
(renpy.TEXT_TAG, u"/size"), | |
] | |
config.custom_text_tags["big"] = big_tag | |
label start: | |
"This is {big=3}BIG!{/big}" | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment