diff --git a/img/frames/m15/split/a.png b/img/frames/m15/split/a.png new file mode 100644 index 00000000..8dc4a21e Binary files /dev/null and b/img/frames/m15/split/a.png differ diff --git a/img/frames/m15/split/aThumb.png b/img/frames/m15/split/aThumb.png new file mode 100644 index 00000000..ca8fc6bf Binary files /dev/null and b/img/frames/m15/split/aThumb.png differ diff --git a/img/frames/m15/split/b.png b/img/frames/m15/split/b.png new file mode 100644 index 00000000..5c6c74f5 Binary files /dev/null and b/img/frames/m15/split/b.png differ diff --git a/img/frames/m15/split/bThumb.png b/img/frames/m15/split/bThumb.png new file mode 100644 index 00000000..c418feb0 Binary files /dev/null and b/img/frames/m15/split/bThumb.png differ diff --git a/img/frames/m15/split/bottom.svg b/img/frames/m15/split/bottom.svg new file mode 100644 index 00000000..91ddd7a4 --- /dev/null +++ b/img/frames/m15/split/bottom.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/frames/m15/split/bottomThumb.png b/img/frames/m15/split/bottomThumb.png new file mode 100644 index 00000000..1ff4309c Binary files /dev/null and b/img/frames/m15/split/bottomThumb.png differ diff --git a/img/frames/m15/split/g.png b/img/frames/m15/split/g.png new file mode 100644 index 00000000..0f414458 Binary files /dev/null and b/img/frames/m15/split/g.png differ diff --git a/img/frames/m15/split/gThumb.png b/img/frames/m15/split/gThumb.png new file mode 100644 index 00000000..43a677d1 Binary files /dev/null and b/img/frames/m15/split/gThumb.png differ diff --git a/img/frames/m15/split/l.png b/img/frames/m15/split/l.png new file mode 100644 index 00000000..f8830548 Binary files /dev/null and b/img/frames/m15/split/l.png differ diff --git a/img/frames/m15/split/lThumb.png b/img/frames/m15/split/lThumb.png new file mode 100644 index 00000000..033e2ade Binary files /dev/null and b/img/frames/m15/split/lThumb.png differ diff --git a/img/frames/m15/split/m.png b/img/frames/m15/split/m.png new file mode 100644 index 00000000..91d32bbe Binary files /dev/null and b/img/frames/m15/split/m.png differ diff --git a/img/frames/m15/split/mThumb.png b/img/frames/m15/split/mThumb.png new file mode 100644 index 00000000..4bb941f7 Binary files /dev/null and b/img/frames/m15/split/mThumb.png differ diff --git a/img/frames/m15/split/r.png b/img/frames/m15/split/r.png new file mode 100644 index 00000000..9ccba9ff Binary files /dev/null and b/img/frames/m15/split/r.png differ diff --git a/img/frames/m15/split/rThumb.png b/img/frames/m15/split/rThumb.png new file mode 100644 index 00000000..d47131ba Binary files /dev/null and b/img/frames/m15/split/rThumb.png differ diff --git a/img/frames/m15/split/top.svg b/img/frames/m15/split/top.svg new file mode 100644 index 00000000..e5512be7 --- /dev/null +++ b/img/frames/m15/split/top.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/frames/m15/split/topThumb.png b/img/frames/m15/split/topThumb.png new file mode 100644 index 00000000..305425fe Binary files /dev/null and b/img/frames/m15/split/topThumb.png differ diff --git a/img/frames/m15/split/u.png b/img/frames/m15/split/u.png new file mode 100644 index 00000000..49c7b7d5 Binary files /dev/null and b/img/frames/m15/split/u.png differ diff --git a/img/frames/m15/split/uThumb.png b/img/frames/m15/split/uThumb.png new file mode 100644 index 00000000..c042a18d Binary files /dev/null and b/img/frames/m15/split/uThumb.png differ diff --git a/img/frames/m15/split/v.png b/img/frames/m15/split/v.png new file mode 100644 index 00000000..41a2058b Binary files /dev/null and b/img/frames/m15/split/v.png differ diff --git a/img/frames/m15/split/vThumb.png b/img/frames/m15/split/vThumb.png new file mode 100644 index 00000000..d30472d2 Binary files /dev/null and b/img/frames/m15/split/vThumb.png differ diff --git a/img/frames/m15/split/w.png b/img/frames/m15/split/w.png new file mode 100644 index 00000000..3ad018a3 Binary files /dev/null and b/img/frames/m15/split/w.png differ diff --git a/img/frames/m15/split/wThumb.png b/img/frames/m15/split/wThumb.png new file mode 100644 index 00000000..47bdc0ee Binary files /dev/null and b/img/frames/m15/split/wThumb.png differ diff --git a/js/frames/groupStandard-3.js b/js/frames/groupStandard-3.js index 6d09257b..46571329 100644 --- a/js/frames/groupStandard-3.js +++ b/js/frames/groupStandard-3.js @@ -21,6 +21,7 @@ loadFramePacks([ {name:'Aftermath (Amonkhet)', value:'Aftermath'}, {name:'Flip (Kamigawa)', value:'Flip'}, {name:'Levelers (Zendikar)', value:'Levelers'}, + {name:'Split Cards', value:'Split'}, {name:'Conspiracies (Draft Matters)', value:'Conspiracy'}, {name:'Colorshifted (Planar Chaos)', value:'Colorshifted'}, {name:'Custom Addons', value:'disabled'}, diff --git a/js/frames/packSplit.js b/js/frames/packSplit.js new file mode 100644 index 00000000..00150871 --- /dev/null +++ b/js/frames/packSplit.js @@ -0,0 +1,46 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/split/top.svg', name:'Top Half'}, {src:'/img/frames/m15/split/bottom.svg', name:'Bottom Half'}]; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/m15/split/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/m15/split/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/m15/split/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/m15/split/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/m15/split/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/m15/split/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/m15/split/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/m15/split/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 = 'split'; + //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.2443, 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.2443, size:0.0362, rotation:-90}, + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file