Use replacement masks for Tarkir, Ravnica right half

This commit is contained in:
Josh birnholz
2023-04-23 15:00:26 -04:00
parent fa6781e5f5
commit eb501523fb
6 changed files with 12 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,7 +1,6 @@
//Create objects for common properties across available frames //Create objects for common properties across available frames
var masks = [{src:'/img/frames/ravnica/maskRight.png', name:'Right Side'}, {src:'/img/frames/ravnica/maskTitleInner.png', name:'Title'}, {src:'/img/frames/ravnica/maskTypeInner.png', name:'Type'}, {src:'/img/frames/ravnica/maskRules.png', name:'Rules'}]; var masks = [{src:'/img/frames/ravnica/maskTitleInner.png', name:'Title'}, {src:'/img/frames/ravnica/maskTypeInner.png', name:'Type'}, {src:'/img/frames/ravnica/maskRules.png', name:'Rules'}];
var crownBounds = {x:91/1500, y:0, width:1318/1500, height:91/2100}; var crownBounds = {x:91/1500, y:0, width:1318/1500, height:91/2100};
var crownMasks = [{src:'/img/frames/ravnica/crowns/maskRight.png', name:'Right Side'}];
var ptBounds = {x:1152/1500, y:1855/2100, width:287/1500, height:145/2100}; var ptBounds = {x:1152/1500, y:1855/2100, width:287/1500, height:145/2100};
var ptMasks = [{src:'/img/frames/ravnica/pt/highlightsLeft.png', name:'Highlights (Left)'}, {src:'/img/frames/ravnica/pt/highlightsRight.png', name:'Highlights (Right)'}]; var ptMasks = [{src:'/img/frames/ravnica/pt/highlightsLeft.png', name:'Highlights (Left)'}, {src:'/img/frames/ravnica/pt/highlightsRight.png', name:'Highlights (Right)'}];
//defines available frames //defines available frames
@@ -24,14 +23,14 @@ availableFrames = [
{name:'Artifact Power/Toughness', src:'/img/frames/ravnica/pt/a.png', bounds:ptBounds, masks:ptMasks}, {name:'Artifact Power/Toughness', src:'/img/frames/ravnica/pt/a.png', bounds:ptBounds, masks:ptMasks},
{name:'Colorless Power/Toughness', src:'/img/frames/ravnica/pt/c.png', bounds:ptBounds, masks:ptMasks}, {name:'Colorless Power/Toughness', src:'/img/frames/ravnica/pt/c.png', bounds:ptBounds, masks:ptMasks},
{name:'White Crown', src:'/img/frames/ravnica/crowns/w.png', bounds:crownBounds, masks:crownMasks}, {name:'White Crown', src:'/img/frames/ravnica/crowns/w.png', bounds:crownBounds},
{name:'Blue Crown', src:'/img/frames/ravnica/crowns/u.png', bounds:crownBounds, masks:crownMasks}, {name:'Blue Crown', src:'/img/frames/ravnica/crowns/u.png', bounds:crownBounds},
{name:'Black Crown', src:'/img/frames/ravnica/crowns/b.png', bounds:crownBounds, masks:crownMasks}, {name:'Black Crown', src:'/img/frames/ravnica/crowns/b.png', bounds:crownBounds},
{name:'Red Crown', src:'/img/frames/ravnica/crowns/r.png', bounds:crownBounds, masks:crownMasks}, {name:'Red Crown', src:'/img/frames/ravnica/crowns/r.png', bounds:crownBounds},
{name:'Green Crown', src:'/img/frames/ravnica/crowns/g.png', bounds:crownBounds, masks:crownMasks}, {name:'Green Crown', src:'/img/frames/ravnica/crowns/g.png', bounds:crownBounds},
{name:'Multicolored Crown', src:'/img/frames/ravnica/crowns/m.png', bounds:crownBounds, masks:crownMasks}, {name:'Multicolored Crown', src:'/img/frames/ravnica/crowns/m.png', bounds:crownBounds},
{name:'Artifact Crown', src:'/img/frames/ravnica/crowns/a.png', bounds:crownBounds, masks:crownMasks}, {name:'Artifact Crown', src:'/img/frames/ravnica/crowns/a.png', bounds:crownBounds},
{name:'Colorless Crown', src:'/img/frames/ravnica/crowns/c.png', bounds:crownBounds, masks:crownMasks}, {name:'Colorless Crown', src:'/img/frames/ravnica/crowns/c.png', bounds:crownBounds},
{name:'Holo Stamp', src:'/img/frames/ravnica/stamp.png', bounds:{x:656/1500, y:1886/2100, width:187/1500, height:96/2100}} {name:'Holo Stamp', src:'/img/frames/ravnica/stamp.png', bounds:{x:656/1500, y:1886/2100, width:187/1500, height:96/2100}}
]; ];
@@ -42,6 +41,7 @@ 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) // 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 //resets things so that every frame doesn't have to
await resetCardIrregularities(); await resetCardIrregularities();
replacementMasks = {'Right Half':'/img/frames/ravnica/maskRight.png'};
//sets card version //sets card version
card.version = 'ravnica'; card.version = 'ravnica';
//art bounds //art bounds

View File

@@ -1,5 +1,5 @@
//Create objects for common properties across available frames //Create objects for common properties across available frames
var masks = [{src:'img/frames/tarkir/maskFrame.png', name:'Frame (No Art Shadow)'}]; var masks = [];
var ptBounds = {x:1155/1500, y:1850/2100, width:274/1500, height:150/2100}; var ptBounds = {x:1155/1500, y:1850/2100, width:274/1500, height:150/2100};
//defines available frames //defines available frames
availableFrames = [ availableFrames = [
@@ -30,6 +30,7 @@ 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) // 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 //resets things so that every frame doesn't have to
await resetCardIrregularities(); await resetCardIrregularities();
replacementMasks = {'Right Half':'img/frames/tarkir/maskFrame.png'};
//sets card version //sets card version
card.version = 'tarkir'; card.version = 'tarkir';
//art bounds //art bounds