Sequencer shortcuts and markup tags
Posted: Fri May 22, 2020 12:29 am
Hi Tony,
I was wondering if you could shed some light on what exactly occurs when playing a sequence which uses a shortcut, which itself contains markup tags? Specifically...
Play Sequence:
TaggedShortcut:
I noticed in the Sequencer.cs script that markup tags are replaced before the shortcut:
Yet, I'm using markup tags in several of my shortcuts and they seem to be working fine. Just looking to understand better what's happening to make those work properly.
Thanks!
I was wondering if you could shed some light on what exactly occurs when playing a sequence which uses a shortcut, which itself contains markup tags? Specifically...
Play Sequence:
Code: Select all
{{TaggedShortcut}}
Code: Select all
SetActive([var=Test.ObjectName],true);
Code: Select all
// Replace [var=varName] and [lua()] tags:
sequence = FormattedText.ParseCode(sequence);
// Replace shortcuts:
sequence = ReplaceShortcuts(sequence);
if (DialogueDebug.logWarnings && sequence.Contains("{{")) ReportUnrecognizedShortcuts(sequence);
Thanks!