diff --git a/img/frames/m15/split/fuse/a.png b/img/frames/m15/split/fuse/a.png new file mode 100644 index 00000000..ca8dae8a Binary files /dev/null and b/img/frames/m15/split/fuse/a.png differ diff --git a/img/frames/m15/split/fuse/aThumb.png b/img/frames/m15/split/fuse/aThumb.png new file mode 100644 index 00000000..4e3ef2b9 Binary files /dev/null and b/img/frames/m15/split/fuse/aThumb.png differ diff --git a/img/frames/m15/split/fuse/b.png b/img/frames/m15/split/fuse/b.png new file mode 100644 index 00000000..12708876 Binary files /dev/null and b/img/frames/m15/split/fuse/b.png differ diff --git a/img/frames/m15/split/fuse/bThumb.png b/img/frames/m15/split/fuse/bThumb.png new file mode 100644 index 00000000..1cc85517 Binary files /dev/null and b/img/frames/m15/split/fuse/bThumb.png differ diff --git a/img/frames/m15/split/fuse/bottom.png b/img/frames/m15/split/fuse/bottom.png new file mode 100644 index 00000000..e08e8254 Binary files /dev/null and b/img/frames/m15/split/fuse/bottom.png differ diff --git a/img/frames/m15/split/fuse/bottomThumb.png b/img/frames/m15/split/fuse/bottomThumb.png new file mode 100644 index 00000000..baf54cc3 Binary files /dev/null and b/img/frames/m15/split/fuse/bottomThumb.png differ diff --git a/img/frames/m15/split/fuse/g.png b/img/frames/m15/split/fuse/g.png new file mode 100644 index 00000000..07497d07 Binary files /dev/null and b/img/frames/m15/split/fuse/g.png differ diff --git a/img/frames/m15/split/fuse/gThumb.png b/img/frames/m15/split/fuse/gThumb.png new file mode 100644 index 00000000..ed3ccd80 Binary files /dev/null and b/img/frames/m15/split/fuse/gThumb.png differ diff --git a/img/frames/m15/split/fuse/l.png b/img/frames/m15/split/fuse/l.png new file mode 100644 index 00000000..99501e0f Binary files /dev/null and b/img/frames/m15/split/fuse/l.png differ diff --git a/img/frames/m15/split/fuse/lThumb.png b/img/frames/m15/split/fuse/lThumb.png new file mode 100644 index 00000000..4f1c2ebf Binary files /dev/null and b/img/frames/m15/split/fuse/lThumb.png differ diff --git a/img/frames/m15/split/fuse/m.png b/img/frames/m15/split/fuse/m.png new file mode 100644 index 00000000..915f68de Binary files /dev/null and b/img/frames/m15/split/fuse/m.png differ diff --git a/img/frames/m15/split/fuse/mThumb.png b/img/frames/m15/split/fuse/mThumb.png new file mode 100644 index 00000000..c71acc58 Binary files /dev/null and b/img/frames/m15/split/fuse/mThumb.png differ diff --git a/img/frames/m15/split/fuse/r.png b/img/frames/m15/split/fuse/r.png new file mode 100644 index 00000000..c1fe1f8d Binary files /dev/null and b/img/frames/m15/split/fuse/r.png differ diff --git a/img/frames/m15/split/fuse/rThumb.png b/img/frames/m15/split/fuse/rThumb.png new file mode 100644 index 00000000..c8e3f366 Binary files /dev/null and b/img/frames/m15/split/fuse/rThumb.png differ diff --git a/img/frames/m15/split/fuse/top.png b/img/frames/m15/split/fuse/top.png new file mode 100644 index 00000000..7640ec7f Binary files /dev/null and b/img/frames/m15/split/fuse/top.png differ diff --git a/img/frames/m15/split/fuse/topThumb.png b/img/frames/m15/split/fuse/topThumb.png new file mode 100644 index 00000000..d7eff17f Binary files /dev/null and b/img/frames/m15/split/fuse/topThumb.png differ diff --git a/img/frames/m15/split/fuse/u.png b/img/frames/m15/split/fuse/u.png new file mode 100644 index 00000000..b8222af8 Binary files /dev/null and b/img/frames/m15/split/fuse/u.png differ diff --git a/img/frames/m15/split/fuse/uThumb.png b/img/frames/m15/split/fuse/uThumb.png new file mode 100644 index 00000000..ac7a2d8e Binary files /dev/null and b/img/frames/m15/split/fuse/uThumb.png differ diff --git a/img/frames/m15/split/fuse/w.png b/img/frames/m15/split/fuse/w.png new file mode 100644 index 00000000..a09307ba Binary files /dev/null and b/img/frames/m15/split/fuse/w.png differ diff --git a/img/frames/m15/split/fuse/wThumb.png b/img/frames/m15/split/fuse/wThumb.png new file mode 100644 index 00000000..d2edbfd0 Binary files /dev/null and b/img/frames/m15/split/fuse/wThumb.png differ diff --git a/js/frames/groupStandard-3.js b/js/frames/groupStandard-3.js index 46571329..af2ec53c 100644 --- a/js/frames/groupStandard-3.js +++ b/js/frames/groupStandard-3.js @@ -22,6 +22,7 @@ loadFramePacks([ {name:'Flip (Kamigawa)', value:'Flip'}, {name:'Levelers (Zendikar)', value:'Levelers'}, {name:'Split Cards', value:'Split'}, + {name:'Fuse Cards', value:'Fuse'}, {name:'Conspiracies (Draft Matters)', value:'Conspiracy'}, {name:'Colorshifted (Planar Chaos)', value:'Colorshifted'}, {name:'Custom Addons', value:'disabled'}, diff --git a/js/frames/packFuse.js b/js/frames/packFuse.js new file mode 100644 index 00000000..8cfd7f5d --- /dev/null +++ b/js/frames/packFuse.js @@ -0,0 +1,47 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/split/fuse/top.png', name:'Top Half'}, {src:'/img/frames/m15/split/fuse/bottom.png', name:'Bottom Half'}]; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/m15/split/fuse/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/m15/split/fuse/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/m15/split/fuse/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/m15/split/fuse/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/m15/split/fuse/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/m15/split/fuse/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/m15/split/fuse/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/m15/split/fuse/l.png', masks:masks} +]; +//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() { + // Notification + notify('At this time, rotated set symbols and second pieces of art is not an option, unless added manually with external software. Apologies for the inconvenience!', 10); + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'fuse'; + //art bounds + card.artBounds = {x:0.158, y:0.0534, width:0.3734, height:0.3886}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:2, y:2, 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 (Right)', text:'', x:0.0847, y:0.4381, width:0.5367, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0, rotation:-90}, + title: {name:'Title (Right)', text:'', x:0.072, y:0.4381, width:0.5367, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, rotation:-90}, + type: {name:'Type (Right)', text:'', x:0.55, y:0.4381, width:0.5367, height:0.0286, oneLine:true, font:'belerenb', size:0.0286, rotation:-90}, + rules: {name:'Rules Text (Right)', text:'', x:0.6087, y:0.4334, width:0.5174, height:0.1986, size:0.0362, rotation:-90}, + mana2: {name:'Mana Cost (Left)', text:'', x:0.0847, y:0.8943, width:0.5367, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0, rotation:-90}, + title2: {name:'Title (Left)', text:'', x:0.072, y:0.8943, width:0.5367, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, rotation:-90}, + type2: {name:'Type (Left)', text:'', x:0.55, y:0.8943, width:0.5367, height:0.0286, oneLine:true, font:'belerenb', size:0.0286, rotation:-90}, + rules2: {name:'Rules Text (Left)', text:'', x:0.6087, y:0.8896, width:0.5174, height:0.1986, size:0.0362, rotation:-90}, + reminder: {name:'Reminder', text:'Fuse {i}(You may cast one or both halves of this card from your hand.){/i}', x:0.9067, y:0.8943, width:1.1754, height:0.0286, oneLine:true, size:0.0286, rotation:-90, align:"center"} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file