Hide flavor text bar per frame pack

This commit is contained in:
Josh Birnholz
2023-08-01 11:03:52 -04:00
parent 39a3516bf0
commit 8d7621ea79
16 changed files with 17 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ async function resetCardIrregularities({canvas = [getStandardWidth(), getStandar
card.bottomInfoZoom = 1;
replacementMasks = {};
card.hideBottomInfoBorder = false;
card.showsFlavorBar = true;
//rotation
if (card.landscape) {
// previewContext.scale(card.width/card.height, card.height/card.width);
@@ -2775,7 +2776,7 @@ function writeText(textObject, targetContext) {
}
if (card.version == 'pokemon') {
rawText = rawText.replace(/{flavor}/g, '{oldflavor}{fontsize-20}{fontgillsansbolditalic}');
} else if (autoFramePack == 'Seventh' || autoFramePack == '8th' || card.version == 'invocation' || card.version == "storybook_mul" || card.version == 'tardis') {
} else if (!card.showsFlavorBar) {
rawText = rawText.replace(/{flavor}/g, '{oldflavor}');
}
rawText = rawText.replace(/ - /g, ' — ');