Add Tarkir sketch frame
@@ -658,7 +658,7 @@
|
|||||||
<option value="false">Disabled</option>
|
<option value="false">Disabled</option>
|
||||||
<option value="M15Regular-1">Regular</option>
|
<option value="M15Regular-1">Regular</option>
|
||||||
<option value="M15BoxTopper">Extended Art</option>
|
<option value="M15BoxTopper">Extended Art</option>
|
||||||
<!-- <option value="M15ExtendedArtShort">Extended Art (Shorter Textbox)</option> -->
|
<option value="M15ExtendedArtShort">Extended Art (Shorter Textbox)</option>
|
||||||
<option value="UB">Universes Beyond</option>
|
<option value="UB">Universes Beyond</option>
|
||||||
<option value="Etched">Etched</option>
|
<option value="Etched">Etched</option>
|
||||||
<option value="Praetors">Phyrexian</option>
|
<option value="Praetors">Phyrexian</option>
|
||||||
|
BIN
img/frames/tarkir/b.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/frames/tarkir/bThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/tarkir/g.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/frames/tarkir/gThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/tarkir/m.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/frames/tarkir/mThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/tarkir/maskFrame.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
img/frames/tarkir/maskFrameThumb.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
img/frames/tarkir/pt/b.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/frames/tarkir/pt/bThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/tarkir/pt/g.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/frames/tarkir/pt/gThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/tarkir/pt/m.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/frames/tarkir/pt/mThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/tarkir/pt/r.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
img/frames/tarkir/pt/rThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/tarkir/pt/u.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/frames/tarkir/pt/uThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/tarkir/pt/w.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
img/frames/tarkir/pt/wThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/tarkir/r.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/frames/tarkir/rThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/tarkir/stamp.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
img/frames/tarkir/stampThumb.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
img/frames/tarkir/u.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/frames/tarkir/uThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/tarkir/w.png
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
img/frames/tarkir/wThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
@@ -30,6 +30,7 @@ const frameNames = new Map ([
|
|||||||
//showcase
|
//showcase
|
||||||
['Ikoria Crystal (MOM)', 'Crystal'],
|
['Ikoria Crystal (MOM)', 'Crystal'],
|
||||||
['Ravnica Architecture (MOM)', 'Ravnica'],
|
['Ravnica Architecture (MOM)', 'Ravnica'],
|
||||||
|
['Tarkir Sketch (MOM)', 'Tarkir'],
|
||||||
['Oil Slick (ONE)', 'OilSlick'],
|
['Oil Slick (ONE)', 'OilSlick'],
|
||||||
['Stained Glass (DMU)', 'DMUStainedGlass'],
|
['Stained Glass (DMU)', 'DMUStainedGlass'],
|
||||||
['Golden Age (SNC)', 'SNCGilded'],
|
['Golden Age (SNC)', 'SNCGilded'],
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
loadFramePacks([
|
loadFramePacks([
|
||||||
{name:'Set Showcase Frames (Chronological)', value:'disabled'},
|
{name:'Set Showcase Frames (Chronological)', value:'disabled'},
|
||||||
|
{name:'Tarkir Sketch (MOM)', value:'Tarkir'},
|
||||||
{name:'Ikoria Crystal (MOM)', value:'Crystal'},
|
{name:'Ikoria Crystal (MOM)', value:'Crystal'},
|
||||||
{name:'Ravnica Architecture (MOM)', value:'Ravnica'},
|
{name:'Ravnica Architecture (MOM)', value:'Ravnica'},
|
||||||
{name:'Oil Slick (ONE)', value:'OilSlick'},
|
{name:'Oil Slick (ONE)', value:'OilSlick'},
|
||||||
|
54
js/frames/packTarkir.js
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
//Create objects for common properties across available frames
|
||||||
|
var masks = [{src:'img/frames/tarkir/maskFrame.png', name:'Frame (No Art Shadow)'}];
|
||||||
|
var ptBounds = {x:1155/1500, y:1850/2100, width:274/1500, height:150/2100};
|
||||||
|
//defines available frames
|
||||||
|
availableFrames = [
|
||||||
|
{name:'White Frame', src:'/img/frames/tarkir/w.png', masks:masks},
|
||||||
|
{name:'Blue Frame', src:'/img/frames/tarkir/u.png', masks:masks},
|
||||||
|
{name:'Black Frame', src:'/img/frames/tarkir/b.png', masks:masks},
|
||||||
|
{name:'Red Frame', src:'/img/frames/tarkir/r.png', masks:masks},
|
||||||
|
{name:'Green Frame', src:'/img/frames/tarkir/g.png', masks:masks},
|
||||||
|
{name:'Multicolored Frame', src:'/img/frames/tarkir/m.png', masks:masks},
|
||||||
|
// {name:'Artifact Frame', src:'/img/frames/tarkir/a.png', masks:masks},
|
||||||
|
// {name:'Colorless Frame', src:'/img/frames/tarkir/c.png', masks:masks},
|
||||||
|
|
||||||
|
{name:'White Power/Toughness', src:'/img/frames/tarkir/pt/w.png', bounds:ptBounds},
|
||||||
|
{name:'Blue Power/Toughness', src:'/img/frames/tarkir/pt/u.png', bounds:ptBounds},
|
||||||
|
{name:'Black Power/Toughness', src:'/img/frames/tarkir/pt/b.png', bounds:ptBounds},
|
||||||
|
{name:'Red Power/Toughness', src:'/img/frames/tarkir/pt/r.png', bounds:ptBounds},
|
||||||
|
{name:'Green Power/Toughness', src:'/img/frames/tarkir/pt/g.png', bounds:ptBounds},
|
||||||
|
{name:'Multicolored Power/Toughness', src:'/img/frames/tarkir/pt/m.png', bounds:ptBounds},
|
||||||
|
// {name:'Artifact Power/Toughness', src:'/img/frames/tarkir/pt/a.png', bounds:ptBounds},
|
||||||
|
// {name:'Colorless Power/Toughness', src:'/img/frames/tarkir/pt/c.png', bounds:ptBounds},
|
||||||
|
|
||||||
|
{name:'Holo Stamp', src:'/img/frames/tarkir/stamp.png', bounds:{x:638/1500, y:1888/2100, width:225/1500, height:101/2100}}
|
||||||
|
];
|
||||||
|
//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() {
|
||||||
|
// notify("To change the color of your mana cost, use {manacolor#}, but replace '#' with your desired color. 'white', 'blue', 'black', 'red', and 'green', as well as hex/html color codes are currently supported.", 15)
|
||||||
|
//resets things so that every frame doesn't have to
|
||||||
|
await resetCardIrregularities();
|
||||||
|
//sets card version
|
||||||
|
card.version = 'tarkir';
|
||||||
|
//art bounds
|
||||||
|
card.artBounds = {x:131/1500, y:233/2100, width:1235 /1500, height:926/2100};
|
||||||
|
autoFitArt();
|
||||||
|
//set symbol bounds
|
||||||
|
card.setSymbolBounds = {x:1386/1500, y:1234/2100, 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:'', x:-5/1500, y:125/2100, 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:124/1500, y:100/2100, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381},
|
||||||
|
type: {name:'Type', text:'', x:123/1500, y:1182/2100, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324},
|
||||||
|
rules: {name:'Rules Text', text:'', x:0.086, y:1326/2100, width:0.828, height:0.2875, size:0.0362, color:'white'},
|
||||||
|
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();
|