Add Vault frame
BIN
img/frames/vault/a.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
BIN
img/frames/vault/aThumb.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/vault/b.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
BIN
img/frames/vault/bThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/vault/crown/a.png
Normal file
After Width: | Height: | Size: 190 KiB |
BIN
img/frames/vault/crown/aThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/crown/b.png
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
img/frames/vault/crown/bThumb.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
img/frames/vault/crown/g.png
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
img/frames/vault/crown/gThumb.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
img/frames/vault/crown/l.png
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
img/frames/vault/crown/lThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/crown/m.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
img/frames/vault/crown/mThumb.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
img/frames/vault/crown/r.png
Normal file
After Width: | Height: | Size: 185 KiB |
BIN
img/frames/vault/crown/rThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/crown/u.png
Normal file
After Width: | Height: | Size: 187 KiB |
BIN
img/frames/vault/crown/uThumb.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
img/frames/vault/crown/w.png
Normal file
After Width: | Height: | Size: 188 KiB |
BIN
img/frames/vault/crown/wThumb.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
img/frames/vault/g.png
Normal file
After Width: | Height: | Size: 6.4 MiB |
BIN
img/frames/vault/gThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/vault/l.png
Normal file
After Width: | Height: | Size: 6.4 MiB |
BIN
img/frames/vault/lThumb.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/vault/m.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
BIN
img/frames/vault/mThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/vault/margin/a.png
Normal file
After Width: | Height: | Size: 480 KiB |
BIN
img/frames/vault/margin/aThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/b.png
Normal file
After Width: | Height: | Size: 506 KiB |
BIN
img/frames/vault/margin/bThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/vault/margin/crown/a.png
Normal file
After Width: | Height: | Size: 289 KiB |
BIN
img/frames/vault/margin/crown/aThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/crown/b.png
Normal file
After Width: | Height: | Size: 292 KiB |
BIN
img/frames/vault/margin/crown/bThumb.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
img/frames/vault/margin/crown/g.png
Normal file
After Width: | Height: | Size: 273 KiB |
BIN
img/frames/vault/margin/crown/gThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/crown/l.png
Normal file
After Width: | Height: | Size: 319 KiB |
BIN
img/frames/vault/margin/crown/lThumb.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
img/frames/vault/margin/crown/m.png
Normal file
After Width: | Height: | Size: 296 KiB |
BIN
img/frames/vault/margin/crown/mThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/crown/r.png
Normal file
After Width: | Height: | Size: 281 KiB |
BIN
img/frames/vault/margin/crown/rThumb.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
img/frames/vault/margin/crown/u.png
Normal file
After Width: | Height: | Size: 300 KiB |
BIN
img/frames/vault/margin/crown/uThumb.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
img/frames/vault/margin/crown/w.png
Normal file
After Width: | Height: | Size: 290 KiB |
BIN
img/frames/vault/margin/crown/wThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/g.png
Normal file
After Width: | Height: | Size: 510 KiB |
BIN
img/frames/vault/margin/gThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/l.png
Normal file
After Width: | Height: | Size: 467 KiB |
BIN
img/frames/vault/margin/lThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/vault/margin/m.png
Normal file
After Width: | Height: | Size: 515 KiB |
BIN
img/frames/vault/margin/mThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/margin/r.png
Normal file
After Width: | Height: | Size: 498 KiB |
BIN
img/frames/vault/margin/rThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/vault/margin/u.png
Normal file
After Width: | Height: | Size: 502 KiB |
BIN
img/frames/vault/margin/uThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/vault/margin/w.png
Normal file
After Width: | Height: | Size: 545 KiB |
BIN
img/frames/vault/margin/wThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/vault/pt/a.png
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
img/frames/vault/pt/aThumb.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/vault/pt/b.png
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
img/frames/vault/pt/bThumb.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/frames/vault/pt/g.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
img/frames/vault/pt/gThumb.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/frames/vault/pt/m.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
img/frames/vault/pt/mThumb.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/vault/pt/r.png
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
img/frames/vault/pt/rThumb.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/frames/vault/pt/u.png
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
img/frames/vault/pt/uThumb.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/vault/pt/w.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
img/frames/vault/pt/wThumb.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/frames/vault/r.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
BIN
img/frames/vault/rThumb.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
img/frames/vault/stamp/a.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
img/frames/vault/stamp/aThumb.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
img/frames/vault/stamp/b.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
img/frames/vault/stamp/bThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/vault/stamp/g.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
img/frames/vault/stamp/gThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/vault/stamp/l.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/frames/vault/stamp/lThumb.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
img/frames/vault/stamp/m.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
img/frames/vault/stamp/mThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/vault/stamp/r.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
img/frames/vault/stamp/rThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/vault/stamp/u.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
img/frames/vault/stamp/uThumb.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
img/frames/vault/stamp/w.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/frames/vault/stamp/wThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/vault/u.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
BIN
img/frames/vault/uThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/vault/w.png
Normal file
After Width: | Height: | Size: 6.3 MiB |
BIN
img/frames/vault/wThumb.png
Normal file
After Width: | Height: | Size: 26 KiB |
@@ -38,6 +38,7 @@ const frameNames = new Map ([
|
||||
['Colorshifted (Planar Chaos)', 'Colorshifted'],
|
||||
['Brawl Legend Crowns', 'Brawl'],
|
||||
//showcase
|
||||
['Vault (OTP)', 'Vault'],
|
||||
['Wanted Poster (OTJ)', 'Wanted'],
|
||||
['Dossier (MKM)', 'Dossier'],
|
||||
['Scrolls of Middle-earth (LTR)', 'Scroll'],
|
||||
|
@@ -1,5 +1,6 @@
|
||||
loadFramePacks([
|
||||
{name:'Generic Margins', value:'Margin-1'},
|
||||
{name:'Vault Margin', value:'MarginVault'},
|
||||
{name:'Wanted Poster Margin', value:'MarginWanted'},
|
||||
{name:'Enchanting Tales Margins', value:'MarginEnchantingTales'},
|
||||
{name:'LTR Ring Margins', value:'MarginRing'},
|
||||
|
@@ -1,5 +1,6 @@
|
||||
loadFramePacks([
|
||||
{name:'Set Showcase Frames (Chronological)', value:'disabled'},
|
||||
{name:'Vault (OTP)', value:'Vault'},
|
||||
{name:'Wanted Poster (OTJ)', value:'Wanted'},
|
||||
{name:'Pip-Boy (PIP)', value:'Pipboy'},
|
||||
{name:'Dossier (MKM)', value:'Dossier'},
|
||||
|
29
js/frames/packMarginVault.js
Normal file
@@ -0,0 +1,29 @@
|
||||
//Create objects for common properties across available frames
|
||||
var bounds = {x:-89/2010, y:-79/2817, width:2187/2010, height:2975/2817};
|
||||
var ogBounds = {x:0, y:0, width:1, height:1};
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'White Extension', src:'/img/frames/vault/margin/w.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Blue Extension', src:'/img/frames/vault/margin/u.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Black Extension', src:'/img/frames/vault/margin/b.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Red Extension', src:'/img/frames/vault/margin/r.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Green Extension', src:'/img/frames/vault/margin/g.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Multicolored Extension', src:'/img/frames/vault/margin/m.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Artifact Extension', src:'/img/frames/vault/margin/a.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Land Extension', src:'/img/frames/vault/margin/l.png', bounds:bounds, ogBounds:ogBounds},
|
||||
|
||||
{name:'White Crown Extension', src:'/img/frames/vault/margin/crown/w.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Blue Crown Extension', src:'/img/frames/vault/margin/crown/u.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Black Crown Extension', src:'/img/frames/vault/margin/crown/b.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Red Crown Extension', src:'/img/frames/vault/margin/crown/r.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Green Crown Extension', src:'/img/frames/vault/margin/crown/g.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Multicolored Crown Extension', src:'/img/frames/vault/margin/crown/m.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Artifact Crown Extension', src:'/img/frames/vault/margin/crown/a.png', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Land Crown Extension', src:'/img/frames/vault/margin/crown/l.png', bounds:bounds, ogBounds:ogBounds}
|
||||
];
|
||||
//disables/enables the "Load Frame Version" button
|
||||
document.querySelector('#loadFrameVersion').disabled = false;
|
||||
//defines process for loading this version, if applicable
|
||||
document.querySelector('#loadFrameVersion').onclick = loadMarginVersion;
|
||||
//loads available frames
|
||||
loadFramePack();
|
74
js/frames/packVault.js
Normal file
@@ -0,0 +1,74 @@
|
||||
//Create objects for common properties across available frames
|
||||
var masks = [];
|
||||
var ptBounds = {x:1560/2010, y:2494/2814, width:347/2010, height:172/2814};
|
||||
var crownBounds = {x:127/2010, y:0, width:1763/2010, height:60/2814};
|
||||
var stampBounds = {x:850/2010, y:2541/2814, width:310/2010, height:132/2814};
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'White Frame', src:'/img/frames/vault/w.png'},
|
||||
{name:'Blue Frame', src:'/img/frames/vault/u.png'},
|
||||
{name:'Black Frame', src:'/img/frames/vault/b.png'},
|
||||
{name:'Red Frame', src:'/img/frames/vault/r.png'},
|
||||
{name:'Green Frame', src:'/img/frames/vault/g.png'},
|
||||
{name:'Multicolored Frame', src:'/img/frames/vault/m.png'},
|
||||
{name:'Artifact Frame', src:'/img/frames/vault/a.png'},
|
||||
{name:'Land Frame', src:'/img/frames/vault/l.png'},
|
||||
|
||||
{name:'White Power/Toughness', src:'/img/frames/vault/pt/w.png', bounds:ptBounds},
|
||||
{name:'Blue Power/Toughness', src:'/img/frames/vault/pt/u.png', bounds:ptBounds},
|
||||
{name:'Black Power/Toughness', src:'/img/frames/vault/pt/b.png', bounds:ptBounds},
|
||||
{name:'Red Power/Toughness', src:'/img/frames/vault/pt/r.png', bounds:ptBounds},
|
||||
{name:'Green Power/Toughness', src:'/img/frames/vault/pt/g.png', bounds:ptBounds},
|
||||
{name:'Multicolored Power/Toughness', src:'/img/frames/vault/pt/m.png', bounds:ptBounds},
|
||||
{name:'Artifact Power/Toughness', src:'/img/frames/vault/pt/a.png', bounds:ptBounds},
|
||||
|
||||
{name:'White Legendary Crown', src:'/img/frames/vault/crown/w.png', bounds:crownBounds},
|
||||
{name:'Blue Legendary Crown', src:'/img/frames/vault/crown/u.png', bounds:crownBounds},
|
||||
{name:'Black Legendary Crown', src:'/img/frames/vault/crown/b.png', bounds:crownBounds},
|
||||
{name:'Red Legendary Crown', src:'/img/frames/vault/crown/r.png', bounds:crownBounds},
|
||||
{name:'Green Legendary Crown', src:'/img/frames/vault/crown/g.png', bounds:crownBounds},
|
||||
{name:'Multicolored Legendary Crown', src:'/img/frames/vault/crown/m.png', bounds:crownBounds},
|
||||
{name:'Artifact Legendary Crown', src:'/img/frames/vault/crown/a.png', bounds:crownBounds},
|
||||
{name:'Land Legendary Crown', src:'/img/frames/vault/crown/l.png', bounds:crownBounds},
|
||||
|
||||
{name:'White Holo Stamp', src:'/img/frames/vault/stamp/w.png', bounds:stampBounds},
|
||||
{name:'Blue Holo Stamp', src:'/img/frames/vault/stamp/u.png', bounds:stampBounds},
|
||||
{name:'Black Holo Stamp', src:'/img/frames/vault/stamp/b.png', bounds:stampBounds},
|
||||
{name:'Red Holo Stamp', src:'/img/frames/vault/stamp/r.png', bounds:stampBounds},
|
||||
{name:'Green Holo Stamp', src:'/img/frames/vault/stamp/g.png', bounds:stampBounds},
|
||||
{name:'Multicolored Holo Stamp', src:'/img/frames/vault/stamp/m.png', bounds:stampBounds},
|
||||
{name:'Artifact Holo Stamp', src:'/img/frames/vault/stamp/a.png', bounds:stampBounds},
|
||||
{name:'Land Holo Stamp', src:'/img/frames/vault/stamp/l.png', bounds:stampBounds}
|
||||
];
|
||||
//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 = 'vault';
|
||||
//art bounds
|
||||
card.artBounds = {x:0, y:334/2814, width:1, height:1194/2814};
|
||||
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},
|
||||
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:0.086, y:0.6303, 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();
|
||||
}
|