Update Autoframe for Etched nyx/snow frames

This commit is contained in:
Josh birnholz
2023-07-27 21:06:37 -04:00
parent c3acfcbf89
commit 819e5e944c
6 changed files with 74 additions and 34 deletions

View File

@@ -33,6 +33,7 @@ loadFramePacks([
{name:'M21 Signature Spellbooks (M21)', value:'M21'},
{name:'Theros Beyond Death (THB)', value:'M15NyxShowcase'},
{name:'Eldraine Storybooks: Adventures (ELD)', value:'Storybook'},
{name:'Generic Showcase Frames', value:'disabled'},
{name:'Borderless', value:'GenericShowcase'},
{name:'Borderless (Alt)', value:'Borderless'},
@@ -42,13 +43,19 @@ loadFramePacks([
{name:'Extended Art (Shorter Textbox)', value:'M15ExtendedArtShort'},
{name:'FNM Promo (Inverted Promos)', value:'FNM'},
{name:'Full Text', value:'FullText'},
{name:'Etched (Commander Precons)', value:'Etched'},
{name:'Foil-Etched', value:'disabled'},
{name:'Etched', value:'Etched'},
{name:'Etched (Nyx)', value:'EtchedNyx'},
{name:'Etched (Snow)', value:'EtchedSnow'},
{name:'Legend Crowns (Etched)', value:'LegendCrownsEtched'},
{name:'Inner Crowns (Etched)', value:'InnerCrownsEtched'},
{name:'Universes Beyond', value:'disabled'},
{name:'Universes Beyond', value:'UB'},
{name:'Universes Beyond (Full art)', value:'UBFull'},
{name:'Universes Beyond (Extended art)', value:'UBExtendedArt'},
{name:'Masterpieces/Other', value:'disabled'},
{name:'Phyrexian', value:'Praetors'},
{name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'},
@@ -60,10 +67,10 @@ loadFramePacks([
{name:'BFZ Expeditions (2015)', value:'ExpeditionBFZ-1'},
{name:'SDCC15 (Blackout)', value:'SDCC15'},
{name:'Future Shifted', value:'FutureRegular'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrowns'},
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},
{name:'Legend Crowns (Etched)', value:'LegendCrownsEtched'},
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
{name:'Inner Crowns', value:'M15InnerCrowns'},
{name:'Nicknames', value:'M15Nickname-2'},
@@ -72,6 +79,7 @@ loadFramePacks([
{name:'Colored Borders', value:'M15Borders'},
{name:'Color Identity Pips', value:'M15CIPips'},
{name:'"The List" Stamp', value:'TheList'},
{name:'Custom Addons', value:'disabled'},
{name:'Brawl Legend Crowns', value:'Brawl'}
])

View File

@@ -25,16 +25,6 @@ availableFrames = [
{name:'Land Power/Toughness', src:'/img/frames/etched/regular/pt/l.png', bounds:bounds},
{name:'Vehicle Power/Toughness', src:'/img/frames/etched/regular/pt/v.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/etched/regular/pt/c.png', bounds:bounds},
{name:'White Legend Crown', src:'/img/frames/etched/regular/crowns/w.png', bounds:bounds3, complementary:29},
{name:'Blue Legend Crown', src:'/img/frames/etched/regular/crowns/u.png', bounds:bounds3, complementary:29},
{name:'Black Legend Crown', src:'/img/frames/etched/regular/crowns/b.png', bounds:bounds3, complementary:29},
{name:'Red Legend Crown', src:'/img/frames/etched/regular/crowns/r.png', bounds:bounds3, complementary:29},
{name:'Green Legend Crown', src:'/img/frames/etched/regular/crowns/g.png', bounds:bounds3, complementary:29},
{name:'Multicolored Legend Crown', src:'/img/frames/etched/regular/crowns/m.png', bounds:bounds3, complementary:29},
{name:'Artifact Legend Crown', src:'/img/frames/etched/regular/crowns/a.png', bounds:bounds3, complementary:29},
{name:'Land Crown', src:'/img/frames/etched/regular/crowns/l.png', bounds:bounds3, complementary:29},
{name:'Colorless Crown', src:'/img/frames/etched/regular/crowns/c.png', bounds:bounds3, complementary:29},
{name:'Legend Crown Cover', src:'/img/frames/etched/regular/crowns/cover.svg'},
{name:'White Holo Stamp', src:'/img/frames/etched/regular/holo/w.png', bounds:bounds2},
{name:'Blue Holo Stamp', src:'/img/frames/etched/regular/holo/u.png', bounds:bounds2},
{name:'Black Holo Stamp', src:'/img/frames/etched/regular/holo/b.png', bounds:bounds2},

View File

@@ -0,0 +1,27 @@
//Create objects for common properties across available frames
var masks = [];
var bounds = {x:244/1500, y:51/2100, width:1012/1500, height:64/2100};
//defines available frames
availableFrames = [
{name:'White Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/w.png', bounds:bounds},
{name:'Blue Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/u.png', bounds:bounds},
{name:'Black Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/b.png', bounds:bounds},
{name:'Red Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/r.png', bounds:bounds},
{name:'Green Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/g.png', bounds:bounds},
{name:'Multicolored Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/m.png', bounds:bounds},
{name:'Artifact Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/a.png', bounds:bounds},
{name:'White Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/w.png', bounds:bounds},
{name:'Blue Inner Crow (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/u.png', bounds:bounds},
{name:'Black Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/b.png', bounds:bounds},
{name:'Red Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/r.png', bounds:bounds},
{name:'Green Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/g.png', bounds:bounds},
{name:'Multicolored Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/m.png', bounds:bounds},
{name:'Artifact Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/a.png', bounds:bounds},
];
//disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = true;
//defines process for loading this version, if applicable
document.querySelector('#loadFrameVersion').onclick = null;
//loads available frames
loadFramePack();

View File

@@ -1,7 +1,6 @@
//Create objects for common properties across available frames
var masks = [];
var bounds = {x:0.0307, y:0.0191, width:0.9387, height:0.092};
var innerCrownBounds = {x:244/1500, y:51/2100, width:1012/1500, height:64/2100};
//defines available frames
availableFrames = [
{name:'White Legend Crown', src:'/img/frames/etched/regular/crowns/w.png', bounds:bounds, complementary:9},
@@ -13,23 +12,7 @@ availableFrames = [
{name:'Artifact Legend Crown', src:'/img/frames/etched/regular/crowns/a.png', bounds:bounds, complementary:9},
{name:'Land Crown', src:'/img/frames/etched/regular/crowns/l.png', bounds:bounds, complementary:9},
{name:'Colorless Crown', src:'/img/frames/etched/regular/crowns/c.png', bounds:bounds, complementary:9},
{name:'Legend Crown Cover', src:'/img/frames/etched/regular/crowns/cover.svg'},
{name:'White Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/w.png', bounds:innerCrownBounds},
{name:'Blue Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/u.png', bounds:innerCrownBounds},
{name:'Black Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/b.png', bounds:innerCrownBounds},
{name:'Red Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/r.png', bounds:innerCrownBounds},
{name:'Green Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/g.png', bounds:innerCrownBounds},
{name:'Multicolored Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/m.png', bounds:innerCrownBounds},
{name:'Artifact Inner Crown (Nyx)', src:'/img/frames/etched/regular/innerCrowns/nyx/a.png', bounds:innerCrownBounds},
{name:'White Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/w.png', bounds:innerCrownBounds},
{name:'Blue Inner Crow (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/u.png', bounds:innerCrownBounds},
{name:'Black Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/b.png', bounds:innerCrownBounds},
{name:'Red Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/r.png', bounds:innerCrownBounds},
{name:'Green Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/g.png', bounds:innerCrownBounds},
{name:'Multicolored Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/m.png', bounds:innerCrownBounds},
{name:'Artifact Inner Crown (Companion)', src:'/img/frames/etched/regular/innerCrowns/companion/a.png', bounds:innerCrownBounds},
{name:'Legend Crown Cover', src:'/img/frames/etched/regular/crowns/cover.svg'}
];
//disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = true;