mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Hide flavor text bar per frame pack
This commit is contained in:
@@ -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, ' — ');
|
||||
|
@@ -39,6 +39,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = '8th';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0.088, y:0.12, width:0.824, height:0.4348};
|
||||
autoFitArt();
|
||||
|
@@ -24,6 +24,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = '8thColorshifted';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0.088, y:0.12, width:0.824, height:0.4348};
|
||||
autoFitArt();
|
||||
|
@@ -28,6 +28,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'abu';
|
||||
card.showsFlavorBar = false;
|
||||
loadScript('/js/frames/manaSymbolsOld.js');
|
||||
//art bounds
|
||||
card.artBounds = {x:0.116, y:0.1043, width:0.7654, height:0.441};
|
||||
|
@@ -20,6 +20,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'fourth';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0.1034, y:0.0886, width:0.794, height:0.4543};
|
||||
autoFitArt();
|
||||
|
@@ -33,6 +33,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'futureRegular';
|
||||
card.showsFlavorBar = false;
|
||||
loadScript('/js/frames/manaSymbolsFuture.js');
|
||||
// notify('The Future version adds special mana symbols. To use them, place an "F" before the following mana symbols: wubrg, 0-20, x, and hybrid mana symbols.');
|
||||
//art bounds
|
||||
|
@@ -32,6 +32,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'invocation';
|
||||
card.showsFlavorBar = false;
|
||||
loadScript('/js/frames/manaSymbolsOutline.js');
|
||||
//art bounds
|
||||
card.artBounds = {x:173/1500, y:313/2100, width:1150/1500, height:819/2100};
|
||||
|
@@ -10,6 +10,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'legends';
|
||||
card.showsFlavorBar = false;
|
||||
loadScript('/js/frames/manaSymbolsOld.js');
|
||||
//art bounds
|
||||
card.artBounds = {x:0.1074, y:0.0924, width:0.7854, height:0.4524};
|
||||
|
@@ -28,6 +28,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'oldFloating';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0, y:0, width:1, height:1};
|
||||
autoFitArt();
|
||||
|
@@ -28,6 +28,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'oldFloatingShort';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0, y:0, width:1, height:1};
|
||||
autoFitArt();
|
||||
|
@@ -24,6 +24,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'playtest';
|
||||
card.showsFlavorBar = false;
|
||||
loadScript('/js/frames/manaSymbolsOutline.js');
|
||||
//art bounds
|
||||
card.artBounds = {x:0.132, y:0.1439, width:0.736, height:0.3362};
|
||||
|
@@ -47,6 +47,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'seventh';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0.12, y:0.0991, width:0.7667, height:0.4429};
|
||||
autoFitArt();
|
||||
|
@@ -47,6 +47,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'fifth';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0.12, y:0.0991, width:0.7667, height:0.4429};
|
||||
autoFitArt();
|
||||
|
@@ -31,6 +31,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'seventhSnowLands';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:0.12, y:0.0991, width:0.7667, height:0.4429};
|
||||
autoFitArt();
|
||||
|
@@ -39,6 +39,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
replacementMasks = {'Right Half':'img/frames/storybook/mul/rightHalf.png'};
|
||||
//sets card version
|
||||
card.version = 'storybook_mul';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:54/1500, y:62/2100, width:1398/1500, height:1157/2100};
|
||||
autoFitArt();
|
||||
|
@@ -32,6 +32,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
||||
await resetCardIrregularities();
|
||||
//sets card version
|
||||
card.version = 'tardis';
|
||||
card.showsFlavorBar = false;
|
||||
//art bounds
|
||||
card.artBounds = {x:115/1500, y:264/2100, width:1271/1500, height:898/2100};
|
||||
autoFitArt();
|
||||
|
Reference in New Issue
Block a user