diff --git a/img/frames/dmu/stainedGlass/b.png b/img/frames/dmu/stainedGlass/b.png new file mode 100644 index 00000000..e5bc6126 Binary files /dev/null and b/img/frames/dmu/stainedGlass/b.png differ diff --git a/img/frames/dmu/stainedGlass/bThumb.png b/img/frames/dmu/stainedGlass/bThumb.png new file mode 100644 index 00000000..e7bf069b Binary files /dev/null and b/img/frames/dmu/stainedGlass/bThumb.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/b.png b/img/frames/dmu/stainedGlass/crowns/b.png new file mode 100644 index 00000000..b6612170 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/b.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/bThumb.png b/img/frames/dmu/stainedGlass/crowns/bThumb.png new file mode 100644 index 00000000..03bddcb4 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/bThumb.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/g.png b/img/frames/dmu/stainedGlass/crowns/g.png new file mode 100644 index 00000000..3d06496b Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/g.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/gThumb.png b/img/frames/dmu/stainedGlass/crowns/gThumb.png new file mode 100644 index 00000000..5733c4e2 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/gThumb.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/m.png b/img/frames/dmu/stainedGlass/crowns/m.png new file mode 100644 index 00000000..53c6a1ba Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/m.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/mThumb.png b/img/frames/dmu/stainedGlass/crowns/mThumb.png new file mode 100644 index 00000000..c3a96453 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/mThumb.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/r.png b/img/frames/dmu/stainedGlass/crowns/r.png new file mode 100644 index 00000000..8c4b36f4 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/r.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/rThumb.png b/img/frames/dmu/stainedGlass/crowns/rThumb.png new file mode 100644 index 00000000..060da9fe Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/rThumb.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/u.png b/img/frames/dmu/stainedGlass/crowns/u.png new file mode 100644 index 00000000..96693a13 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/u.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/uThumb.png b/img/frames/dmu/stainedGlass/crowns/uThumb.png new file mode 100644 index 00000000..8c354b80 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/uThumb.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/w.png b/img/frames/dmu/stainedGlass/crowns/w.png new file mode 100644 index 00000000..81467916 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/w.png differ diff --git a/img/frames/dmu/stainedGlass/crowns/wThumb.png b/img/frames/dmu/stainedGlass/crowns/wThumb.png new file mode 100644 index 00000000..0f985d68 Binary files /dev/null and b/img/frames/dmu/stainedGlass/crowns/wThumb.png differ diff --git a/img/frames/dmu/stainedGlass/g.png b/img/frames/dmu/stainedGlass/g.png new file mode 100644 index 00000000..a21dcc53 Binary files /dev/null and b/img/frames/dmu/stainedGlass/g.png differ diff --git a/img/frames/dmu/stainedGlass/gThumb.png b/img/frames/dmu/stainedGlass/gThumb.png new file mode 100644 index 00000000..76e32dfe Binary files /dev/null and b/img/frames/dmu/stainedGlass/gThumb.png differ diff --git a/img/frames/dmu/stainedGlass/m.png b/img/frames/dmu/stainedGlass/m.png new file mode 100644 index 00000000..539b7f41 Binary files /dev/null and b/img/frames/dmu/stainedGlass/m.png differ diff --git a/img/frames/dmu/stainedGlass/mThumb.png b/img/frames/dmu/stainedGlass/mThumb.png new file mode 100644 index 00000000..8f97ca71 Binary files /dev/null and b/img/frames/dmu/stainedGlass/mThumb.png differ diff --git a/img/frames/dmu/stainedGlass/pt/b.png b/img/frames/dmu/stainedGlass/pt/b.png new file mode 100644 index 00000000..71440148 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/b.png differ diff --git a/img/frames/dmu/stainedGlass/pt/bThumb.png b/img/frames/dmu/stainedGlass/pt/bThumb.png new file mode 100644 index 00000000..cea541bc Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/bThumb.png differ diff --git a/img/frames/dmu/stainedGlass/pt/g.png b/img/frames/dmu/stainedGlass/pt/g.png new file mode 100644 index 00000000..cb9905b5 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/g.png differ diff --git a/img/frames/dmu/stainedGlass/pt/gThumb.png b/img/frames/dmu/stainedGlass/pt/gThumb.png new file mode 100644 index 00000000..22d205c1 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/gThumb.png differ diff --git a/img/frames/dmu/stainedGlass/pt/m.png b/img/frames/dmu/stainedGlass/pt/m.png new file mode 100644 index 00000000..be92e8f1 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/m.png differ diff --git a/img/frames/dmu/stainedGlass/pt/mThumb.png b/img/frames/dmu/stainedGlass/pt/mThumb.png new file mode 100644 index 00000000..41173197 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/mThumb.png differ diff --git a/img/frames/dmu/stainedGlass/pt/r.png b/img/frames/dmu/stainedGlass/pt/r.png new file mode 100644 index 00000000..c1088a64 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/r.png differ diff --git a/img/frames/dmu/stainedGlass/pt/rThumb.png b/img/frames/dmu/stainedGlass/pt/rThumb.png new file mode 100644 index 00000000..b63d1d43 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/rThumb.png differ diff --git a/img/frames/dmu/stainedGlass/pt/u.png b/img/frames/dmu/stainedGlass/pt/u.png new file mode 100644 index 00000000..fa58e477 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/u.png differ diff --git a/img/frames/dmu/stainedGlass/pt/uThumb.png b/img/frames/dmu/stainedGlass/pt/uThumb.png new file mode 100644 index 00000000..9b2541e5 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/uThumb.png differ diff --git a/img/frames/dmu/stainedGlass/pt/w.png b/img/frames/dmu/stainedGlass/pt/w.png new file mode 100644 index 00000000..2f9dc4e2 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/w.png differ diff --git a/img/frames/dmu/stainedGlass/pt/wThumb.png b/img/frames/dmu/stainedGlass/pt/wThumb.png new file mode 100644 index 00000000..a1d47280 Binary files /dev/null and b/img/frames/dmu/stainedGlass/pt/wThumb.png differ diff --git a/img/frames/dmu/stainedGlass/r.png b/img/frames/dmu/stainedGlass/r.png new file mode 100644 index 00000000..fef4f744 Binary files /dev/null and b/img/frames/dmu/stainedGlass/r.png differ diff --git a/img/frames/dmu/stainedGlass/rThumb.png b/img/frames/dmu/stainedGlass/rThumb.png new file mode 100644 index 00000000..83f87921 Binary files /dev/null and b/img/frames/dmu/stainedGlass/rThumb.png differ diff --git a/img/frames/dmu/stainedGlass/u.png b/img/frames/dmu/stainedGlass/u.png new file mode 100644 index 00000000..dc57082d Binary files /dev/null and b/img/frames/dmu/stainedGlass/u.png differ diff --git a/img/frames/dmu/stainedGlass/uThumb.png b/img/frames/dmu/stainedGlass/uThumb.png new file mode 100644 index 00000000..09f20efb Binary files /dev/null and b/img/frames/dmu/stainedGlass/uThumb.png differ diff --git a/img/frames/dmu/stainedGlass/w.png b/img/frames/dmu/stainedGlass/w.png new file mode 100644 index 00000000..59d6f253 Binary files /dev/null and b/img/frames/dmu/stainedGlass/w.png differ diff --git a/img/frames/dmu/stainedGlass/wThumb.png b/img/frames/dmu/stainedGlass/wThumb.png new file mode 100644 index 00000000..46f47a7d Binary files /dev/null and b/img/frames/dmu/stainedGlass/wThumb.png differ diff --git a/img/frames/dmu/stamp.png b/img/frames/dmu/stamp.png new file mode 100644 index 00000000..d9d0f20f Binary files /dev/null and b/img/frames/dmu/stamp.png differ diff --git a/img/frames/dmu/stampThumb.png b/img/frames/dmu/stampThumb.png new file mode 100644 index 00000000..8b33656f Binary files /dev/null and b/img/frames/dmu/stampThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index 041ec705..9a9a8924 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -26,6 +26,7 @@ const frameNames = new Map ([ ['Colorshifted (Planar Chaos)', 'Colorshifted'], ['Brawl Legend Crowns', 'Brawl'], //showcase + ['Stained Glass (DMU)', 'DMUStainedGlass'], ['Golden Age (SNC)', 'SNCGilded'], ['Art Deco (SNC)', 'SNCArtDeco'], ['Skyscraper (SNC)', 'SNCSkyscraper'], diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index 08d776af..cbc86a77 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:'Stained Glass (DMU)', value:'DMUStainedGlass'}, {name:'Golden Age (SNC)', value:'SNCGilded'}, {name:'Art Deco (SNC)', value:'SNCArtDeco'}, {name:'Skyscraper (SNC)', value:'SNCSkyscraper'}, diff --git a/js/frames/packDMUStainedGlass.js b/js/frames/packDMUStainedGlass.js new file mode 100644 index 00000000..66d711eb --- /dev/null +++ b/js/frames/packDMUStainedGlass.js @@ -0,0 +1,53 @@ +//Create objects for common properties across available frames +var bounds = {x:0.7747, y:0.8872, width:0.1747, height:0.0605}; +var bounds2 = {x:0.1134, y:0.0139, width:0.7734, height:0.0262}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/dmu/stainedGlass/w.png'}, + {name:'Blue Frame', src:'/img/frames/dmu/stainedGlass/u.png'}, + {name:'Black Frame', src:'/img/frames/dmu/stainedGlass/b.png'}, + {name:'Red Frame', src:'/img/frames/dmu/stainedGlass/r.png'}, + {name:'Green Frame', src:'/img/frames/dmu/stainedGlass/g.png'}, + {name:'Multicolored Frame', src:'/img/frames/dmu/stainedGlass/m.png'}, + {name:'White Power/Toughness', src:'/img/frames/dmu/stainedGlass/pt/w.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/dmu/stainedGlass/pt/u.png', bounds:bounds}, + {name:'Black Power/Toughness', src:'/img/frames/dmu/stainedGlass/pt/b.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/dmu/stainedGlass/pt/r.png', bounds:bounds}, + {name:'Green Power/Toughness', src:'/img/frames/dmu/stainedGlass/pt/g.png', bounds:bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/dmu/stainedGlass/pt/m.png', bounds:bounds}, + {name:'White Legend Crown', src:'/img/frames/dmu/stainedGlass/crowns/w.png', bounds:bounds2}, + {name:'Blue Legend Crown', src:'/img/frames/dmu/stainedGlass/crowns/u.png', bounds:bounds2}, + {name:'Black Legend Crown', src:'/img/frames/dmu/stainedGlass/crowns/b.png', bounds:bounds2}, + {name:'Red Legend Crown', src:'/img/frames/dmu/stainedGlass/crowns/r.png', bounds:bounds2}, + {name:'Green Legend Crown', src:'/img/frames/dmu/stainedGlass/crowns/g.png', bounds:bounds2}, + {name:'Multicolored Legend Crown', src:'/img/frames/dmu/stainedGlass/crowns/m.png', bounds:bounds2}, + {name:'Rare Stamp', src:'/img/frames/dmu/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 = 'dmuStainedGlass'; + //art bounds + card.artBounds = {x:0.04, y:0.1105, width:0.92, height:0.4462}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, 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.0613, 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.0522, 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.281, size:0.0362, color:"white"}, + 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"} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file