How can I achieve Tsukihime-style text tabbing like this:
Code: Select all
This...
Is...
Really...
Strange!
Code: Select all
This...
Is...
Really...
Strange!
Code: Select all
init:
python:
renpy.load_module("ctextags") # Loads the Custom Text Tags module
def tab(arg, text): # This function will handle the custom {tab=something} tag
return " " * int(arg)
custom_text_tags["tab"] = (False, tab) # "Registers" the function, pairing it with the "{tab}" tag
config.say_menu_text_filter = cttfilter # Kindly asks Ren'py to parse our custom tags on every say and menu statement
would become:PyTom wrote:"No spaces\n
\ \ \ \ Four Spaces\n
\ \ \ \ \ \ \ \ Eight spaces\n
\ \ \ \ \ \ \ \ \ \ \ \ etc."
Code: Select all
"No spaces\n
{tab=4}Four Spaces\n
{tab=8}Eight spaces\n
{tab=12}etc."
Code: Select all
No spaces
Four Spaces
Eight spaces
etc.
Users browsing this forum: Bing [Bot]