diff --git a/creator/index.html b/creator/index.html index d8b18358..0a5a58ee 100644 --- a/creator/index.html +++ b/creator/index.html @@ -228,6 +228,7 @@
{lns}
Moves to the next line without an extra space (stands for line-no-space)
{divider}
Moves to the next line and draws the flavor text bar
{flavor}
Moves to the next line, draws the flavor text bar, and italicizes
+
{oldflavor}
Italicizes and adds line breaks
{fontsize#pt}
Changes the font size to #pt (absolute)
{fontsize#}
Changes the font size by # pixels (relative - use negative integers to shrink text - ie '{fontsize-12}')
{fontcolor___}
Changes the font color to ___ (ie '{fontcolor#00FF00}')
diff --git a/js/creator-23.js b/js/creator-23.js index b9a01991..567692d7 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -905,7 +905,7 @@ function writeText(textObject, targetContext) { if (rawText.includes('//')) { rawText = rawText.replace('//', '{lns}'); } - var splitText = rawText.replace(/\n/g, '{line}').replace(/{-}/g, '\u2014').replace(/{divider}/g, '{/indent}{lns}{bar}{lns}{fixtextalign}').replace(/{flavor}/g, '{/indent}{lns}{bar}{lns}{fixtextalign}{i}').replace(/{/g, splitString + '{').replace(/}/g, '}' + splitString).replace(/ /g, splitString + ' ' + splitString).split(splitString); + var splitText = rawText.replace(/\n/g, '{line}').replace(/{-}/g, '\u2014').replace(/{divider}/g, '{/indent}{lns}{bar}{lns}{fixtextalign}').replace(/{flavor}/g, '{/indent}{lns}{bar}{lns}{fixtextalign}{i}').replace(/{oldflavor}/g, '{/indent}{lns}{lns}{up30}{i}').replace(/{/g, splitString + '{').replace(/}/g, '}' + splitString).replace(/ /g, splitString + ' ' + splitString).split(splitString); splitText = splitText.filter(item => item); if (textObject.vertical) { newSplitText = [];