diff --git a/img/frames/custom/classicshifted/transform/a.png b/img/frames/custom/classicshifted/transform/a.png new file mode 100644 index 00000000..2e88e761 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/a.png differ diff --git a/img/frames/custom/classicshifted/transform/aThumb.png b/img/frames/custom/classicshifted/transform/aThumb.png new file mode 100644 index 00000000..07bdd04d Binary files /dev/null and b/img/frames/custom/classicshifted/transform/aThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/b.png b/img/frames/custom/classicshifted/transform/b.png new file mode 100644 index 00000000..3997d907 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/b.png differ diff --git a/img/frames/custom/classicshifted/transform/bThumb.png b/img/frames/custom/classicshifted/transform/bThumb.png new file mode 100644 index 00000000..fb729f8e Binary files /dev/null and b/img/frames/custom/classicshifted/transform/bThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/g.png b/img/frames/custom/classicshifted/transform/g.png new file mode 100644 index 00000000..cc75bf12 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/g.png differ diff --git a/img/frames/custom/classicshifted/transform/gThumb.png b/img/frames/custom/classicshifted/transform/gThumb.png new file mode 100644 index 00000000..82e67a1d Binary files /dev/null and b/img/frames/custom/classicshifted/transform/gThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/m.png b/img/frames/custom/classicshifted/transform/m.png new file mode 100644 index 00000000..08692582 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/m.png differ diff --git a/img/frames/custom/classicshifted/transform/mThumb.png b/img/frames/custom/classicshifted/transform/mThumb.png new file mode 100644 index 00000000..a78a69a2 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/mThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/r.png b/img/frames/custom/classicshifted/transform/r.png new file mode 100644 index 00000000..a520b04a Binary files /dev/null and b/img/frames/custom/classicshifted/transform/r.png differ diff --git a/img/frames/custom/classicshifted/transform/rThumb.png b/img/frames/custom/classicshifted/transform/rThumb.png new file mode 100644 index 00000000..628c4f99 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/rThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/transformIcon.png b/img/frames/custom/classicshifted/transform/transformIcon.png new file mode 100644 index 00000000..521776c2 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/transformIcon.png differ diff --git a/img/frames/custom/classicshifted/transform/transformIconThumb.png b/img/frames/custom/classicshifted/transform/transformIconThumb.png new file mode 100644 index 00000000..5c79bf93 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/transformIconThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/u.png b/img/frames/custom/classicshifted/transform/u.png new file mode 100644 index 00000000..dcbe98e8 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/u.png differ diff --git a/img/frames/custom/classicshifted/transform/uThumb.png b/img/frames/custom/classicshifted/transform/uThumb.png new file mode 100644 index 00000000..c12245d0 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/uThumb.png differ diff --git a/img/frames/custom/classicshifted/transform/w.png b/img/frames/custom/classicshifted/transform/w.png new file mode 100644 index 00000000..074ea2b0 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/w.png differ diff --git a/img/frames/custom/classicshifted/transform/wThumb.png b/img/frames/custom/classicshifted/transform/wThumb.png new file mode 100644 index 00000000..1532b636 Binary files /dev/null and b/img/frames/custom/classicshifted/transform/wThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index 388bef46..0e861aad 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -163,6 +163,7 @@ const frameNames = new Map ([ ['Classicshifted Planeswalkers', 'ClassicshiftedPlaneswalker'], ['Classicshifted Sagas', 'ClassicshiftedSaga'], ['Classicshifted MDFC Addons', 'ClassicshiftedDFC'], + ['Classicshifted Transform Addons', 'ClassicshiftedTransform'], ['Classicshifted Color Identity Pips', 'ClassicshiftedCIPips'], ['Colored Golden Age (SNC)', 'SNCGildedColored'], ['Textless Golden Age (SNC)', 'SNCGildedTextless'], diff --git a/js/frames/groupCustom.js b/js/frames/groupCustom.js index 606fa5b5..4b818408 100644 --- a/js/frames/groupCustom.js +++ b/js/frames/groupCustom.js @@ -14,6 +14,7 @@ loadFramePacks([ {name:'Classicshifted Planeswalkers', value:'ClassicshiftedPlaneswalker'}, {name:'Classicshifted Sagas', value:'ClassicshiftedSaga'}, {name:'Classicshifted MDFC Addons', value:'ClassicshiftedDFC'}, + {name:'Classicshifted Transform Addons', value:'ClassicshiftedTransform'}, {name:'Color Identity Pips', value:'ClassicshiftedCIPips'}, {name:'Showcase Frame Varients', value:'disabled'}, {name:'Colored Golden Age (SNC)', value:'SNCGildedColored'}, diff --git a/js/frames/packClassicshiftedTransform.js b/js/frames/packClassicshiftedTransform.js new file mode 100644 index 00000000..06862646 --- /dev/null +++ b/js/frames/packClassicshiftedTransform.js @@ -0,0 +1,54 @@ +//Create objects for common properties across available frames +var bounds = {x:0.9207, y:0.8405, width:0.0374, height:0.0429}; +var bounds2 = {x:0.072, y:0.0424, width:0.052, height:0.0372}; +//defines available frames +availableFrames = [ + {name:'Transform Icon', src:'/img/frames/custom/classicshifted/transform/transformIcon.png', bounds:{x:0.064, y:0.0367, width:0.068, height:0.0486}}, + {name:'White Transform Indicator', src:'/img/frames/custom/classicshifted/transform/w.png', bounds:bounds}, + {name:'Blue Transform Indicator', src:'/img/frames/custom/classicshifted/transform/u.png', bounds:bounds}, + {name:'Black Transform Indicator', src:'/img/frames/custom/classicshifted/transform/b.png', bounds:bounds}, + {name:'Red Transform Indicator', src:'/img/frames/custom/classicshifted/transform/r.png', bounds:bounds}, + {name:'Green Transform Indicator', src:'/img/frames/custom/classicshifted/transform/g.png', bounds:bounds}, + {name:'Multicolored Transform Indicator', src:'/img/frames/custom/classicshifted/transform/m.png', bounds:bounds}, + {name:'Artifact Transform Indicator', src:'/img/frames/custom/classicshifted/transform/a.png', bounds:bounds}, + {name:'Sun', src:'/img/frames/m15/transform/icons/sun.svg', bounds:bounds2}, + {name:'Crescent Moon', src:'/img/frames/m15/transform/icons/moon.svg', bounds:bounds2}, + {name:'Full Moon', src:'/img/frames/m15/transform/icons/fullmoon.svg', bounds:bounds2}, + {name:'Emrakul', src:'/img/frames/m15/transform/icons/emrakul.svg', bounds:bounds2}, + {name:'Compass', src:'/img/frames/m15/transform/icons/compass.svg', bounds:bounds2}, + {name:'Land', src:'/img/frames/m15/transform/icons/land.svg', bounds:bounds2}, + {name:'Planeswalker Ember', src:'/img/frames/m15/transform/icons/spark.svg', bounds:bounds2}, + {name:'Planeswalker Spark', src:'/img/frames/m15/transform/icons/planeswalker.svg', bounds:bounds2}, + {name:'Lesson', src:'/img/frames/m15/transform/icons/lesson.svg', bounds:bounds2}, + {name:'Closed Fan', src:'/img/frames/m15/transform/icons/fanClosed.svg', bounds:bounds2}, + {name:'Open Fan', src:'/img/frames/m15/transform/icons/fanOpen.svg', bounds:bounds2}, +]; +//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 = 'classicshiftedTransform'; + //art bounds + card.artBounds = {x:0.08, y:0.0954, width:0.84, height:0.4653}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.5958, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; + 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.0462, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:0.14, y:0.0372, width:0.748, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white', shadowX:0.002, shadowY:0.0015}, + type: {name:'Type', text:'', x:0.0854, y:0.571, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white', shadowX:0.002, shadowY:0.0015}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6329, width:0.828, height:0.2905, size:0.0362}, + pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white', shadowX:0.002, shadowY:0.0015}, + reminder: {name:'Reverse PT', text:'', x:0.086, y:0.842, width:0.838, height:0.0362, size:0.0291, oneLine:true, color:'#666', align:'right', font:'belerenbsc'}, + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file