diff --git a/img/frames/neo/samurai/a.png b/img/frames/neo/samurai/a.png new file mode 100644 index 00000000..7172a0cb Binary files /dev/null and b/img/frames/neo/samurai/a.png differ diff --git a/img/frames/neo/samurai/aThumb.png b/img/frames/neo/samurai/aThumb.png new file mode 100644 index 00000000..d7c0cffe Binary files /dev/null and b/img/frames/neo/samurai/aThumb.png differ diff --git a/img/frames/neo/samurai/b.png b/img/frames/neo/samurai/b.png new file mode 100644 index 00000000..c3d18f29 Binary files /dev/null and b/img/frames/neo/samurai/b.png differ diff --git a/img/frames/neo/samurai/bThumb.png b/img/frames/neo/samurai/bThumb.png new file mode 100644 index 00000000..069e7a8d Binary files /dev/null and b/img/frames/neo/samurai/bThumb.png differ diff --git a/img/frames/neo/samurai/crown/b.png b/img/frames/neo/samurai/crown/b.png new file mode 100644 index 00000000..1991a01c Binary files /dev/null and b/img/frames/neo/samurai/crown/b.png differ diff --git a/img/frames/neo/samurai/crown/bThumb.png b/img/frames/neo/samurai/crown/bThumb.png new file mode 100644 index 00000000..fe1ebf94 Binary files /dev/null and b/img/frames/neo/samurai/crown/bThumb.png differ diff --git a/img/frames/neo/samurai/crown/g.png b/img/frames/neo/samurai/crown/g.png new file mode 100644 index 00000000..679102ed Binary files /dev/null and b/img/frames/neo/samurai/crown/g.png differ diff --git a/img/frames/neo/samurai/crown/gThumb.png b/img/frames/neo/samurai/crown/gThumb.png new file mode 100644 index 00000000..f57f938f Binary files /dev/null and b/img/frames/neo/samurai/crown/gThumb.png differ diff --git a/img/frames/neo/samurai/crown/m.png b/img/frames/neo/samurai/crown/m.png new file mode 100644 index 00000000..8a81ae27 Binary files /dev/null and b/img/frames/neo/samurai/crown/m.png differ diff --git a/img/frames/neo/samurai/crown/mThumb.png b/img/frames/neo/samurai/crown/mThumb.png new file mode 100644 index 00000000..37ea6245 Binary files /dev/null and b/img/frames/neo/samurai/crown/mThumb.png differ diff --git a/img/frames/neo/samurai/crown/r.png b/img/frames/neo/samurai/crown/r.png new file mode 100644 index 00000000..77fb8a54 Binary files /dev/null and b/img/frames/neo/samurai/crown/r.png differ diff --git a/img/frames/neo/samurai/crown/rThumb.png b/img/frames/neo/samurai/crown/rThumb.png new file mode 100644 index 00000000..3fb1448c Binary files /dev/null and b/img/frames/neo/samurai/crown/rThumb.png differ diff --git a/img/frames/neo/samurai/crown/u.png b/img/frames/neo/samurai/crown/u.png new file mode 100644 index 00000000..5a488874 Binary files /dev/null and b/img/frames/neo/samurai/crown/u.png differ diff --git a/img/frames/neo/samurai/crown/uThumb.png b/img/frames/neo/samurai/crown/uThumb.png new file mode 100644 index 00000000..d1cb0ca2 Binary files /dev/null and b/img/frames/neo/samurai/crown/uThumb.png differ diff --git a/img/frames/neo/samurai/crown/w.png b/img/frames/neo/samurai/crown/w.png new file mode 100644 index 00000000..8919e8d1 Binary files /dev/null and b/img/frames/neo/samurai/crown/w.png differ diff --git a/img/frames/neo/samurai/crown/wThumb.png b/img/frames/neo/samurai/crown/wThumb.png new file mode 100644 index 00000000..bcbd3079 Binary files /dev/null and b/img/frames/neo/samurai/crown/wThumb.png differ diff --git a/img/frames/neo/samurai/g.png b/img/frames/neo/samurai/g.png new file mode 100644 index 00000000..a1beb7bd Binary files /dev/null and b/img/frames/neo/samurai/g.png differ diff --git a/img/frames/neo/samurai/gThumb.png b/img/frames/neo/samurai/gThumb.png new file mode 100644 index 00000000..f0c220ee Binary files /dev/null and b/img/frames/neo/samurai/gThumb.png differ diff --git a/img/frames/neo/samurai/m.png b/img/frames/neo/samurai/m.png new file mode 100644 index 00000000..b2600c3b Binary files /dev/null and b/img/frames/neo/samurai/m.png differ diff --git a/img/frames/neo/samurai/mThumb.png b/img/frames/neo/samurai/mThumb.png new file mode 100644 index 00000000..5adcd8f9 Binary files /dev/null and b/img/frames/neo/samurai/mThumb.png differ diff --git a/img/frames/neo/samurai/pt/b.png b/img/frames/neo/samurai/pt/b.png new file mode 100644 index 00000000..ea5036b5 Binary files /dev/null and b/img/frames/neo/samurai/pt/b.png differ diff --git a/img/frames/neo/samurai/pt/bThumb.png b/img/frames/neo/samurai/pt/bThumb.png new file mode 100644 index 00000000..0ea66caa Binary files /dev/null and b/img/frames/neo/samurai/pt/bThumb.png differ diff --git a/img/frames/neo/samurai/pt/g.png b/img/frames/neo/samurai/pt/g.png new file mode 100644 index 00000000..7b414ed7 Binary files /dev/null and b/img/frames/neo/samurai/pt/g.png differ diff --git a/img/frames/neo/samurai/pt/gThumb.png b/img/frames/neo/samurai/pt/gThumb.png new file mode 100644 index 00000000..df69bdff Binary files /dev/null and b/img/frames/neo/samurai/pt/gThumb.png differ diff --git a/img/frames/neo/samurai/pt/m.png b/img/frames/neo/samurai/pt/m.png new file mode 100644 index 00000000..0b3fd5a1 Binary files /dev/null and b/img/frames/neo/samurai/pt/m.png differ diff --git a/img/frames/neo/samurai/pt/mThumb.png b/img/frames/neo/samurai/pt/mThumb.png new file mode 100644 index 00000000..a990f6e3 Binary files /dev/null and b/img/frames/neo/samurai/pt/mThumb.png differ diff --git a/img/frames/neo/samurai/pt/r.png b/img/frames/neo/samurai/pt/r.png new file mode 100644 index 00000000..edb8c427 Binary files /dev/null and b/img/frames/neo/samurai/pt/r.png differ diff --git a/img/frames/neo/samurai/pt/rThumb.png b/img/frames/neo/samurai/pt/rThumb.png new file mode 100644 index 00000000..a6d86dc3 Binary files /dev/null and b/img/frames/neo/samurai/pt/rThumb.png differ diff --git a/img/frames/neo/samurai/pt/u.png b/img/frames/neo/samurai/pt/u.png new file mode 100644 index 00000000..9e39c90a Binary files /dev/null and b/img/frames/neo/samurai/pt/u.png differ diff --git a/img/frames/neo/samurai/pt/uThumb.png b/img/frames/neo/samurai/pt/uThumb.png new file mode 100644 index 00000000..c8676f40 Binary files /dev/null and b/img/frames/neo/samurai/pt/uThumb.png differ diff --git a/img/frames/neo/samurai/pt/w.png b/img/frames/neo/samurai/pt/w.png new file mode 100644 index 00000000..39213edb Binary files /dev/null and b/img/frames/neo/samurai/pt/w.png differ diff --git a/img/frames/neo/samurai/pt/wThumb.png b/img/frames/neo/samurai/pt/wThumb.png new file mode 100644 index 00000000..c4e86f69 Binary files /dev/null and b/img/frames/neo/samurai/pt/wThumb.png differ diff --git a/img/frames/neo/samurai/r.png b/img/frames/neo/samurai/r.png new file mode 100644 index 00000000..294dbbd5 Binary files /dev/null and b/img/frames/neo/samurai/r.png differ diff --git a/img/frames/neo/samurai/rThumb.png b/img/frames/neo/samurai/rThumb.png new file mode 100644 index 00000000..9f7adc75 Binary files /dev/null and b/img/frames/neo/samurai/rThumb.png differ diff --git a/img/frames/neo/samurai/u.png b/img/frames/neo/samurai/u.png new file mode 100644 index 00000000..be134651 Binary files /dev/null and b/img/frames/neo/samurai/u.png differ diff --git a/img/frames/neo/samurai/uThumb.png b/img/frames/neo/samurai/uThumb.png new file mode 100644 index 00000000..2e6c4882 Binary files /dev/null and b/img/frames/neo/samurai/uThumb.png differ diff --git a/img/frames/neo/samurai/w.png b/img/frames/neo/samurai/w.png new file mode 100644 index 00000000..63fc7130 Binary files /dev/null and b/img/frames/neo/samurai/w.png differ diff --git a/img/frames/neo/samurai/wThumb.png b/img/frames/neo/samurai/wThumb.png new file mode 100644 index 00000000..181b1529 Binary files /dev/null and b/img/frames/neo/samurai/wThumb.png differ diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index 39b035c3..d3fc8206 100644 --- a/js/frames/groupShowcase-5.js +++ b/js/frames/groupShowcase-5.js @@ -1,5 +1,6 @@ loadFramePacks([ {name:'Set Showcase Frames (Chronological)', value:'disabled'}, + {name:'Samurai (Neo)', value:'NeoSamurai'}, {name:'Neon (Neo)', value:'NeoNeon'}, {name:'Fang (VOW)', value:'Fang'}, {name:'Equinox (MID)', value:'Equinox'}, diff --git a/js/frames/packNeoSamurai.js b/js/frames/packNeoSamurai.js new file mode 100644 index 00000000..6ab8f065 --- /dev/null +++ b/js/frames/packNeoSamurai.js @@ -0,0 +1,55 @@ +//Create objects for common properties across available frames +var masks = []//[{src:'/img/frames/neo/samurai/frame.svg', name:'Frame'}, {src:'/img/frames/neo/samurai/title.svg', name:'Title'}, {src:'/img/frames/neo/samurai/type.svg', name:'Type'}, {src:'/img/frames/neo/samurai/typeSides.svg', name:'Type Sides'}, {src:'/img/frames/neo/samurai/rules.svg', name:'Rules'}, {src:'/img/frames/neo/samurai/gold.svg', name:'Gold Accents'}, {src:'/img/frames/neo/samurai/border.svg', name:'Border'}]; +var bounds = {x:0.7634, y:0.8858, width:0.1954, height:0.0677}; +var bounds2 = {x:0.0294, y:0.0162, width:0.942, height:0.0753}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/neo/samurai/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/neo/samurai/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/neo/samurai/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/neo/samurai/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/neo/samurai/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/neo/samurai/m.png', masks:masks}, + {name:'Artifact Overlay', src:'/img/frames/neo/samurai/a.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/neo/samurai/pt/w.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/neo/samurai/pt/u.png', bounds:bounds}, + {name:'Black Power/Toughness', src:'/img/frames/neo/samurai/pt/b.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/neo/samurai/pt/r.png', bounds:bounds}, + {name:'Green Power/Toughness', src:'/img/frames/neo/samurai/pt/g.png', bounds:bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/neo/samurai/pt/m.png', bounds:bounds}, + {name:'White Legend Crown', src:'/img/frames/neo/samurai/crown/w.png', bounds:bounds2}, + {name:'Blue Legend Crown', src:'/img/frames/neo/samurai/crown/u.png', bounds:bounds2}, + {name:'Black Legend Crown', src:'/img/frames/neo/samurai/crown/b.png', bounds:bounds2}, + {name:'Red Legend Crown', src:'/img/frames/neo/samurai/crown/r.png', bounds:bounds2}, + {name:'Green Legend Crown', src:'/img/frames/neo/samurai/crown/g.png', bounds:bounds2}, + {name:'Multicolored Legend Crown', src:'/img/frames/neo/samurai/crown/m.png', bounds:bounds2}, + {name:'Rare Stamp', src:'/img/frames/neo/stamp.png', bounds:{x:0.4554, y:0.9172, width:0.0894, height:0.0320}} +]; +//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 = 'neoSamurai'; + //art bounds + card.artBounds = {x:0.04, y:0.1253, width:0.92, height:0.4410}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.916, y:0.5910, 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.0777, 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.0686, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white'}, + type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white'}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2762, size:0.0362, color:'white'}, + pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.9062, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file