diff --git a/img/frames/m15/prototype/regular/manaCostB.png b/img/frames/m15/prototype/regular/manaCostB.png new file mode 100644 index 00000000..46705b67 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostB.png differ diff --git a/img/frames/m15/prototype/regular/manaCostBThumb.png b/img/frames/m15/prototype/regular/manaCostBThumb.png new file mode 100644 index 00000000..ca8fc398 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostBThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostG.png b/img/frames/m15/prototype/regular/manaCostG.png new file mode 100644 index 00000000..7c37acd5 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostG.png differ diff --git a/img/frames/m15/prototype/regular/manaCostGThumb.png b/img/frames/m15/prototype/regular/manaCostGThumb.png new file mode 100644 index 00000000..75565692 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostGThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongB.png b/img/frames/m15/prototype/regular/manaCostLongB.png new file mode 100644 index 00000000..87a2fc03 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongB.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongBThumb.png b/img/frames/m15/prototype/regular/manaCostLongBThumb.png new file mode 100644 index 00000000..8715d990 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongBThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongG.png b/img/frames/m15/prototype/regular/manaCostLongG.png new file mode 100644 index 00000000..1a7aceaa Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongG.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongGThumb.png b/img/frames/m15/prototype/regular/manaCostLongGThumb.png new file mode 100644 index 00000000..8533997e Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongGThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongM.png b/img/frames/m15/prototype/regular/manaCostLongM.png new file mode 100644 index 00000000..1fe4dea8 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongM.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongMThumb.png b/img/frames/m15/prototype/regular/manaCostLongMThumb.png new file mode 100644 index 00000000..1720dd65 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongMThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongR.png b/img/frames/m15/prototype/regular/manaCostLongR.png new file mode 100644 index 00000000..a4efed23 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongR.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongRThumb.png b/img/frames/m15/prototype/regular/manaCostLongRThumb.png new file mode 100644 index 00000000..7536fa30 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongRThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongU.png b/img/frames/m15/prototype/regular/manaCostLongU.png new file mode 100644 index 00000000..d50d1acd Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongU.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongUThumb.png b/img/frames/m15/prototype/regular/manaCostLongUThumb.png new file mode 100644 index 00000000..45aa96c7 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongUThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongW.png b/img/frames/m15/prototype/regular/manaCostLongW.png new file mode 100644 index 00000000..4f72dc9b Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongW.png differ diff --git a/img/frames/m15/prototype/regular/manaCostLongWThumb.png b/img/frames/m15/prototype/regular/manaCostLongWThumb.png new file mode 100644 index 00000000..8afa74ef Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostLongWThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostM.png b/img/frames/m15/prototype/regular/manaCostM.png new file mode 100644 index 00000000..d5a2dd34 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostM.png differ diff --git a/img/frames/m15/prototype/regular/manaCostMThumb.png b/img/frames/m15/prototype/regular/manaCostMThumb.png new file mode 100644 index 00000000..65c8ef80 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostMThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostR.png b/img/frames/m15/prototype/regular/manaCostR.png new file mode 100644 index 00000000..19c6e163 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostR.png differ diff --git a/img/frames/m15/prototype/regular/manaCostRThumb.png b/img/frames/m15/prototype/regular/manaCostRThumb.png new file mode 100644 index 00000000..1f3e8e88 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostRThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostU.png b/img/frames/m15/prototype/regular/manaCostU.png new file mode 100644 index 00000000..4608a09c Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostU.png differ diff --git a/img/frames/m15/prototype/regular/manaCostUThumb.png b/img/frames/m15/prototype/regular/manaCostUThumb.png new file mode 100644 index 00000000..068010a2 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostUThumb.png differ diff --git a/img/frames/m15/prototype/regular/manaCostW.png b/img/frames/m15/prototype/regular/manaCostW.png new file mode 100644 index 00000000..7cab0d99 Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostW.png differ diff --git a/img/frames/m15/prototype/regular/manaCostWThumb.png b/img/frames/m15/prototype/regular/manaCostWThumb.png new file mode 100644 index 00000000..7498019f Binary files /dev/null and b/img/frames/m15/prototype/regular/manaCostWThumb.png differ diff --git a/img/frames/m15/prototype/regular/maskPinline.png b/img/frames/m15/prototype/regular/maskPinline.png new file mode 100644 index 00000000..df4cadee Binary files /dev/null and b/img/frames/m15/prototype/regular/maskPinline.png differ diff --git a/img/frames/m15/prototype/regular/maskPinlineThumb.png b/img/frames/m15/prototype/regular/maskPinlineThumb.png new file mode 100644 index 00000000..f4b08283 Binary files /dev/null and b/img/frames/m15/prototype/regular/maskPinlineThumb.png differ diff --git a/img/frames/m15/prototype/regular/ptB.png b/img/frames/m15/prototype/regular/ptB.png new file mode 100644 index 00000000..f092a53e Binary files /dev/null and b/img/frames/m15/prototype/regular/ptB.png differ diff --git a/img/frames/m15/prototype/regular/ptBThumb.png b/img/frames/m15/prototype/regular/ptBThumb.png new file mode 100644 index 00000000..cd3c5a5c Binary files /dev/null and b/img/frames/m15/prototype/regular/ptBThumb.png differ diff --git a/img/frames/m15/prototype/regular/ptG.png b/img/frames/m15/prototype/regular/ptG.png new file mode 100644 index 00000000..5b5dd749 Binary files /dev/null and b/img/frames/m15/prototype/regular/ptG.png differ diff --git a/img/frames/m15/prototype/regular/ptGThumb.png b/img/frames/m15/prototype/regular/ptGThumb.png new file mode 100644 index 00000000..2076cd7d Binary files /dev/null and b/img/frames/m15/prototype/regular/ptGThumb.png differ diff --git a/img/frames/m15/prototype/regular/ptM.png b/img/frames/m15/prototype/regular/ptM.png new file mode 100644 index 00000000..519dc033 Binary files /dev/null and b/img/frames/m15/prototype/regular/ptM.png differ diff --git a/img/frames/m15/prototype/regular/ptMThumb.png b/img/frames/m15/prototype/regular/ptMThumb.png new file mode 100644 index 00000000..dd742dfd Binary files /dev/null and b/img/frames/m15/prototype/regular/ptMThumb.png differ diff --git a/img/frames/m15/prototype/regular/ptR.png b/img/frames/m15/prototype/regular/ptR.png new file mode 100644 index 00000000..79236ca0 Binary files /dev/null and b/img/frames/m15/prototype/regular/ptR.png differ diff --git a/img/frames/m15/prototype/regular/ptRThumb.png b/img/frames/m15/prototype/regular/ptRThumb.png new file mode 100644 index 00000000..13a36ccd Binary files /dev/null and b/img/frames/m15/prototype/regular/ptRThumb.png differ diff --git a/img/frames/m15/prototype/regular/ptU.png b/img/frames/m15/prototype/regular/ptU.png new file mode 100644 index 00000000..860d56cf Binary files /dev/null and b/img/frames/m15/prototype/regular/ptU.png differ diff --git a/img/frames/m15/prototype/regular/ptUThumb.png b/img/frames/m15/prototype/regular/ptUThumb.png new file mode 100644 index 00000000..dbc2fd06 Binary files /dev/null and b/img/frames/m15/prototype/regular/ptUThumb.png differ diff --git a/img/frames/m15/prototype/regular/ptW.png b/img/frames/m15/prototype/regular/ptW.png new file mode 100644 index 00000000..4694922f Binary files /dev/null and b/img/frames/m15/prototype/regular/ptW.png differ diff --git a/img/frames/m15/prototype/regular/ptWThumb.png b/img/frames/m15/prototype/regular/ptWThumb.png new file mode 100644 index 00000000..dfd235a4 Binary files /dev/null and b/img/frames/m15/prototype/regular/ptWThumb.png differ diff --git a/img/frames/m15/prototype/regular/rulesB.png b/img/frames/m15/prototype/regular/rulesB.png new file mode 100644 index 00000000..88338579 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesB.png differ diff --git a/img/frames/m15/prototype/regular/rulesBThumb.png b/img/frames/m15/prototype/regular/rulesBThumb.png new file mode 100644 index 00000000..3fe89999 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesBThumb.png differ diff --git a/img/frames/m15/prototype/regular/rulesG.png b/img/frames/m15/prototype/regular/rulesG.png new file mode 100644 index 00000000..73844d50 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesG.png differ diff --git a/img/frames/m15/prototype/regular/rulesGThumb.png b/img/frames/m15/prototype/regular/rulesGThumb.png new file mode 100644 index 00000000..82c59d22 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesGThumb.png differ diff --git a/img/frames/m15/prototype/regular/rulesM.png b/img/frames/m15/prototype/regular/rulesM.png new file mode 100644 index 00000000..5c6d91ad Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesM.png differ diff --git a/img/frames/m15/prototype/regular/rulesMThumb.png b/img/frames/m15/prototype/regular/rulesMThumb.png new file mode 100644 index 00000000..bf66f6ae Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesMThumb.png differ diff --git a/img/frames/m15/prototype/regular/rulesR.png b/img/frames/m15/prototype/regular/rulesR.png new file mode 100644 index 00000000..3ecaae9e Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesR.png differ diff --git a/img/frames/m15/prototype/regular/rulesRThumb.png b/img/frames/m15/prototype/regular/rulesRThumb.png new file mode 100644 index 00000000..f810e9d0 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesRThumb.png differ diff --git a/img/frames/m15/prototype/regular/rulesU.png b/img/frames/m15/prototype/regular/rulesU.png new file mode 100644 index 00000000..c6a236e3 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesU.png differ diff --git a/img/frames/m15/prototype/regular/rulesUThumb.png b/img/frames/m15/prototype/regular/rulesUThumb.png new file mode 100644 index 00000000..0773c445 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesUThumb.png differ diff --git a/img/frames/m15/prototype/regular/rulesW.png b/img/frames/m15/prototype/regular/rulesW.png new file mode 100644 index 00000000..68ba5851 Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesW.png differ diff --git a/img/frames/m15/prototype/regular/rulesWThumb.png b/img/frames/m15/prototype/regular/rulesWThumb.png new file mode 100644 index 00000000..b0e949af Binary files /dev/null and b/img/frames/m15/prototype/regular/rulesWThumb.png differ diff --git a/js/frames/groupStandard-3.js b/js/frames/groupStandard-3.js index af2ec53c..29185c71 100644 --- a/js/frames/groupStandard-3.js +++ b/js/frames/groupStandard-3.js @@ -12,6 +12,7 @@ loadFramePacks([ {name:'"The List" Stamp', value:'TheList'}, {name:'Other Frames', value:'disabled'}, {name:'Lands', value:'M15Lands'}, + {name:'Prototype (Brothers\' War)', value:'Prototype'}, {name:'Class (D&D)', value:'Class'}, {name:'Snow (Kaldheim)', value:'M15Snow'}, {name:'Mutate (Ikoria)', value:'M15Mutate'}, diff --git a/js/frames/packPrototype.js b/js/frames/packPrototype.js new file mode 100644 index 00000000..1c049a5e --- /dev/null +++ b/js/frames/packPrototype.js @@ -0,0 +1,73 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/regular/m15MaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.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/regular/m15MaskFrame.png', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}]; +var masks2 = [{src:'/img/frames/m15/prototype/regular/maskPinline.png', name:'Pinline'}]; +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; + +//defines available frames +availableFrames = [ + {name:'Artifact Frame', src:'/img/frames/m15/regular/m15FrameA.png', masks:masks}, + {name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds}, + + {name:'White Prototype Rules', src:'/img/frames/m15/prototype/regular/rulesW.png', masks:masks2}, + {name:'Blue Prototype Rules', src:'/img/frames/m15/prototype/regular/rulesU.png', masks:masks2}, + {name:'Black Prototype Rules', src:'/img/frames/m15/prototype/regular/rulesB.png', masks:masks2}, + {name:'Red Prototype Rules', src:'/img/frames/m15/prototype/regular/rulesR.png', masks:masks2}, + {name:'Green Prototype Rules', src:'/img/frames/m15/prototype/regular/rulesG.png', masks:masks2}, + {name:'Multicolor Prototype Rules', src:'/img/frames/m15/prototype/regular/rulesM.png', masks:masks2}, + + {name:'White Prototype Mana Cost (Short)', src:'/img/frames/m15/prototype/regular/manaCostW.png'}, + {name:'White Prototype Mana Cost (Long)', src:'/img/frames/m15/prototype/regular/manaCostLongW.png'}, + {name:'Blue Prototype Mana Cost (Short)', src:'/img/frames/m15/prototype/regular/manaCostU.png'}, + {name:'Blue Prototype Mana Cost (Long)', src:'/img/frames/m15/prototype/regular/manaCostLongU.png'}, + {name:'Black Prototype Mana Cost (Short)', src:'/img/frames/m15/prototype/regular/manaCostB.png'}, + {name:'Black Prototype Mana Cost (Long)', src:'/img/frames/m15/prototype/regular/manaCostLongB.png'}, + {name:'Red Prototype Mana Cost (Short)', src:'/img/frames/m15/prototype/regular/manaCostR.png'}, + {name:'Red Prototype Mana Cost (Long)', src:'/img/frames/m15/prototype/regular/manaCostLongR.png'}, + {name:'Green Prototype Mana Cost (Short)', src:'/img/frames/m15/prototype/regular/manaCostG.png'}, + {name:'Green Prototype Mana Cost (Long)', src:'/img/frames/m15/prototype/regular/manaCostLongG.png'}, + {name:'Multicolor Prototype Mana Cost (Short)', src:'/img/frames/m15/prototype/regular/manaCostM.png'}, + {name:'Multicolor Prototype Mana Cost (Long)', src:'/img/frames/m15/prototype/regular/manaCostLongM.png'}, + + {name:'White Prototype P/T', src:'/img/frames/m15/prototype/regular/ptW.png'}, + {name:'Blue Prototype P/T', src:'/img/frames/m15/prototype/regular/ptU.png'}, + {name:'Black Prototype P/T', src:'/img/frames/m15/prototype/regular/ptB.png'}, + {name:'Red Prototype P/T', src:'/img/frames/m15/prototype/regular/ptR.png'}, + {name:'Green Prototype P/T', src:'/img/frames/m15/prototype/regular/ptG.png'}, + {name:'Multicolor Prototype P/T', src:'/img/frames/m15/prototype/regular/ptM.png'} +]; + +//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 = 'prototype'; + //art bounds + card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; + 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.72, y:0.7681, width:0.3867, height:0.2358}; + 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}, + type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:129/1500, y:1565/2100, width:1242/1500, height:359/2100, size:0.0295}, + 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'}, + mana2: {name:'Prototype Mana Cost', text:'', x:-24/1500, y:1340/2100, width:0.9292, height:71/2100, oneLine:true, size:72/2100, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + rules2: {name:'Prototype Rules', text:'Prototype {i}(You may cast this spell with different mana cost, color, and size. It keeps its abilities and types.){/i}', x:129/1500, y:1335/2100, width:1041/1500, height:193/2100, size:0.0295}, + pt2: {name:'Prototype P/T', text:'', x:0.7928, y:0.6935, width:0.1367, height:0.0372, size:0.0372, color:'white', 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