Add Prototype frame (Brothers' War)


BIN
img/frames/m15/prototype/regular/manaCostB.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/m15/prototype/regular/manaCostBThumb.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
img/frames/m15/prototype/regular/manaCostG.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/m15/prototype/regular/manaCostGThumb.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongB.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongBThumb.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongG.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongGThumb.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongM.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongMThumb.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongR.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongRThumb.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongU.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongUThumb.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongW.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/m15/prototype/regular/manaCostLongWThumb.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
img/frames/m15/prototype/regular/manaCostM.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
img/frames/m15/prototype/regular/manaCostMThumb.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
img/frames/m15/prototype/regular/manaCostR.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/m15/prototype/regular/manaCostRThumb.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
img/frames/m15/prototype/regular/manaCostU.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
img/frames/m15/prototype/regular/manaCostUThumb.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
img/frames/m15/prototype/regular/manaCostW.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
img/frames/m15/prototype/regular/manaCostWThumb.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
img/frames/m15/prototype/regular/maskPinline.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
img/frames/m15/prototype/regular/maskPinlineThumb.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
img/frames/m15/prototype/regular/ptB.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
img/frames/m15/prototype/regular/ptBThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/m15/prototype/regular/ptG.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
img/frames/m15/prototype/regular/ptGThumb.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
img/frames/m15/prototype/regular/ptM.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
img/frames/m15/prototype/regular/ptMThumb.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
img/frames/m15/prototype/regular/ptR.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
img/frames/m15/prototype/regular/ptRThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/m15/prototype/regular/ptU.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
img/frames/m15/prototype/regular/ptUThumb.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
img/frames/m15/prototype/regular/ptW.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
img/frames/m15/prototype/regular/ptWThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/m15/prototype/regular/rulesB.png
Normal file
After Width: | Height: | Size: 274 KiB |
BIN
img/frames/m15/prototype/regular/rulesBThumb.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
img/frames/m15/prototype/regular/rulesG.png
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
img/frames/m15/prototype/regular/rulesGThumb.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
img/frames/m15/prototype/regular/rulesM.png
Normal file
After Width: | Height: | Size: 225 KiB |
BIN
img/frames/m15/prototype/regular/rulesMThumb.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
img/frames/m15/prototype/regular/rulesR.png
Normal file
After Width: | Height: | Size: 280 KiB |
BIN
img/frames/m15/prototype/regular/rulesRThumb.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
img/frames/m15/prototype/regular/rulesU.png
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
img/frames/m15/prototype/regular/rulesUThumb.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
img/frames/m15/prototype/regular/rulesW.png
Normal file
After Width: | Height: | Size: 131 KiB |
BIN
img/frames/m15/prototype/regular/rulesWThumb.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
@@ -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'},
|
||||
|
73
js/frames/packPrototype.js
Normal file
@@ -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();
|
||||
}
|