In my game, I don't have hyperlinks, but I used the hyperlink template to add "show text when hovered" command when a word in dialogue is pointed at.
Something like this:
Code: Select all
style default:
properties gui.text_properties()
language gui.language
hyperlink_functions (lambda x: style.hyperlink_text, None, notifier)
style hyperlink_text:
properties gui.text_properties("hyperlink", accent=True)
hover_underline True
init python:
def notifier(arg):
if arg is None:
return
data = arg.split(':')
if data[0] == 'notify':
renpy.show_screen('notify', data[1])
renpy.restart_interaction()
the Auto mode in the game doesn't know how to ignore the text included in the "{a=notify:(...)}" and it reads it entirety.
So if I have a line of dialogue that goes like this:
"test test test"
and a one that goes like this:
"{a=notify:test test test test test test test test test test test test test test test}test{/a}"
the second line will take multiple times longer to be read by Auto mode. It basically makes Auto useless for me since it pretty much pauses the game for long periods.
Please help. ; (