Add Ravnica (MOM) showcase frame

This commit is contained in:
Josh birnholz
2023-04-02 22:01:37 -04:00
parent 3badf75768
commit bdc377ba57
63 changed files with 65 additions and 0 deletions

BIN
img/frames/ravnica/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/frames/ravnica/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/frames/ravnica/c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
img/frames/ravnica/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/frames/ravnica/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

BIN
img/frames/ravnica/pt/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/frames/ravnica/pt/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
img/frames/ravnica/pt/c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/frames/ravnica/pt/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/frames/ravnica/pt/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/frames/ravnica/pt/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
img/frames/ravnica/pt/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/frames/ravnica/pt/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/frames/ravnica/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
img/frames/ravnica/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/frames/ravnica/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -28,6 +28,7 @@ const frameNames = new Map ([
['Colorshifted (Planar Chaos)', 'Colorshifted'], ['Colorshifted (Planar Chaos)', 'Colorshifted'],
['Brawl Legend Crowns', 'Brawl'], ['Brawl Legend Crowns', 'Brawl'],
//showcase //showcase
['Ravnica (MOM)', 'Ravnica'],
['Oil Slick (ONE)', 'OilSlick'], ['Oil Slick (ONE)', 'OilSlick'],
['Stained Glass (DMU)', 'DMUStainedGlass'], ['Stained Glass (DMU)', 'DMUStainedGlass'],
['Golden Age (SNC)', 'SNCGilded'], ['Golden Age (SNC)', 'SNCGilded'],

View File

@@ -1,5 +1,6 @@
loadFramePacks([ loadFramePacks([
{name:'Set Showcase Frames (Chronological)', value:'disabled'}, {name:'Set Showcase Frames (Chronological)', value:'disabled'},
{name:'Ravnica (MOM)', value:'Ravnica'},
{name:'Oil Slick (ONE)', value:'OilSlick'}, {name:'Oil Slick (ONE)', value:'OilSlick'},
{name:'Stained Glass (DMU)', value:'DMUStainedGlass'}, {name:'Stained Glass (DMU)', value:'DMUStainedGlass'},
{name:'Golden Age (SNC)', value:'SNCGilded'}, {name:'Golden Age (SNC)', value:'SNCGilded'},

63
js/frames/packRavnica.js Normal file
View File

@@ -0,0 +1,63 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/ravnica/maskRight.png', name:'Right Side'}, {src:'/img/frames/ravnica/maskTitle.png', name:'Title'}, {src:'/img/frames/ravnica/maskTitleInner.png', name:'Inner Title'}, {src:'/img/frames/ravnica/maskType.png', name:'Type'}, {src:'/img/frames/ravnica/maskTypeInner.png', name:'Inner Type'}, {src:'/img/frames/ravnica/maskRules.png', name:'Rules'}];
var crownBounds = {x:91/1500, y:0, width:1318/1500, height:91/2100};
var ptBounds = {x:1152/1500, y:1855/2100, width:287/1500, height:145/2100};
var ptMasks = [];
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/ravnica/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/ravnica/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/ravnica/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/ravnica/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/ravnica/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/ravnica/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/ravnica/a.png', masks:masks},
{name:'Colorless Frame', src:'/img/frames/ravnica/c.png', masks:masks},
{name:'White Power/Toughness', src:'/img/frames/ravnica/pt/w.png', bounds:ptBounds},
{name:'Blue Power/Toughness', src:'/img/frames/ravnica/pt/u.png', bounds:ptBounds},
{name:'Black Power/Toughness', src:'/img/frames/ravnica/pt/b.png', bounds:ptBounds},
{name:'Red Power/Toughness', src:'/img/frames/ravnica/pt/r.png', bounds:ptBounds},
{name:'Green Power/Toughness', src:'/img/frames/ravnica/pt/g.png', bounds:ptBounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/ravnica/pt/m.png', bounds:ptBounds},
{name:'Artifact Power/Toughness', src:'/img/frames/ravnica/pt/a.png', bounds:ptBounds},
{name:'Colorless Power/Toughness', src:'/img/frames/ravnica/pt/c.png', bounds:ptBounds},
{name:'White Crown', src:'/img/frames/ravnica/crowns/w.png', bounds:crownBounds},
{name:'Blue Crown', src:'/img/frames/ravnica/crowns/u.png', bounds:crownBounds},
{name:'Black Crown', src:'/img/frames/ravnica/crowns/b.png', bounds:crownBounds},
{name:'Red Crown', src:'/img/frames/ravnica/crowns/r.png', bounds:crownBounds},
{name:'Green Crown', src:'/img/frames/ravnica/crowns/g.png', bounds:crownBounds},
{name:'Multicolored Crown', src:'/img/frames/ravnica/crowns/m.png', bounds:crownBounds},
{name:'Artifact Crown', src:'/img/frames/ravnica/crowns/a.png', bounds:crownBounds},
{name:'Colorless Crown', src:'/img/frames/ravnica/crowns/c.png', bounds:crownBounds}
];
//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 = 'ravnica';
//art bounds
card.artBounds = {x:108/1500, y:237/2100, width:1283/1500, height:930/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({
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();