Add nonlegendary Phyrexian frame

This commit is contained in:
Josh Birnholz
2023-02-04 14:29:53 -05:00
committed by Josh birnholz
parent 3a334332df
commit ac5855a5d8
45 changed files with 17 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ const frameNames = new Map ([
['Sketch Cards (MH2)', 'MH2'],
['Mystical Archive (STA)', 'MysticalArchive'],
['Japanese Mystical Archive (STA)', 'MysticalArchiveJP'],
['Praetors (KHM)', 'Praetors'],
['Phyrexian', 'Praetors'],
['Kaldheim (KHM)', 'Kaldheim-2'],
['Nonlegendary Kaldheim (KHM)', 'KaldheimNonleg'],
['Commander Legends (CMR)', 'CommanderLegends'],

View File

@@ -17,7 +17,6 @@ loadFramePacks([
{name:'Mystical Archive (STA)', value:'MysticalArchive'},
{name:'Japanese Mystical Archive (STA)', value:'MysticalArchiveJP'},
{name:'Horizontal Japanese Mystical Archive (STA)', value:'MysticalArchiveJPHorizontal'},
{name:'Praetors (KHM)', value:'Praetors'},
{name:'Kaldheim (KHM)', value:'Kaldheim-2'},
{name:'Nonlegendary Kaldheim (KHM)', value:'KaldheimNonleg'},
{name:'Commander Legends (CMR)', value:'CommanderLegends'},
@@ -36,6 +35,7 @@ loadFramePacks([
{name:'Full Text', value:'FullText'},
{name:'Etched (Commander Precons)', value:'Etched'},
{name:'Masterpieces/Other', value:'disabled'},
{name:'Phyrexian', value:'Praetors'},
{name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'},
{name:'Signature Spellbook (Jace/Gideon)', value:'SignatureSpellbook'},
{name:'Ixalan Maps', value:'Ixalan'},

View File

@@ -1,7 +1,8 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/praetors/pinline.svg', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/praetors/frame.svg', name:'Frame'}, {src:'/img/frames/m15/praetors/text.svg', name:'Rules Text'}, {src:'/img/frames/m15/praetors/border.svg', name:'Border'}];
var masks = [{src:'/img/frames/m15/praetors/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/praetors/frame.svg', name:'Frame'}, {src:'/img/frames/m15/praetors/text.svg', name:'Rules Text'}, {src:'/img/frames/m15/praetors/border.png', name:'Border'}];
var bounds = {x:0.746, y:0.8858, width:0.212, height:0.0772};
var bounds2 = {x:0.418, y:0.9, width:0.164, height:0.0491};
var bounds3 = {x:0, y:0, width:1, height:100/2100};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/praetors/w.png', masks:masks},
@@ -11,6 +12,7 @@ availableFrames = [
{name:'Green Frame', src:'/img/frames/m15/praetors/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/praetors/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/praetors/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/praetors/l.png', masks:masks},
{name:'White Power/Toughness', src:'/img/frames/m15/praetors/wpt.png', bounds:bounds},
{name:'Blue Power/Toughness', src:'/img/frames/m15/praetors/upt.png', bounds:bounds},
{name:'Black Power/Toughness', src:'/img/frames/m15/praetors/bpt.png', bounds:bounds},
@@ -18,13 +20,23 @@ availableFrames = [
{name:'Green Power/Toughness', src:'/img/frames/m15/praetors/gpt.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/praetors/mpt.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/praetors/apt.png', bounds:bounds},
{name:'Land Power/Toughness', src:'/img/frames/m15/praetors/lpt.png', bounds:bounds},
{name:'White Legendary Crown', src:'/img/frames/m15/praetors/wCrown.png', bounds:bounds3},
{name:'Blue Legendary Crown', src:'/img/frames/m15/praetors/uCrown.png', bounds:bounds3},
{name:'Black Legendary Crown', src:'/img/frames/m15/praetors/bCrown.png', bounds:bounds3},
{name:'Red Legendary Crown', src:'/img/frames/m15/praetors/rCrown.png', bounds:bounds3},
{name:'Green Legendary Crown', src:'/img/frames/m15/praetors/gCrown.png', bounds:bounds3},
{name:'Multicolored Legendary Crown', src:'/img/frames/m15/praetors/mCrown.png', bounds:bounds3},
{name:'Artifact Legendary Crown', src:'/img/frames/m15/praetors/aCrown.png', bounds:bounds3},
{name:'Land Legendary Crown', src:'/img/frames/m15/praetors/lCrown.png', bounds:bounds3},
{name:'White Holo Stamp', src:'/img/frames/m15/praetors/holo/w.png', bounds:bounds2},
{name:'Blue Holo Stamp', src:'/img/frames/m15/praetors/holo/u.png', bounds:bounds2},
{name:'Black Holo Stamp', src:'/img/frames/m15/praetors/holo/b.png', bounds:bounds2},
{name:'Red Holo Stamp', src:'/img/frames/m15/praetors/holo/r.png', bounds:bounds2},
{name:'Green Holo Stamp', src:'/img/frames/m15/praetors/holo/g.png', bounds:bounds2},
{name:'Multicolored Holo Stamp', src:'/img/frames/m15/praetors/holo/m.png', bounds:bounds2},
{name:'Artifact Holo Stamp', src:'/img/frames/m15/praetors/holo/a.png', bounds:bounds2}
{name:'Artifact Holo Stamp', src:'/img/frames/m15/praetors/holo/a.png', bounds:bounds2},
{name:'Land Holo Stamp', src:'/img/frames/m15/praetors/holo/l.png', bounds:bounds2}
];
//disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = false;
@@ -51,7 +63,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
rules: {name:'Rules Text', text:'', x:0.1047, y:0.6303, width:0.7907, 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'}
});
notify('<a href="/phyrexian" target="_blank">Check out our Phyrexian Text Generator to make some authentic Praetor showcase cards!</a>', 20)
// notify('<a href="/phyrexian" target="_blank">Check out our Phyrexian Text Generator to make some authentic Praetor showcase cards!</a>', 20)
}
//loads available frames
loadFramePack();