diff --git a/img/frames/modal/helper/regular.png b/img/frames/modal/helper/regular.png new file mode 100644 index 00000000..5dc308c2 Binary files /dev/null and b/img/frames/modal/helper/regular.png differ diff --git a/img/frames/modal/helper/regularThumb.png b/img/frames/modal/helper/regularThumb.png new file mode 100644 index 00000000..05c24a3b Binary files /dev/null and b/img/frames/modal/helper/regularThumb.png differ diff --git a/js/frames/groupModal-1.js b/js/frames/groupModal-1.js index f97f0e14..f6f88bf2 100644 --- a/js/frames/groupModal-1.js +++ b/js/frames/groupModal-1.js @@ -10,5 +10,7 @@ loadFramePacks([ {name:'Inner Crowns', value:'M15InnerCrowns'}, {name:'Holo Stamps', value:'M15HoloStamps'}, {name:'Dark Power/Toughness', value:'M15DarkPT'}, - {name:'Colored Borders', value:'M15Borders'} + {name:'Colored Borders', value:'M15Borders'}, + {name:'Misc', value:'disabled'}, + {name:'Helper Cards', value:'ModalHelper'} ]) \ No newline at end of file diff --git a/js/frames/packModalHelper.js b/js/frames/packModalHelper.js new file mode 100644 index 00000000..28cf0045 --- /dev/null +++ b/js/frames/packModalHelper.js @@ -0,0 +1,33 @@ +//Create objects for common properties across available frames +//defines available frames +availableFrames = [ + {name:'Frame', src:'/img/frames/modal/helper/regular.png'} +]; +//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 = 'modalRegular'; + //art bounds + card.artBounds = {x:0, y:0, width:1, height:1}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.5, y:0.9524, width:0.12, height:0.0410, 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:0.081, width:0.9234, height:99/2100, oneLine:true, size:99/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:0.22, y:0.0791, width:0.69, height:0.0534, oneLine:true, font:'belerenb', size:0.0534}, + mana2: {name:'Mana Cost 2', text:'', y:0.1696, width:0.9234, height:99/2100, oneLine:true, size:99/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title2: {name:'Title 2', text:'', x:0.22, y:0.1681, width:0.69, height:0.0534, oneLine:true, font:'belerenb', size:0.0534}, + rules: {name:'Rules Text', text:'', x:0.0914, y:0.2439, width:0.8174, height:0.6762, size:0.0362}, + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packModalRegular.js b/js/frames/packModalRegular.js index 592f1028..47531388 100644 --- a/js/frames/packModalRegular.js +++ b/js/frames/packModalRegular.js @@ -57,8 +57,4 @@ document.querySelector('#loadFrameVersion').onclick = async function() { }); } //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 +loadFramePack(); \ No newline at end of file