mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Add old frame flavor code
This commit is contained in:

committed by
Josh birnholz

parent
0f8ef0b7e7
commit
9634208099
@@ -228,6 +228,7 @@
|
|||||||
<h5>{lns}</h5><h5>Moves to the next line without an extra space (stands for line-no-space)</h5>
|
<h5>{lns}</h5><h5>Moves to the next line without an extra space (stands for line-no-space)</h5>
|
||||||
<h5>{divider}</h5><h5>Moves to the next line and draws the flavor text bar</h5>
|
<h5>{divider}</h5><h5>Moves to the next line and draws the flavor text bar</h5>
|
||||||
<h5>{flavor}</h5><h5>Moves to the next line, draws the flavor text bar, and italicizes</h5>
|
<h5>{flavor}</h5><h5>Moves to the next line, draws the flavor text bar, and italicizes</h5>
|
||||||
|
<h5>{oldflavor}</h5><h5>Italicizes and adds line breaks</h5>
|
||||||
<h5>{fontsize#pt}</h5><h5>Changes the font size to #pt (absolute)</h5>
|
<h5>{fontsize#pt}</h5><h5>Changes the font size to #pt (absolute)</h5>
|
||||||
<h5>{fontsize#}</h5><h5>Changes the font size by # pixels (relative - use negative integers to shrink text - ie '{fontsize-12}')</h5>
|
<h5>{fontsize#}</h5><h5>Changes the font size by # pixels (relative - use negative integers to shrink text - ie '{fontsize-12}')</h5>
|
||||||
<h5>{fontcolor___}</h5><h5>Changes the font color to ___ (ie '{fontcolor#00FF00}')</h5>
|
<h5>{fontcolor___}</h5><h5>Changes the font color to ___ (ie '{fontcolor#00FF00}')</h5>
|
||||||
|
@@ -905,7 +905,7 @@ function writeText(textObject, targetContext) {
|
|||||||
if (rawText.includes('//')) {
|
if (rawText.includes('//')) {
|
||||||
rawText = rawText.replace('//', '{lns}');
|
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);
|
splitText = splitText.filter(item => item);
|
||||||
if (textObject.vertical) {
|
if (textObject.vertical) {
|
||||||
newSplitText = [];
|
newSplitText = [];
|
||||||
|
Reference in New Issue
Block a user