diff --git a/img/frames/custom/classicshifted/saga/b.png b/img/frames/custom/classicshifted/saga/b.png new file mode 100644 index 00000000..721fd4de Binary files /dev/null and b/img/frames/custom/classicshifted/saga/b.png differ diff --git a/img/frames/custom/classicshifted/saga/bThumb.png b/img/frames/custom/classicshifted/saga/bThumb.png new file mode 100644 index 00000000..b47083f2 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/bThumb.png differ diff --git a/img/frames/custom/classicshifted/saga/g.png b/img/frames/custom/classicshifted/saga/g.png new file mode 100644 index 00000000..1138cfd8 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/g.png differ diff --git a/img/frames/custom/classicshifted/saga/gThumb.png b/img/frames/custom/classicshifted/saga/gThumb.png new file mode 100644 index 00000000..220b2aed Binary files /dev/null and b/img/frames/custom/classicshifted/saga/gThumb.png differ diff --git a/img/frames/custom/classicshifted/saga/l.png b/img/frames/custom/classicshifted/saga/l.png new file mode 100644 index 00000000..23c51ff9 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/l.png differ diff --git a/img/frames/custom/classicshifted/saga/lThumb.png b/img/frames/custom/classicshifted/saga/lThumb.png new file mode 100644 index 00000000..2e1161c4 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/lThumb.png differ diff --git a/img/frames/custom/classicshifted/saga/m.png b/img/frames/custom/classicshifted/saga/m.png new file mode 100644 index 00000000..0bd6c80f Binary files /dev/null and b/img/frames/custom/classicshifted/saga/m.png differ diff --git a/img/frames/custom/classicshifted/saga/mThumb.png b/img/frames/custom/classicshifted/saga/mThumb.png new file mode 100644 index 00000000..5337eecc Binary files /dev/null and b/img/frames/custom/classicshifted/saga/mThumb.png differ diff --git a/img/frames/custom/classicshifted/saga/r.png b/img/frames/custom/classicshifted/saga/r.png new file mode 100644 index 00000000..c3633d82 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/r.png differ diff --git a/img/frames/custom/classicshifted/saga/rThumb.png b/img/frames/custom/classicshifted/saga/rThumb.png new file mode 100644 index 00000000..76ec07d4 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/rThumb.png differ diff --git a/img/frames/custom/classicshifted/saga/u.png b/img/frames/custom/classicshifted/saga/u.png new file mode 100644 index 00000000..1eb9da56 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/u.png differ diff --git a/img/frames/custom/classicshifted/saga/uThumb.png b/img/frames/custom/classicshifted/saga/uThumb.png new file mode 100644 index 00000000..616f8520 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/uThumb.png differ diff --git a/img/frames/custom/classicshifted/saga/w.png b/img/frames/custom/classicshifted/saga/w.png new file mode 100644 index 00000000..980f40b0 Binary files /dev/null and b/img/frames/custom/classicshifted/saga/w.png differ diff --git a/img/frames/custom/classicshifted/saga/wThumb.png b/img/frames/custom/classicshifted/saga/wThumb.png new file mode 100644 index 00000000..1ccfb77e Binary files /dev/null and b/img/frames/custom/classicshifted/saga/wThumb.png differ diff --git a/js/frames/groupCustom.js b/js/frames/groupCustom.js index b74ef626..b9767134 100644 --- a/js/frames/groupCustom.js +++ b/js/frames/groupCustom.js @@ -3,6 +3,7 @@ loadFramePacks([ {name:'Cartoony - Sheepwave', value:'Cartoony'}, {name:'Classic-Shifted', value:'Classicshifted'}, {name:'Classic-Shifted Planeswalkers', value:'ClassicshiftedPlaneswalker'}, + {name:'Classic-Shifted Sagas', value:'ClassicshiftedSaga'}, {name:'Ixalan - @feuer_ameise', value:'FeuerAmeiseIxalan'}, {name:'Tapped (Horizontal M15)', value:'Tapped'}, {name:'Simple Inventions', value:'SimpleInventions'}, diff --git a/js/frames/packClassicshiftedSaga.js b/js/frames/packClassicshiftedSaga.js new file mode 100644 index 00000000..e2043b55 --- /dev/null +++ b/js/frames/packClassicshiftedSaga.js @@ -0,0 +1,46 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/saga/sagaMaskBanner.png', name:'Banner'}, {src:'/img/frames/saga/sagaMaskBannerRight.png', name:'Banner (Right)'}]; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/custom/classicshifted/saga/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/custom/classicshifted/saga/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/custom/classicshifted/saga/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/custom/classicshifted/saga/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/custom/classicshifted/saga/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/custom/classicshifted/saga/m.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/custom/classicshifted/saga/l.png', masks:masks}, + {name:'Banner Pinstripe (Multicolored)', src:'/img/frames/saga/sagaMidStripe.png', bounds:{x:0.0727, y:0.3058, width:0.0087, height:0.4762}} +]; +//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 = 'sagaClassicshifted'; + card.onload = '/js/frames/versionSaga.js'; + loadScript('/js/frames/versionSaga.js'); + //art bounds + card.artBounds = {x:0.5, y:0.1124, width:0.4247, height:0.7253}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9227, y:0.882, width:0.12, height:0.0381, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.3027, y:0.4748, width:0.3547, height:0.6767}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0558, 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.0854, y:0.0458, width:0.8292, 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.8572, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white', shadowX:0.002, shadowY:0.0015}, + ability0: {name:'Ability 1', text:'', x:0.1334, y:0.2896, width:0.3334, height:0.1786, size:0.0305}, + ability1: {name:'Ability 2', text:'', x:0.1334, y:0, width:0.3334, height:0.1786, size:0.0305}, + ability2: {name:'Ability 3', text:'', x:0.1334, y:0, width:0.3334, height:0.1786, size:0.0305}, + ability3: {name:'Ability 4', text:'', x:0.1334, y:0, width:0.3334, height:0, size:0.0305}, + reminder: {name:'Reminder Text', text:'{i}(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)', x:0.0867, y:0.1129, width:0.38, height:0.1772, size:0.0281, shadowColor:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file