Skip to content

Commit

Permalink
Add Legends of Ixalan (LCI) frame
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbirnholz committed Aug 29, 2024
1 parent 48fa803 commit 4df9434
Show file tree
Hide file tree
Showing 89 changed files with 222 additions and 0 deletions.
Binary file added img/frames/ixalanLegends/a1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/a1Thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/a2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/a2Thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/a3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/a3Thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/b1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/b1Thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/b2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/b2Thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/b3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/b3Thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/aThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/bThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/gThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/lThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/mThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/rThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/u.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/ixalanLegends/crown/uThumb.png
Binary file added img/frames/ixalanLegends/crown/w.png
Binary file added img/frames/ixalanLegends/crown/wThumb.png
Binary file added img/frames/ixalanLegends/g1.png
Binary file added img/frames/ixalanLegends/g1Thumb.png
Binary file added img/frames/ixalanLegends/g2.png
Binary file added img/frames/ixalanLegends/g2Thumb.png
Binary file added img/frames/ixalanLegends/g3.png
Binary file added img/frames/ixalanLegends/g3Thumb.png
Binary file added img/frames/ixalanLegends/l1.png
Binary file added img/frames/ixalanLegends/l1Thumb.png
Binary file added img/frames/ixalanLegends/l2.png
Binary file added img/frames/ixalanLegends/l2Thumb.png
Binary file added img/frames/ixalanLegends/l3.png
Binary file added img/frames/ixalanLegends/l3Thumb.png
Binary file added img/frames/ixalanLegends/m1.png
Binary file added img/frames/ixalanLegends/m1Thumb.png
Binary file added img/frames/ixalanLegends/m2.png
Binary file added img/frames/ixalanLegends/m2Thumb.png
Binary file added img/frames/ixalanLegends/m3.png
Binary file added img/frames/ixalanLegends/m3Thumb.png
Binary file added img/frames/ixalanLegends/margin.png
Binary file added img/frames/ixalanLegends/marginThumb.png
Binary file added img/frames/ixalanLegends/pt/a.png
Binary file added img/frames/ixalanLegends/pt/aThumb.png
Binary file added img/frames/ixalanLegends/pt/b.png
Binary file added img/frames/ixalanLegends/pt/bThumb.png
Binary file added img/frames/ixalanLegends/pt/g.png
Binary file added img/frames/ixalanLegends/pt/gThumb.png
Binary file added img/frames/ixalanLegends/pt/l.png
Binary file added img/frames/ixalanLegends/pt/lThumb.png
Binary file added img/frames/ixalanLegends/pt/m.png
Binary file added img/frames/ixalanLegends/pt/mThumb.png
Binary file added img/frames/ixalanLegends/pt/r.png
Binary file added img/frames/ixalanLegends/pt/rThumb.png
Binary file added img/frames/ixalanLegends/pt/u.png
Binary file added img/frames/ixalanLegends/pt/uThumb.png
Binary file added img/frames/ixalanLegends/pt/w.png
Binary file added img/frames/ixalanLegends/pt/wThumb.png
Binary file added img/frames/ixalanLegends/r1.png
Binary file added img/frames/ixalanLegends/r1Thumb.png
Binary file added img/frames/ixalanLegends/r2.png
Binary file added img/frames/ixalanLegends/r2Thumb.png
Binary file added img/frames/ixalanLegends/r3.png
Binary file added img/frames/ixalanLegends/r3Thumb.png
Binary file added img/frames/ixalanLegends/u1.png
Binary file added img/frames/ixalanLegends/u1Thumb.png
Binary file added img/frames/ixalanLegends/u2.png
Binary file added img/frames/ixalanLegends/u2Thumb.png
Binary file added img/frames/ixalanLegends/u3.png
Binary file added img/frames/ixalanLegends/u3Thumb.png
Binary file added img/frames/ixalanLegends/w1.png
Binary file added img/frames/ixalanLegends/w1Thumb.png
Binary file added img/frames/ixalanLegends/w2.png
Binary file added img/frames/ixalanLegends/w2Thumb.png
Binary file added img/frames/ixalanLegends/w3.png
Binary file added img/frames/ixalanLegends/w3Thumb.png
3 changes: 3 additions & 0 deletions js/frameSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const frameNames = new Map ([
['Vault (BIG)', 'Vault'],
['Wanted Poster (OTJ)', 'Wanted'],
['Dossier (MKM)', 'Dossier'],
['Legends of Ixalan - Pattern 1 (LCI)', 'IxalanLegends1'],
['Legends of Ixalan - Pattern 2 (LCI)', 'IxalanLegends2'],
['Legends of Ixalan - Pattern 3 (LCI)', 'IxalanLegends3'],
['Scrolls of Middle-earth (LTR)', 'Scroll'],
['Pip-Boy (PIP)', 'Pipboy'],
['Enchanting Tales (WOT)', 'EnchantingTales'],
Expand Down
1 change: 1 addition & 0 deletions js/frames/groupMargin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
loadFramePacks([
{name:'Generic Margins', value:'Margin-1'},
{name:'Legends of Ixalan Margins', value:'MarginIxalanLegends'},
{name:'Memory Corridor Margins', value:'MarginMemoryCorridor'},
{name:'Breaking News Margin', value:'MarginBreakingNews'},
{name:'Vault Margins', value:'MarginVault'},
Expand Down
3 changes: 3 additions & 0 deletions js/frames/groupShowcase-5.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ loadFramePacks([
{name:'Wanted Poster (OTJ)', value:'Wanted'},
{name:'Pip-Boy (PIP)', value:'Pipboy'},
{name:'Dossier (MKM)', value:'Dossier'},
{name:'Legends of Ixalan - Pattern 1 (LCI)', value:'IxalanLegends1'},
{name:'Legends of Ixalan - Pattern 2 (LCI)', value:'IxalanLegends2'},
{name:'Legends of Ixalan - Pattern 3 (LCI)', value:'IxalanLegends3'},
{name:'Scrolls of Middle-earth (LTR)', value:'Scroll'},
{name:'Enchanting Tales (WOT)', value:'EnchantingTales'},
{name:'Eldraine Storybooks: Adventures (WOE)', value:'StorybookWOE'},
Expand Down
64 changes: 64 additions & 0 deletions js/frames/packIxalanLegends1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
//Create objects for common properties across available frames
var ptBounds = {x:1507/2010, y:2488/2814, width:418/2010, height:208/2814};
var crownBounds = {x:159/2010, y:52/2814, width:1694/2010, height:83/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/ixalanLegends/w1.png'},
{name:'Blue Frame', src:'/img/frames/ixalanLegends/u1.png'},
{name:'Black Frame', src:'/img/frames/ixalanLegends/b1.png'},
{name:'Red Frame', src:'/img/frames/ixalanLegends/r1.png'},
{name:'Green Frame', src:'/img/frames/ixalanLegends/g1.png'},
{name:'Multicolored Frame', src:'/img/frames/ixalanLegends/m1.png'},
{name:'Artifact Frame', src:'/img/frames/ixalanLegends/a1.png'},
{name:'Land Frame', src:'/img/frames/ixalanLegends/c1.png'},

{name:'White Power/Toughness', src:'/img/frames/ixalanLegends/pt/w.png', bounds: ptBounds},
{name:'Blue Power/Toughness', src:'/img/frames/ixalanLegends/pt/u.png', bounds: ptBounds},
{name:'Black Power/Toughness', src:'/img/frames/ixalanLegends/pt/b.png', bounds: ptBounds},
{name:'Red Power/Toughness', src:'/img/frames/ixalanLegends/pt/r.png', bounds: ptBounds},
{name:'Green Power/Toughness', src:'/img/frames/ixalanLegends/pt/g.png', bounds: ptBounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/ixalanLegends/pt/m.png', bounds: ptBounds},
{name:'Artifact Power/Toughness', src:'/img/frames/ixalanLegends/pt/a.png', bounds: ptBounds},
{name:'Land Power/Toughness', src:'/img/frames/ixalanLegends/pt/c.png', bounds: ptBounds},

{name:'White Legendary Crown', src:'/img/frames/ixalanLegends/crown/w.png', bounds: crownBounds},
{name:'Blue Legendary Crown', src:'/img/frames/ixalanLegends/crown/u.png', bounds: crownBounds},
{name:'Black Legendary Crown', src:'/img/frames/ixalanLegends/crown/b.png', bounds: crownBounds},
{name:'Red Legendary Crown', src:'/img/frames/ixalanLegends/crown/r.png', bounds: crownBounds},
{name:'Green Legendary Crown', src:'/img/frames/ixalanLegends/crown/g.png', bounds: crownBounds},
{name:'Multicolored Legendary Crown', src:'/img/frames/ixalanLegends/crown/m.png', bounds: crownBounds},
{name:'Artifact Legendary Crown', src:'/img/frames/ixalanLegends/crown/a.png', bounds: crownBounds},
{name:'Land Legendary Crown', src:'/img/frames/ixalanLegends/crown/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() {
//resets things so that every frame doesn't have to
await resetCardIrregularities();
//sets card version
card.version = 'ixalanLegends';
//art bounds
card.artBounds = {x:128/2010, y:323/2814, width:1759/2010, height:1239/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();
}
64 changes: 64 additions & 0 deletions js/frames/packIxalanLegends2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
//Create objects for common properties across available frames
var ptBounds = {x:1507/2010, y:2488/2814, width:418/2010, height:208/2814};
var crownBounds = {x:159/2010, y:52/2814, width:1694/2010, height:83/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/ixalanLegends/w2.png'},
{name:'Blue Frame', src:'/img/frames/ixalanLegends/u2.png'},
{name:'Black Frame', src:'/img/frames/ixalanLegends/b2.png'},
{name:'Red Frame', src:'/img/frames/ixalanLegends/r2.png'},
{name:'Green Frame', src:'/img/frames/ixalanLegends/g2.png'},
{name:'Multicolored Frame', src:'/img/frames/ixalanLegends/m2.png'},
{name:'Artifact Frame', src:'/img/frames/ixalanLegends/a2.png'},
{name:'Land Frame', src:'/img/frames/ixalanLegends/c2.png'},

{name:'White Power/Toughness', src:'/img/frames/ixalanLegends/pt/w.png', bounds: ptBounds},
{name:'Blue Power/Toughness', src:'/img/frames/ixalanLegends/pt/u.png', bounds: ptBounds},
{name:'Black Power/Toughness', src:'/img/frames/ixalanLegends/pt/b.png', bounds: ptBounds},
{name:'Red Power/Toughness', src:'/img/frames/ixalanLegends/pt/r.png', bounds: ptBounds},
{name:'Green Power/Toughness', src:'/img/frames/ixalanLegends/pt/g.png', bounds: ptBounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/ixalanLegends/pt/m.png', bounds: ptBounds},
{name:'Artifact Power/Toughness', src:'/img/frames/ixalanLegends/pt/a.png', bounds: ptBounds},
{name:'Land Power/Toughness', src:'/img/frames/ixalanLegends/pt/c.png', bounds: ptBounds},

{name:'White Legendary Crown', src:'/img/frames/ixalanLegends/crown/w.png', bounds: crownBounds},
{name:'Blue Legendary Crown', src:'/img/frames/ixalanLegends/crown/u.png', bounds: crownBounds},
{name:'Black Legendary Crown', src:'/img/frames/ixalanLegends/crown/b.png', bounds: crownBounds},
{name:'Red Legendary Crown', src:'/img/frames/ixalanLegends/crown/r.png', bounds: crownBounds},
{name:'Green Legendary Crown', src:'/img/frames/ixalanLegends/crown/g.png', bounds: crownBounds},
{name:'Multicolored Legendary Crown', src:'/img/frames/ixalanLegends/crown/m.png', bounds: crownBounds},
{name:'Artifact Legendary Crown', src:'/img/frames/ixalanLegends/crown/a.png', bounds: crownBounds},
{name:'Land Legendary Crown', src:'/img/frames/ixalanLegends/crown/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() {
//resets things so that every frame doesn't have to
await resetCardIrregularities();
//sets card version
card.version = 'ixalanLegends';
//art bounds
card.artBounds = {x:128/2010, y:323/2814, width:1759/2010, height:1239/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();
}
64 changes: 64 additions & 0 deletions js/frames/packIxalanLegends3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
//Create objects for common properties across available frames
var ptBounds = {x:1507/2010, y:2488/2814, width:418/2010, height:208/2814};
var crownBounds = {x:159/2010, y:52/2814, width:1694/2010, height:83/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/ixalanLegends/w3.png'},
{name:'Blue Frame', src:'/img/frames/ixalanLegends/u3.png'},
{name:'Black Frame', src:'/img/frames/ixalanLegends/b3.png'},
{name:'Red Frame', src:'/img/frames/ixalanLegends/r3.png'},
{name:'Green Frame', src:'/img/frames/ixalanLegends/g3.png'},
{name:'Multicolored Frame', src:'/img/frames/ixalanLegends/m3.png'},
{name:'Artifact Frame', src:'/img/frames/ixalanLegends/a3.png'},
{name:'Land Frame', src:'/img/frames/ixalanLegends/c3.png'},

{name:'White Power/Toughness', src:'/img/frames/ixalanLegends/pt/w.png', bounds: ptBounds},
{name:'Blue Power/Toughness', src:'/img/frames/ixalanLegends/pt/u.png', bounds: ptBounds},
{name:'Black Power/Toughness', src:'/img/frames/ixalanLegends/pt/b.png', bounds: ptBounds},
{name:'Red Power/Toughness', src:'/img/frames/ixalanLegends/pt/r.png', bounds: ptBounds},
{name:'Green Power/Toughness', src:'/img/frames/ixalanLegends/pt/g.png', bounds: ptBounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/ixalanLegends/pt/m.png', bounds: ptBounds},
{name:'Artifact Power/Toughness', src:'/img/frames/ixalanLegends/pt/a.png', bounds: ptBounds},
{name:'Land Power/Toughness', src:'/img/frames/ixalanLegends/pt/c.png', bounds: ptBounds},

{name:'White Legendary Crown', src:'/img/frames/ixalanLegends/crown/w.png', bounds: crownBounds},
{name:'Blue Legendary Crown', src:'/img/frames/ixalanLegends/crown/u.png', bounds: crownBounds},
{name:'Black Legendary Crown', src:'/img/frames/ixalanLegends/crown/b.png', bounds: crownBounds},
{name:'Red Legendary Crown', src:'/img/frames/ixalanLegends/crown/r.png', bounds: crownBounds},
{name:'Green Legendary Crown', src:'/img/frames/ixalanLegends/crown/g.png', bounds: crownBounds},
{name:'Multicolored Legendary Crown', src:'/img/frames/ixalanLegends/crown/m.png', bounds: crownBounds},
{name:'Artifact Legendary Crown', src:'/img/frames/ixalanLegends/crown/a.png', bounds: crownBounds},
{name:'Land Legendary Crown', src:'/img/frames/ixalanLegends/crown/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() {
//resets things so that every frame doesn't have to
await resetCardIrregularities();
//sets card version
card.version = 'ixalanLegends';
//art bounds
card.artBounds = {x:128/2010, y:323/2814, width:1759/2010, height:1239/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();
}
23 changes: 23 additions & 0 deletions js/frames/packMarginIxalanLegends.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//Create objects for common properties across available frames
var bounds = {x:-89/2010, y:-81/2814, width:2188/2010, height:2976/2814};
var ogBounds = {x:0, y:0, width:1, height:1};
//defines available frames
availableFrames = [
{name:'Legends of Ixalan Margins', src:'/img/frames/ixalanLegends/margin.png', bounds:bounds, ogBounds:ogBounds}
];
//disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = false;

document.querySelector('#loadFrameVersion').onclick = async function() {
loadMarginVersion();

await resetCardIrregularities({canvas:[getStandardWidth(), getStandardHeight(), 89/2010, 81/2814], resetOthers:false});

drawTextBuffer();
drawFrames();
bottomInfoEdited();
watermarkEdited();
drawNewGuidelines();
}
//loads available frames
loadFramePack();

0 comments on commit 4df9434

Please sign in to comment.