diff --git a/img/frames/m15/spree/b.png b/img/frames/m15/spree/b.png new file mode 100644 index 00000000..cb26873b Binary files /dev/null and b/img/frames/m15/spree/b.png differ diff --git a/img/frames/m15/spree/bThumb.png b/img/frames/m15/spree/bThumb.png new file mode 100644 index 00000000..80aabd25 Binary files /dev/null and b/img/frames/m15/spree/bThumb.png differ diff --git a/img/frames/m15/spree/border.png b/img/frames/m15/spree/border.png new file mode 100644 index 00000000..dd01cf96 Binary files /dev/null and b/img/frames/m15/spree/border.png differ diff --git a/img/frames/m15/spree/borderThumb.png b/img/frames/m15/spree/borderThumb.png new file mode 100644 index 00000000..ee2789a5 Binary files /dev/null and b/img/frames/m15/spree/borderThumb.png differ diff --git a/img/frames/m15/spree/frame.png b/img/frames/m15/spree/frame.png new file mode 100644 index 00000000..3c7265dd Binary files /dev/null and b/img/frames/m15/spree/frame.png differ diff --git a/img/frames/m15/spree/frameThumb.png b/img/frames/m15/spree/frameThumb.png new file mode 100644 index 00000000..72e99744 Binary files /dev/null and b/img/frames/m15/spree/frameThumb.png differ diff --git a/img/frames/m15/spree/g.png b/img/frames/m15/spree/g.png new file mode 100644 index 00000000..0195024e Binary files /dev/null and b/img/frames/m15/spree/g.png differ diff --git a/img/frames/m15/spree/gThumb.png b/img/frames/m15/spree/gThumb.png new file mode 100644 index 00000000..a6c9e0fa Binary files /dev/null and b/img/frames/m15/spree/gThumb.png differ diff --git a/img/frames/m15/spree/m.png b/img/frames/m15/spree/m.png new file mode 100644 index 00000000..ba5952b3 Binary files /dev/null and b/img/frames/m15/spree/m.png differ diff --git a/img/frames/m15/spree/mThumb.png b/img/frames/m15/spree/mThumb.png new file mode 100644 index 00000000..353c4f1a Binary files /dev/null and b/img/frames/m15/spree/mThumb.png differ diff --git a/img/frames/m15/spree/pinline.png b/img/frames/m15/spree/pinline.png new file mode 100644 index 00000000..1c226709 Binary files /dev/null and b/img/frames/m15/spree/pinline.png differ diff --git a/img/frames/m15/spree/pinlineThumb.png b/img/frames/m15/spree/pinlineThumb.png new file mode 100644 index 00000000..a0142895 Binary files /dev/null and b/img/frames/m15/spree/pinlineThumb.png differ diff --git a/img/frames/m15/spree/r.png b/img/frames/m15/spree/r.png new file mode 100644 index 00000000..f165ac24 Binary files /dev/null and b/img/frames/m15/spree/r.png differ diff --git a/img/frames/m15/spree/rThumb.png b/img/frames/m15/spree/rThumb.png new file mode 100644 index 00000000..6d3ad632 Binary files /dev/null and b/img/frames/m15/spree/rThumb.png differ diff --git a/img/frames/m15/spree/snow/b.png b/img/frames/m15/spree/snow/b.png new file mode 100644 index 00000000..54b04207 Binary files /dev/null and b/img/frames/m15/spree/snow/b.png differ diff --git a/img/frames/m15/spree/snow/bThumb.png b/img/frames/m15/spree/snow/bThumb.png new file mode 100644 index 00000000..8ee0dd92 Binary files /dev/null and b/img/frames/m15/spree/snow/bThumb.png differ diff --git a/img/frames/m15/spree/snow/g.png b/img/frames/m15/spree/snow/g.png new file mode 100644 index 00000000..40b943fb Binary files /dev/null and b/img/frames/m15/spree/snow/g.png differ diff --git a/img/frames/m15/spree/snow/gThumb.png b/img/frames/m15/spree/snow/gThumb.png new file mode 100644 index 00000000..bef156cc Binary files /dev/null and b/img/frames/m15/spree/snow/gThumb.png differ diff --git a/img/frames/m15/spree/snow/m.png b/img/frames/m15/spree/snow/m.png new file mode 100644 index 00000000..59354be8 Binary files /dev/null and b/img/frames/m15/spree/snow/m.png differ diff --git a/img/frames/m15/spree/snow/mThumb.png b/img/frames/m15/spree/snow/mThumb.png new file mode 100644 index 00000000..ca38da89 Binary files /dev/null and b/img/frames/m15/spree/snow/mThumb.png differ diff --git a/img/frames/m15/spree/snow/r.png b/img/frames/m15/spree/snow/r.png new file mode 100644 index 00000000..951b9c34 Binary files /dev/null and b/img/frames/m15/spree/snow/r.png differ diff --git a/img/frames/m15/spree/snow/rThumb.png b/img/frames/m15/spree/snow/rThumb.png new file mode 100644 index 00000000..28378ffe Binary files /dev/null and b/img/frames/m15/spree/snow/rThumb.png differ diff --git a/img/frames/m15/spree/snow/u.png b/img/frames/m15/spree/snow/u.png new file mode 100644 index 00000000..9ae266bd Binary files /dev/null and b/img/frames/m15/spree/snow/u.png differ diff --git a/img/frames/m15/spree/snow/uThumb.png b/img/frames/m15/spree/snow/uThumb.png new file mode 100644 index 00000000..1fc9442c Binary files /dev/null and b/img/frames/m15/spree/snow/uThumb.png differ diff --git a/img/frames/m15/spree/snow/w.png b/img/frames/m15/spree/snow/w.png new file mode 100644 index 00000000..8172cc0a Binary files /dev/null and b/img/frames/m15/spree/snow/w.png differ diff --git a/img/frames/m15/spree/snow/wThumb.png b/img/frames/m15/spree/snow/wThumb.png new file mode 100644 index 00000000..11bd5fea Binary files /dev/null and b/img/frames/m15/spree/snow/wThumb.png differ diff --git a/img/frames/m15/spree/title.png b/img/frames/m15/spree/title.png new file mode 100644 index 00000000..6b2d7b76 Binary files /dev/null and b/img/frames/m15/spree/title.png differ diff --git a/img/frames/m15/spree/titleThumb.png b/img/frames/m15/spree/titleThumb.png new file mode 100644 index 00000000..435b70c4 Binary files /dev/null and b/img/frames/m15/spree/titleThumb.png differ diff --git a/img/frames/m15/spree/u.png b/img/frames/m15/spree/u.png new file mode 100644 index 00000000..d392b91f Binary files /dev/null and b/img/frames/m15/spree/u.png differ diff --git a/img/frames/m15/spree/uThumb.png b/img/frames/m15/spree/uThumb.png new file mode 100644 index 00000000..4dbc3f3a Binary files /dev/null and b/img/frames/m15/spree/uThumb.png differ diff --git a/img/frames/m15/spree/ub/b.png b/img/frames/m15/spree/ub/b.png new file mode 100644 index 00000000..2be1ff3a Binary files /dev/null and b/img/frames/m15/spree/ub/b.png differ diff --git a/img/frames/m15/spree/ub/bThumb.png b/img/frames/m15/spree/ub/bThumb.png new file mode 100644 index 00000000..7d0d17b3 Binary files /dev/null and b/img/frames/m15/spree/ub/bThumb.png differ diff --git a/img/frames/m15/spree/ub/g.png b/img/frames/m15/spree/ub/g.png new file mode 100644 index 00000000..f725ed54 Binary files /dev/null and b/img/frames/m15/spree/ub/g.png differ diff --git a/img/frames/m15/spree/ub/gThumb.png b/img/frames/m15/spree/ub/gThumb.png new file mode 100644 index 00000000..3cc0391d Binary files /dev/null and b/img/frames/m15/spree/ub/gThumb.png differ diff --git a/img/frames/m15/spree/ub/m.png b/img/frames/m15/spree/ub/m.png new file mode 100644 index 00000000..e4802efe Binary files /dev/null and b/img/frames/m15/spree/ub/m.png differ diff --git a/img/frames/m15/spree/ub/mThumb.png b/img/frames/m15/spree/ub/mThumb.png new file mode 100644 index 00000000..b139a8f4 Binary files /dev/null and b/img/frames/m15/spree/ub/mThumb.png differ diff --git a/img/frames/m15/spree/ub/r.png b/img/frames/m15/spree/ub/r.png new file mode 100644 index 00000000..638fec57 Binary files /dev/null and b/img/frames/m15/spree/ub/r.png differ diff --git a/img/frames/m15/spree/ub/rThumb.png b/img/frames/m15/spree/ub/rThumb.png new file mode 100644 index 00000000..22f21c9c Binary files /dev/null and b/img/frames/m15/spree/ub/rThumb.png differ diff --git a/img/frames/m15/spree/ub/u.png b/img/frames/m15/spree/ub/u.png new file mode 100644 index 00000000..38f9ded5 Binary files /dev/null and b/img/frames/m15/spree/ub/u.png differ diff --git a/img/frames/m15/spree/ub/uThumb.png b/img/frames/m15/spree/ub/uThumb.png new file mode 100644 index 00000000..7f4c9edd Binary files /dev/null and b/img/frames/m15/spree/ub/uThumb.png differ diff --git a/img/frames/m15/spree/ub/w.png b/img/frames/m15/spree/ub/w.png new file mode 100644 index 00000000..b95a4169 Binary files /dev/null and b/img/frames/m15/spree/ub/w.png differ diff --git a/img/frames/m15/spree/ub/wThumb.png b/img/frames/m15/spree/ub/wThumb.png new file mode 100644 index 00000000..54547a65 Binary files /dev/null and b/img/frames/m15/spree/ub/wThumb.png differ diff --git a/img/frames/m15/spree/w.png b/img/frames/m15/spree/w.png new file mode 100644 index 00000000..cf9f14ef Binary files /dev/null and b/img/frames/m15/spree/w.png differ diff --git a/img/frames/m15/spree/wThumb.png b/img/frames/m15/spree/wThumb.png new file mode 100644 index 00000000..b4059b6a Binary files /dev/null and b/img/frames/m15/spree/wThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index f6b41952..6a47fa73 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -16,6 +16,8 @@ const frameNames = new Map ([ ['Color Identity Pips', 'M15CIPips'], ['"The List" Stamp', 'TheList'], ['Lands', 'M15Lands'], + ['Spree (Outlaws of Thunder Junction)', 'Spree'], + ['Spree (Universes Beyond)', 'SpreeUB'], ['Cases (Murders at Karlov Manor)', 'Case'], ['Battles (March of the Machine)', 'Battle'], ['Prototype (Brothers\' War)', 'Prototype'], diff --git a/js/frames/groupStandard-3.js b/js/frames/groupStandard-3.js index 5181f049..b25cfc01 100644 --- a/js/frames/groupStandard-3.js +++ b/js/frames/groupStandard-3.js @@ -13,6 +13,7 @@ loadFramePacks([ {name:'"The List" Stamp', value:'TheList'}, {name:'Other Frames', value:'disabled'}, {name:'Lands', value:'M15Lands'}, + {name:'Spree (Outlaws of Thunder Junction)', value:'Spree'}, {name:'Cases (Murders at Karlov Manor)', value:'Case'}, {name:'Battle (March of the Machine)', value:'Battle'}, {name:'Prototype (Brothers\' War)', value:'Prototype'}, diff --git a/js/frames/groupUniversesBeyond.js b/js/frames/groupUniversesBeyond.js index aafd56bc..83a1ce76 100644 --- a/js/frames/groupUniversesBeyond.js +++ b/js/frames/groupUniversesBeyond.js @@ -5,6 +5,7 @@ loadFramePacks([ {name:'Universes Beyond (Extended art)', value:'UBExtendedArt'}, {name:'Sagas (Universes Beyond)', value:'SagaUB'}, + {name:'Spree (Universes Beyond)', value:'SpreeUB'}, {name:'Addons', value:'disabled'}, {name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'}, diff --git a/js/frames/packSpree.js b/js/frames/packSpree.js new file mode 100644 index 00000000..f17df6f1 --- /dev/null +++ b/js/frames/packSpree.js @@ -0,0 +1,52 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/spree/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/spree/title.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/regular/m15MaskRules.png', name:'Rules'}, {src:'/img/frames/m15/spree/frame.png', name:'Frame'}, {src:'/img/frames/m15/spree/border.png', name:'Border'}]; +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/m15/spree/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/m15/spree/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/m15/spree/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/m15/spree/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/m15/spree/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/m15/spree/m.png', masks:masks}, + + {name:'White Snow Frame', src:'/img/frames/m15/spree/snow/w.png', masks:masks}, + {name:'Blue Snow Frame', src:'/img/frames/m15/spree/snow/u.png', masks:masks}, + {name:'Black Snow Frame', src:'/img/frames/m15/spree/snow/b.png', masks:masks}, + {name:'Red Snow Frame', src:'/img/frames/m15/spree/snow/r.png', masks:masks}, + {name:'Green Snow Frame', src:'/img/frames/m15/spree/snow/g.png', masks:masks}, + {name:'Multicolored Snow Frame', src:'/img/frames/m15/spree/snow/m.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() { + + //resets things so that every frame doesn't have to + await resetCardIrregularities([2010,2814,0,0]); + //sets card version + card.version = 'm15Spree'; + //art bounds + card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:1862/2010, 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:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362}, + 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'} + }); +} +//loads available frames +loadFramePack(); +//Only for the main version as the webpage loads: +if (!card.text) { + document.querySelector('#loadFrameVersion').click(); +} \ No newline at end of file diff --git a/js/frames/packSpreeUB.js b/js/frames/packSpreeUB.js new file mode 100644 index 00000000..83f90373 --- /dev/null +++ b/js/frames/packSpreeUB.js @@ -0,0 +1,55 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/spree/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/spree/title.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/regular/m15MaskRules.png', name:'Rules'}, {src:'/img/frames/m15/spree/frame.png', name:'Frame'}, {src:'/img/frames/m15/spree/border.png', name:'Border'}]; +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; +var bounds2 = {x:0.4254, y:0.9005, width:0.1494, height:0.0486}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/m15/spree/ub/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/m15/spree/ub/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/m15/spree/ub/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/m15/spree/ub/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/m15/spree/ub/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/m15/spree/ub/m.png', masks:masks}, + + {name:'White Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/w.png', bounds:bounds2}, + {name:'Blue Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/u.png', bounds:bounds2}, + {name:'Black Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/b.png', bounds:bounds2}, + {name:'Red Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/r.png', bounds:bounds2}, + {name:'Green Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/g.png', bounds:bounds2}, + {name:'Multicolored Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/m.png', bounds:bounds2}, + {name:'Gray Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/gray.png', bounds:bounds2}, + {name:'Gold Holo Stamp', src:'/img/frames/m15/ub/regular/stamp/gold.png', bounds:bounds2} +]; +//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([2010,2814,0,0]); + //sets card version + card.version = 'm15SpreeUB'; + //art bounds + card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:1862/2010, 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:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362}, + 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'} + }); +} +//loads available frames +loadFramePack(); +//Only for the main version as the webpage loads: +if (!card.text) { + document.querySelector('#loadFrameVersion').click(); +} \ No newline at end of file