Update invocation frame, add MUL invocation frame
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.5 MiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 29 KiB |
BIN
img/frames/invocation/accents.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
img/frames/invocation/accentsThumb.png
Normal file
After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 29 KiB |
BIN
img/frames/invocation/mul/a.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
img/frames/invocation/mul/aThumb.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
img/frames/invocation/mul/b.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
img/frames/invocation/mul/bThumb.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
img/frames/invocation/mul/g.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
img/frames/invocation/mul/gThumb.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
img/frames/invocation/mul/m.png
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
img/frames/invocation/mul/mThumb.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
img/frames/invocation/mul/pt.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/invocation/mul/ptThumb.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
img/frames/invocation/mul/r.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
img/frames/invocation/mul/rThumb.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
img/frames/invocation/mul/u.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
img/frames/invocation/mul/uThumb.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
img/frames/invocation/mul/w.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
img/frames/invocation/mul/wThumb.png
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 28 KiB |
@@ -2322,6 +2322,7 @@ function writeText(textObject, targetContext) {
|
|||||||
rawText = rawText.replace(/\/\//g, '{lns}');
|
rawText = rawText.replace(/\/\//g, '{lns}');
|
||||||
}
|
}
|
||||||
if (autoFramePack == 'Seventh' || autoFramePack == '8th' || autoFramePack == 'Praetors') {
|
if (autoFramePack == 'Seventh' || autoFramePack == '8th' || autoFramePack == 'Praetors') {
|
||||||
|
if (autoFramePack == 'Seventh' || autoFramePack == '8th' || autoFramePack == 'Praetors' || card.version == 'invocation') {
|
||||||
rawText = rawText.replace(/{flavor}/g, '{oldflavor}');
|
rawText = rawText.replace(/{flavor}/g, '{oldflavor}');
|
||||||
}
|
}
|
||||||
rawText = rawText.replace(/ - /g, ' — ');
|
rawText = rawText.replace(/ - /g, ' — ');
|
||||||
|
@@ -65,6 +65,7 @@ const frameNames = new Map ([
|
|||||||
['Signature Spellbook (Jace/Gideon)', 'SignatureSpellbook'],
|
['Signature Spellbook (Jace/Gideon)', 'SignatureSpellbook'],
|
||||||
['Ixalan Maps', 'Ixalan'],
|
['Ixalan Maps', 'Ixalan'],
|
||||||
['Amonkhet Invocations (u/Smyris)', 'Invocation'],
|
['Amonkhet Invocations (u/Smyris)', 'Invocation'],
|
||||||
|
['Amonkhet Invocations (Multiverse Legends)', 'InvocationMUL'],
|
||||||
['Kaladesh Inventions', 'Invention'],
|
['Kaladesh Inventions', 'Invention'],
|
||||||
['BFZ Expeditions (2015)', 'ExpeditionBFZ-1'],
|
['BFZ Expeditions (2015)', 'ExpeditionBFZ-1'],
|
||||||
['SDCC15 (Blackout)', 'SDCC15'],
|
['SDCC15 (Blackout)', 'SDCC15'],
|
||||||
|
@@ -40,6 +40,7 @@ loadFramePacks([
|
|||||||
{name:'Signature Spellbook (Jace/Gideon)', value:'SignatureSpellbook'},
|
{name:'Signature Spellbook (Jace/Gideon)', value:'SignatureSpellbook'},
|
||||||
{name:'Ixalan Maps', value:'Ixalan'},
|
{name:'Ixalan Maps', value:'Ixalan'},
|
||||||
{name:'Amonkhet Invocations (u/Smyris)', value:'Invocation'},
|
{name:'Amonkhet Invocations (u/Smyris)', value:'Invocation'},
|
||||||
|
{name:'Amonkhet Invocations (Multiverse Legends)', value:'InvocationMUL'},
|
||||||
{name:'Kaladesh Inventions', value:'Invention'},
|
{name:'Kaladesh Inventions', value:'Invention'},
|
||||||
{name:'BFZ Expeditions (2015)', value:'ExpeditionBFZ-1'},
|
{name:'BFZ Expeditions (2015)', value:'ExpeditionBFZ-1'},
|
||||||
{name:'SDCC15 (Blackout)', value:'SDCC15'},
|
{name:'SDCC15 (Blackout)', value:'SDCC15'},
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
//Create objects for common properties across available frames
|
//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 masks = [{src:'img/frames/invocation/accents.png', name:'Accents'}];
|
||||||
var bounds = {x:0.8587, y:0.8186, width:0.062, height:0.1258};
|
var bounds = {x:0.8587, y:0.8186, width:0.062, height:0.1258};
|
||||||
var bounds2 = {x:0.0527, y:0.0496, width:0.8947, height:0.0515};
|
var bounds2 = {x:0.0527, y:0.0496, width:0.8947, height:0.0515};
|
||||||
//defines available frames
|
//defines available frames
|
||||||
availableFrames = [
|
availableFrames = [
|
||||||
{name:'White Frame', src:'/img/frames/invocation/w.png'},
|
{name:'White Frame', src:'/img/frames/invocation/w.png', masks: masks},
|
||||||
{name:'Blue Frame', src:'/img/frames/invocation/u.png'},
|
{name:'Blue Frame', src:'/img/frames/invocation/u.png', masks: masks},
|
||||||
{name:'Black Frame', src:'/img/frames/invocation/b.png'},
|
{name:'Black Frame', src:'/img/frames/invocation/b.png', masks: masks},
|
||||||
{name:'Red Frame', src:'/img/frames/invocation/r.png'},
|
{name:'Red Frame', src:'/img/frames/invocation/r.png', masks: masks},
|
||||||
{name:'Green Frame', src:'/img/frames/invocation/g.png'},
|
{name:'Green Frame', src:'/img/frames/invocation/g.png', masks: masks},
|
||||||
{name:'Multicolored Frame', src:'/img/frames/invocation/m.png'},
|
{name:'Multicolored Frame', src:'/img/frames/invocation/m.png', masks: masks},
|
||||||
{name:'Artifact Frame', src:'/img/frames/invocation/a.png'},
|
{name:'Artifact Frame', src:'/img/frames/invocation/a.png', masks: masks},
|
||||||
{name:'Power/Toughness', src:'/img/frames/invocation/pt.png', bounds:bounds},
|
{name:'Power/Toughness', src:'/img/frames/invocation/pt.png', bounds:bounds},
|
||||||
{name:'Set Symbol Cover', src:'/img/frames/invocation/set.png', bounds:{x:0.8494, y:0.5705, width:0.0907, height:0.0434}},
|
{name:'Set Symbol Cover', src:'/img/frames/invocation/set.png', bounds:{x:0.8494, y:0.5705, width:0.0907, height:0.0434}},
|
||||||
{name:'Mana Bracket (1)', src:'/img/frames/invocation/mana/1.png', bounds:bounds2},
|
{name:'Mana Bracket (1)', src:'/img/frames/invocation/mana/1.png', bounds:bounds2},
|
||||||
@@ -34,7 +34,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
|||||||
card.version = 'invocation';
|
card.version = 'invocation';
|
||||||
loadScript('/js/frames/manaSymbolsOutline.js');
|
loadScript('/js/frames/manaSymbolsOutline.js');
|
||||||
//art bounds
|
//art bounds
|
||||||
card.artBounds = {x:0, y:0.1067, width:1, height:0.4386};
|
card.artBounds = {x:173/1500, y:313/2100, width:1150/1500, height:819/2100};
|
||||||
autoFitArt();
|
autoFitArt();
|
||||||
//set symbol bounds
|
//set symbol bounds
|
||||||
card.setSymbolBounds = {x:0.8954, y:0.5910, width:0.06, height:0.0353, vertical:'center', horizontal: 'center'};
|
card.setSymbolBounds = {x:0.8954, y:0.5910, width:0.06, height:0.0353, vertical:'center', horizontal: 'center'};
|
||||||
|
42
js/frames/packInvocationMUL.js
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
//Create objects for common properties across available frames
|
||||||
|
var masks = [{src:'img/frames/invocation/accents.png', name:'Accents'}];
|
||||||
|
var bounds = {x:0.8587, y:0.8186, width:0.062, height:0.1258};
|
||||||
|
//defines available frames
|
||||||
|
availableFrames = [
|
||||||
|
{name:'White Frame', src:'/img/frames/invocation/mul/w.png', masks: masks},
|
||||||
|
{name:'Blue Frame', src:'/img/frames/invocation/mul/u.png', masks: masks},
|
||||||
|
{name:'Black Frame', src:'/img/frames/invocation/mul/b.png', masks: masks},
|
||||||
|
{name:'Red Frame', src:'/img/frames/invocation/mul/r.png', masks: masks},
|
||||||
|
{name:'Green Frame', src:'/img/frames/invocation/mul/g.png', masks: masks},
|
||||||
|
{name:'Multicolored Frame', src:'/img/frames/invocation/mul/m.png', masks: masks},
|
||||||
|
{name:'Artifact Frame', src:'/img/frames/invocation/mul/a.png', masks: masks},
|
||||||
|
{name:'Power/Toughness', src:'/img/frames/invocation/mul/pt.png', bounds:bounds}
|
||||||
|
];
|
||||||
|
//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 = 'invocation';
|
||||||
|
//art bounds
|
||||||
|
card.artBounds = {x:173/1500, y:313/2100, width:1150/1500, height:819/2100};
|
||||||
|
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({ //old color: 24150E
|
||||||
|
mana: {name:'Mana Cost', text:'', y:0.0613, width:0.93, height:78/2100, oneLine:true, size:78/1638, align:'right', manaCost:true, manaSpacing:0, shadowX:-0.001, shadowY:0.0029},
|
||||||
|
title: {name:'Title', text:'', x:0.0834, y:0.05, width:0.8292, height:0.0515, oneLine:true, font:'belerenb', size:0.0381, color:'black'},
|
||||||
|
type: {name:'Type', text:'', x:0.0767, y:1198/2100, width:0.8292, height:97/2100, oneLine:true, font:'belerenb', size:0.0324, color:'black'},
|
||||||
|
rules: {name:'Rules Text', text:'', x:148 /1500, y:1349/2100 , width:1204/1500, height:579/2100, size:0.0362},
|
||||||
|
pt: {name:'Power/Toughness', text:'', x:0.8707, y:0.8315, width:0.0387, height:0.0929, size:0.0372, font:'belerenbsc', align:'center', color:'black'}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//loads available frames
|
||||||
|
loadFramePack();
|