diff --git a/img/frames/tardis/a.png b/img/frames/tardis/a.png new file mode 100644 index 00000000..bbc5278a Binary files /dev/null and b/img/frames/tardis/a.png differ diff --git a/img/frames/tardis/aThumb.png b/img/frames/tardis/aThumb.png new file mode 100644 index 00000000..b4559b41 Binary files /dev/null and b/img/frames/tardis/aThumb.png differ diff --git a/img/frames/tardis/b.png b/img/frames/tardis/b.png new file mode 100644 index 00000000..dc892cad Binary files /dev/null and b/img/frames/tardis/b.png differ diff --git a/img/frames/tardis/bThumb.png b/img/frames/tardis/bThumb.png new file mode 100644 index 00000000..af35f71f Binary files /dev/null and b/img/frames/tardis/bThumb.png differ diff --git a/img/frames/tardis/crowns/a.png b/img/frames/tardis/crowns/a.png new file mode 100644 index 00000000..7dd5922a Binary files /dev/null and b/img/frames/tardis/crowns/a.png differ diff --git a/img/frames/tardis/crowns/aThumb.png b/img/frames/tardis/crowns/aThumb.png new file mode 100644 index 00000000..809dc08a Binary files /dev/null and b/img/frames/tardis/crowns/aThumb.png differ diff --git a/img/frames/tardis/crowns/b.png b/img/frames/tardis/crowns/b.png new file mode 100644 index 00000000..2cd38298 Binary files /dev/null and b/img/frames/tardis/crowns/b.png differ diff --git a/img/frames/tardis/crowns/bThumb.png b/img/frames/tardis/crowns/bThumb.png new file mode 100644 index 00000000..caa45a4f Binary files /dev/null and b/img/frames/tardis/crowns/bThumb.png differ diff --git a/img/frames/tardis/crowns/g.png b/img/frames/tardis/crowns/g.png new file mode 100644 index 00000000..77a1b096 Binary files /dev/null and b/img/frames/tardis/crowns/g.png differ diff --git a/img/frames/tardis/crowns/gThumb.png b/img/frames/tardis/crowns/gThumb.png new file mode 100644 index 00000000..ee067759 Binary files /dev/null and b/img/frames/tardis/crowns/gThumb.png differ diff --git a/img/frames/tardis/crowns/m.png b/img/frames/tardis/crowns/m.png new file mode 100644 index 00000000..62881465 Binary files /dev/null and b/img/frames/tardis/crowns/m.png differ diff --git a/img/frames/tardis/crowns/mThumb.png b/img/frames/tardis/crowns/mThumb.png new file mode 100644 index 00000000..8005ae4c Binary files /dev/null and b/img/frames/tardis/crowns/mThumb.png differ diff --git a/img/frames/tardis/crowns/r.png b/img/frames/tardis/crowns/r.png new file mode 100644 index 00000000..f3bfc389 Binary files /dev/null and b/img/frames/tardis/crowns/r.png differ diff --git a/img/frames/tardis/crowns/rThumb.png b/img/frames/tardis/crowns/rThumb.png new file mode 100644 index 00000000..5703df33 Binary files /dev/null and b/img/frames/tardis/crowns/rThumb.png differ diff --git a/img/frames/tardis/crowns/u.png b/img/frames/tardis/crowns/u.png new file mode 100644 index 00000000..b0aa599c Binary files /dev/null and b/img/frames/tardis/crowns/u.png differ diff --git a/img/frames/tardis/crowns/uThumb.png b/img/frames/tardis/crowns/uThumb.png new file mode 100644 index 00000000..631b6803 Binary files /dev/null and b/img/frames/tardis/crowns/uThumb.png differ diff --git a/img/frames/tardis/crowns/w.png b/img/frames/tardis/crowns/w.png new file mode 100644 index 00000000..45595058 Binary files /dev/null and b/img/frames/tardis/crowns/w.png differ diff --git a/img/frames/tardis/crowns/wThumb.png b/img/frames/tardis/crowns/wThumb.png new file mode 100644 index 00000000..26dd20e2 Binary files /dev/null and b/img/frames/tardis/crowns/wThumb.png differ diff --git a/img/frames/tardis/g.png b/img/frames/tardis/g.png new file mode 100644 index 00000000..2886f0dc Binary files /dev/null and b/img/frames/tardis/g.png differ diff --git a/img/frames/tardis/gThumb.png b/img/frames/tardis/gThumb.png new file mode 100644 index 00000000..7a506b51 Binary files /dev/null and b/img/frames/tardis/gThumb.png differ diff --git a/img/frames/tardis/m.png b/img/frames/tardis/m.png new file mode 100644 index 00000000..c0acbd1e Binary files /dev/null and b/img/frames/tardis/m.png differ diff --git a/img/frames/tardis/mThumb.png b/img/frames/tardis/mThumb.png new file mode 100644 index 00000000..b00577aa Binary files /dev/null and b/img/frames/tardis/mThumb.png differ diff --git a/img/frames/tardis/pt.png b/img/frames/tardis/pt.png new file mode 100644 index 00000000..8c91a516 Binary files /dev/null and b/img/frames/tardis/pt.png differ diff --git a/img/frames/tardis/ptThumb.png b/img/frames/tardis/ptThumb.png new file mode 100644 index 00000000..c225bd44 Binary files /dev/null and b/img/frames/tardis/ptThumb.png differ diff --git a/img/frames/tardis/r.png b/img/frames/tardis/r.png new file mode 100644 index 00000000..82156224 Binary files /dev/null and b/img/frames/tardis/r.png differ diff --git a/img/frames/tardis/rThumb.png b/img/frames/tardis/rThumb.png new file mode 100644 index 00000000..2f6edbeb Binary files /dev/null and b/img/frames/tardis/rThumb.png differ diff --git a/img/frames/tardis/u.png b/img/frames/tardis/u.png new file mode 100644 index 00000000..2b56ab87 Binary files /dev/null and b/img/frames/tardis/u.png differ diff --git a/img/frames/tardis/uThumb.png b/img/frames/tardis/uThumb.png new file mode 100644 index 00000000..964dcb2a Binary files /dev/null and b/img/frames/tardis/uThumb.png differ diff --git a/img/frames/tardis/w.png b/img/frames/tardis/w.png new file mode 100644 index 00000000..e27b63da Binary files /dev/null and b/img/frames/tardis/w.png differ diff --git a/img/frames/tardis/wThumb.png b/img/frames/tardis/wThumb.png new file mode 100644 index 00000000..26346077 Binary files /dev/null and b/img/frames/tardis/wThumb.png differ diff --git a/img/frames/ubold/r.png b/img/frames/ubold/r.png new file mode 100644 index 00000000..b7ab9695 Binary files /dev/null and b/img/frames/ubold/r.png differ diff --git a/js/creator-23.js b/js/creator-23.js index 1c25957c..e282047b 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -2676,6 +2676,7 @@ function writeText(textObject, targetContext) { var textBounded = textObject.bounded || true; var textOneLine = textObject.oneLine || false; var textManaCost = textObject.manaCost || false; + var textAllCaps = textObject.allCaps || false; var textManaSpacing = scaleWidth(textObject.manaSpacing) || 0; //Buffers the canvases accordingly var canvasMargin = 300; @@ -2686,6 +2687,9 @@ function writeText(textObject, targetContext) { //Preps the text string var splitString = '6GJt7eL8'; var rawText = textObject.text + if (textAllCaps) { + rawText = rawText.toUpperCase(); + } if ((textObject.name == 'wizards' || textObject.name == 'copyright') && params.get('copyright') != null && (params.get('copyright') != '' || card.margins)) { rawText = params.get('copyright'); //so people using CC for custom card games without WotC's IP can customize their copyright info if (rawText == 'none') { rawText = ''; } @@ -2704,7 +2708,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") { + } else if (autoFramePack == 'Seventh' || autoFramePack == '8th' || card.version == 'invocation' || card.version == "storybook_mul" || card.version == 'tardis') { rawText = rawText.replace(/{flavor}/g, '{oldflavor}'); } rawText = rawText.replace(/ - /g, ' — '); diff --git a/js/frameSearch.js b/js/frameSearch.js index 969104b4..98fdd5e4 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -31,6 +31,7 @@ const frameNames = new Map ([ ['Colorshifted (Planar Chaos)', 'Colorshifted'], ['Brawl Legend Crowns', 'Brawl'], //showcase + ['TARDIS (WHO)', 'TARDIS'], ['Ring (LTR)', 'Ring'], ['Ixalan Coin (MOM)', 'IxalanCoin'], ['Ikoria Crystal (MOM)', 'Crystal'], diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index 84443956..fb7c271a 100644 --- a/js/frames/groupShowcase-5.js +++ b/js/frames/groupShowcase-5.js @@ -1,5 +1,6 @@ loadFramePacks([ {name:'Set Showcase Frames (Chronological)', value:'disabled'}, + {name:'TARDIS (WHO)', value:'TARDIS'}, {name:'Ring (LTR)', value:'Ring'}, {name:'Eldraine Storybooks (MOM)', value:'StorybookMUL'}, {name:'Ixalan Coin (MOM)', value:'IxalanCoin'}, diff --git a/js/frames/packTARDIS.js b/js/frames/packTARDIS.js new file mode 100644 index 00000000..e12be88d --- /dev/null +++ b/js/frames/packTARDIS.js @@ -0,0 +1,55 @@ +//Create objects for common properties across available frames +var masks = []; +var bounds = {x:115/1500, y:45/2100, width:1270/1500, height:450/2100}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/tardis/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/tardis/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/tardis/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/tardis/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/tardis/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/tardis/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/tardis/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/tardis/l.png', masks:masks}, + {name:'Power/Toughness', src:'/img/frames/tardis/pt.png', bounds:{x:1133/1500, y:1850/2100, width:299/1500, height:173/2100}}, + {name:'White Legendary Crown', src:'/img/frames/tardis/crowns/w.png', bounds:bounds}, + {name:'Blue Legendary Crown', src:'/img/frames/tardis/crowns/u.png', bounds:bounds}, + {name:'Black Legendary Crown', src:'/img/frames/tardis/crowns/b.png', bounds:bounds}, + {name:'Red Legendary Crown', src:'/img/frames/tardis/crowns/r.png', bounds:bounds}, + {name:'Green Legendary Crown', src:'/img/frames/tardis/crowns/g.png', bounds:bounds}, + {name:'Multicolored Legendary Crown', src:'/img/frames/tardis/crowns/m.png', bounds:bounds}, + {name:'Artifact Legendary Crown', src:'/img/frames/tardis/crowns/a.png', bounds:bounds}, + {name:'Land Legendary Crown', src:'/img/frames/tardis/crowns/l.png', bounds:bounds} +]; +//disables/enables the "Load Frame Version" button +document.querySelector('#loadFrameVersion').disabled = false; +//defines process for loading this version, if applicable +document.querySelector('#loadFrameVersion').onclick = async function() { + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'tardis'; + //art bounds + card.artBounds = {x:115/1500, y:264/2100, width:1271/1500, height:898/2100}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:1337/1500, y:1241/2100, width:86/1500, height:86/2100, vertical:'center', horizontal: 'center'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:131/2100, width:1390/1500, height:71/2100, oneLine:true, size:71/1638, align:'right', manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:0.0854, y:111/2100, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:79/2100, font:'gillsans', color:'white', allCaps:true}, + type: {name:'Type', text:'', x:0.0854, y:0.5664, width:1113/1500, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, font:'gillsans', color:'white', allCaps:true}, + rules: {name:'Rules Text', text:'', x:129/1500, y:1337/2100, width:1242/1500, height:578/2100, size:0.0362, color:'white'}, + pt: {name:'Power/Toughness', text:'', x:1193/1500, y:1891/2100, width:195/1500, height:78/2100, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'} + }); +} +//loads available frames +loadFramePack(); +//Only for the main version as the webpage loads: +if (!card.text) { + document.querySelector('#loadFrameVersion').click(); +} \ No newline at end of file