Accurate frames (#9)

* Add redone frames

* Redone autoframe and snow frames

* Update new frame rules text Y position

* Redone UB holo stamp

* Update UB stamps

* Add colorless frame

* Add fullart frame images

* Add colorless frame to pack

* Reorganize & rename accurate frames, add full art frames
This commit is contained in:
Josh birnholz
2023-09-29 14:05:52 -04:00
committed by GitHub
parent a79a8b8b69
commit f2a78acd20
255 changed files with 688 additions and 18 deletions

View File

@@ -0,0 +1,18 @@
loadFramePacks([
{name:'Regular Frames', value:'M15RegularNew'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrownsNew'},
{name:'Inner Crowns', value:'M15InnerCrownsNew'},
{name:'Dark Power/Toughness', value:'M15DarkPT'},
{name:'"The List" Stamp', value:'TheList'},
{name:'Other Frames', value:'disabled'},
{name:'Full Art', value:'FullArtNew'},
{name:'Snow (Kaldheim)', value:'SnowNew'},
{name:'Nyx (Theros)', value:'M15NyxNew'},
{name:'Universes Beyond Frames', value:'disabled'},
{name:'Universes Beyond', value:'UBNew'},
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrownsNew'},
])

View File

@@ -44,19 +44,20 @@ loadFramePacks([
{name:'Extended Art (Shorter Textbox)', value:'M15ExtendedArtShort'},
{name:'FNM Promo (Inverted Promos)', value:'FNM'},
{name:'Full Text', value:'FullText'},
{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:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},
{name:'Floating Legend Crowns (Universes Beyond)', value:'UBLegendCrownsFloating'},
{name:'Masterpieces/Other', value:'disabled'},
{name:'Phyrexian', value:'Praetors'},
{name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'},

View File

@@ -1,9 +1,12 @@
loadFramePacks([
{name:'Regular Frames', value:'M15Regular-1'},
{name:'Regular Frames (Redone)', value:'M15RegularNew'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrowns'},
{name:'Legend Crowns (Redone)', value:'M15LegendCrownsNew'},
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
{name:'Inner Crowns', value:'M15InnerCrowns'},
{name:'Inner Crowns (Redone)', value:'M15InnerCrownsNew'},
{name:'Nicknames', value:'M15Nickname-2'},
{name:'Miracle', value:'M15Miracle'},
{name:'Holo Stamps', value:'M15HoloStamps'},
@@ -13,14 +16,17 @@ loadFramePacks([
{name:'"The List" Stamp', value:'TheList'},
{name:'Other Frames', value:'disabled'},
{name:'Lands', value:'M15Lands'},
{name:'Lands (Redone)', value:'M15LandsNew'},
{name:'Battle (March of the Machine)', value:'Battle'},
{name:'Prototype (Brothers\' War)', value:'Prototype'},
{name:'Prototype (Extended Art) (Brothers\' War)', value:'PrototypeExtended'},
{name:'Attractions (Unfinity)', value:'Attraction'},
{name:'Class (D&D)', value:'Class'},
{name:'Snow (Kaldheim)', value:'M15Snow'},
{name:'Snow (Kaldheim) (Redone)', value:'SnowNew'},
{name:'Mutate (Ikoria)', value:'M15Mutate'},
{name:'Nyx (Theros)', value:'M15Nyx'},
{name:'Nyx (Theros) (Redone)', value:'M15NyxNew'},
{name:'Adventures (Eldraine)', value:'Adventure'},
{name:'Devoid (Zendikar)', value:'M15Devoid'},
{name:'Aftermath (Amonkhet)', value:'Aftermath'},

View File

@@ -0,0 +1,66 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}];
var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/regular/new/fullart/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/regular/new/fullart/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/regular/new/fullart/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/regular/new/fullart/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/regular/new/fullart/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/fullart/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/regular/new/fullart/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/regular/new/fullart/l.png', masks:masks},
{name:'Eldrazi Frame', src:'/img/frames/m15/regular/new/fullart/c.png', masks:masks},
{name:'Vehicle Frame', src:'/img/frames/m15/regular/new/fullart/v.png', masks:masks},
{name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds},
{name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds},
{name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds},
{name:'Red Power/Toughness', src:'/img/frames/m15/regular/m15PTR.png', bounds:bounds},
{name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds},
{name:'Vehicle Power/Toughness', src:'/img/frames/m15/regular/m15PTV.png', bounds:bounds},
{name:'White Land Frame', src:'/img/frames/m15/regular/new/fullart/lw.png', masks:masks},
{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/fullart/lu.png', masks:masks},
{name:'Black Land Frame', src:'/img/frames/m15/regular/new/fullart/lb.png', masks:masks},
{name:'Red Land Frame', src:'/img/frames/m15/regular/new/fullart/lr.png', masks:masks},
{name:'Green Land Frame', src:'/img/frames/m15/regular/new/fullart/lg.png', masks:masks},
{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/fullart/lm.png', masks:masks},
];
//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([2010,2814,0,0]);
//sets card version
card.version = 'm15ClearTextboxes';
//art bounds
card.artBounds = {x:0.062, y:0.1129, width:0.876, height:0.8096};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:1862/2010, 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:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0},
title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381},
type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white'},
rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362, color:'white'},
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();
}

View File

@@ -0,0 +1,26 @@
//Create objects for common properties across available frames
var bounds = {x:329/2010, y:70/2814, width:1353/2010, height:64/2814};
//defines available frames
availableFrames = [
{name:'White Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/w.png', bounds:bounds},
{name:'Blue Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/u.png', bounds:bounds},
{name:'Black Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/b.png', bounds:bounds},
{name:'Red Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/r.png', bounds:bounds},
{name:'Green Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/g.png', bounds:bounds},
{name:'Multicolored Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/m.png', bounds:bounds},
{name:'Artifact Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/a.png', bounds:bounds},
{name:'White Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/w.png', bounds:bounds},
{name:'Blue Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/u.png', bounds:bounds},
{name:'Black Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/b.png', bounds:bounds},
{name:'Red Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/r.png', bounds:bounds},
{name:'Green Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/g.png', bounds:bounds},
{name:'Multicolored Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/m.png', bounds:bounds},
{name:'Artifact Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/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

@@ -0,0 +1,25 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}];
var bounds = {x:0.3267, y:0.6491, width:0.3474, height:0.2496}
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/regular/new/lw.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/regular/new/lu.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/regular/new/lb.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/regular/new/lr.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/regular/new/lg.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/lm.png', masks:masks},
{name:'Colorless Frame', src:'/img/frames/m15/regular/new/ll.png', masks:masks},
{name:'Plains Watermark', src:'/img/frames/m15/basics/w.png', bounds:bounds},
{name:'Island Watermark', src:'/img/frames/m15/basics/u.png', bounds:bounds},
{name:'Swamp Watermark', src:'/img/frames/m15/basics/b.png', bounds:bounds},
{name:'Mountain Watermark', src:'/img/frames/m15/basics/r.png', bounds:bounds},
{name:'Forest Watermark', src:'/img/frames/m15/basics/g.png', bounds:bounds},
{name:'Wastes Watermark', src:'/img/frames/m15/basics/c.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

@@ -0,0 +1,22 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/crowns/new/maskCrown.png', name:'Crown Without Pinlines'}, {src:'/img/frames/m15/crowns/new/maskCrownPinline.png', name:'Crown With Pinlines'}];
var bounds = {x:44/2010, y:53/2814, width:1922/2010, height:493/2814};
//defines available frames
availableFrames = [
{name:'White Legend Crown', src:'/img/frames/m15/crowns/new/w.png', masks:masks, bounds:bounds, complementary:9},
{name:'Blue Legend Crown', src:'/img/frames/m15/crowns/new/u.png', masks:masks, bounds:bounds, complementary:9},
{name:'Black Legend Crown', src:'/img/frames/m15/crowns/new/b.png', masks:masks, bounds:bounds, complementary:9},
{name:'Red Legend Crown', src:'/img/frames/m15/crowns/new/r.png', masks:masks, bounds:bounds, complementary:9},
{name:'Green Legend Crown', src:'/img/frames/m15/crowns/new/g.png', masks:masks, bounds:bounds, complementary:9},
{name:'Multicolored Legend Crown', src:'/img/frames/m15/crowns/new/m.png', masks:masks, bounds:bounds, complementary:9},
{name:'Artifact Legend Crown', src:'/img/frames/m15/crowns/new/a.png', masks:masks, bounds:bounds, complementary:9},
{name:'Land Legend Crown', src:'/img/frames/m15/crowns/new/l.png', masks:masks, bounds:bounds, complementary:9},
{name:'Colorless Legend Crown', src:'/img/frames/m15/crowns/new/c.png', masks:masks, bounds:bounds, complementary:9},
{name:'Legend Crown Border Cover', src:'/img/black.png', bounds:{x:0, y:0, width:1, height:137/2814}}
];
//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

@@ -0,0 +1,27 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}];
var bounds = {x:329/2010, y:70/2814, width:1353/2010, height:64/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/regular/new/nyx/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/regular/new/nyx/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/regular/new/nyx/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/regular/new/nyx/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/regular/new/nyx/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/nyx/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/regular/new/nyx/a.png', masks:masks},
{name:'White Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/w.png', bounds:bounds},
{name:'Blue Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/u.png', bounds:bounds},
{name:'Black Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/b.png', bounds:bounds},
{name:'Red Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/r.png', bounds:bounds},
{name:'Green Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/g.png', bounds:bounds},
{name:'Multicolored Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/m.png', bounds:bounds},
{name:'Artifact Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/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

@@ -0,0 +1,66 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}];
var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/regular/new/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/regular/new/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/regular/new/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/regular/new/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/regular/new/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/regular/new/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/regular/new/l.png', masks:masks},
{name:'Eldrazi Frame', src:'/img/frames/m15/regular/new/c.png', masks:masks},
{name:'Vehicle Frame', src:'/img/frames/m15/regular/new/v.png', masks:masks},
{name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds},
{name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds},
{name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds},
{name:'Red Power/Toughness', src:'/img/frames/m15/regular/m15PTR.png', bounds:bounds},
{name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds},
{name:'Vehicle Power/Toughness', src:'/img/frames/m15/regular/m15PTV.png', bounds:bounds},
{name:'White Land Frame', src:'/img/frames/m15/regular/new/lw.png', masks:masks},
{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/lu.png', masks:masks},
{name:'Black Land Frame', src:'/img/frames/m15/regular/new/lb.png', masks:masks},
{name:'Red Land Frame', src:'/img/frames/m15/regular/new/lr.png', masks:masks},
{name:'Green Land Frame', src:'/img/frames/m15/regular/new/lg.png', masks:masks},
{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/lm.png', masks:masks},
];
//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([2010,2814,0,0]);
//sets card version
card.version = 'm15Regular';
//art bounds
card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:1862/2010, 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:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0},
title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381},
type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324},
rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, 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();
}

56
js/frames/packSnowNew.js Normal file
View File

@@ -0,0 +1,56 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}];
var bounds = {x:0.3267, y:0.6491, width:0.3474, height:0.2496};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/regular/new/snow/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/regular/new/snow/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/regular/new/snow/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/regular/new/snow/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/regular/new/snow/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/snow/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/regular/new/snow/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/regular/new/snow/l.png', masks:masks},
{name:'White Land Frame', src:'/img/frames/m15/regular/new/snow/lw.png', masks:masks},
{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/snow/lu.png', masks:masks},
{name:'Black Land Frame', src:'/img/frames/m15/regular/new/snow/lb.png', masks:masks},
{name:'Red Land Frame', src:'/img/frames/m15/regular/new/snow/lr.png', masks:masks},
{name:'Green Land Frame', src:'/img/frames/m15/regular/new/snow/lg.png', masks:masks},
{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/snow/lm.png', masks:masks},
{name:'Green Land Frame', src:'/img/frames/m15/snow/gl.png', masks:masks},
{name:'Plains Watermark', src:'/img/frames/snow/watermarks/w.png', bounds:bounds},
{name:'Island Watermark', src:'/img/frames/snow/watermarks/u.png', bounds:bounds},
{name:'Swamp Watermark', src:'/img/frames/snow/watermarks/b.png', bounds:bounds},
{name:'Mountain Watermark', src:'/img/frames/snow/watermarks/r.png', bounds:bounds},
{name:'Forest Watermark', src:'/img/frames/snow/watermarks/g.png', bounds:bounds},
];
//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 = 'snowRegular';
//art bounds
card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:1862/2010, 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:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0},
title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381},
type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324},
rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, 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();

View File

@@ -0,0 +1,22 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/crowns/new/maskCrown.png', name:'Crown Without Pinlines'}, {src:'/img/frames/m15/crowns/new/maskCrownPinline.png', name:'Crown With Pinlines'}];
var bounds = {x:44/2010, y:53/2814, width:1922/2010, height:493/2814};
//defines available frames
availableFrames = [
{name:'White Legend Crown', src:'/img/frames/m15/ub/crowns/new/w.png', masks:masks, bounds:bounds, complementary:9},
{name:'Blue Legend Crown', src:'/img/frames/m15/ub/crowns/new/u.png', masks:masks, bounds:bounds, complementary:9},
{name:'Black Legend Crown', src:'/img/frames/m15/ub/crowns/new/b.png', masks:masks, bounds:bounds, complementary:9},
{name:'Red Legend Crown', src:'/img/frames/m15/ub/crowns/new/r.png', masks:masks, bounds:bounds, complementary:9},
{name:'Green Legend Crown', src:'/img/frames/m15/ub/crowns/new/g.png', masks:masks, bounds:bounds, complementary:9},
{name:'Multicolored Legend Crown', src:'/img/frames/m15/ub/crowns/new/m.png', masks:masks, bounds:bounds, complementary:9},
{name:'Artifact Legend Crown', src:'/img/frames/m15/ub/crowns/new/a.png', masks:masks, bounds:bounds, complementary:9},
{name:'Land Legend Crown', src:'/img/frames/m15/ub/crowns/new/l.png', masks:masks, bounds:bounds, complementary:9},
{name:'Colorless Legend Crown', src:'/img/frames/m15/crowns/new/c.png', masks:masks, bounds:bounds, complementary:9},
{name:'Legend Crown Border Cover', src:'/img/black.png', bounds:{x:0, y:0, width:1, height:137/2814}}
];
//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();

72
js/frames/packUBNew.js Normal file
View File

@@ -0,0 +1,72 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}];
var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
var bounds2 = {x:857/2015, y:2534/2814, width:299/2015, height:137/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/regular/new/ub/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/regular/new/ub/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/regular/new/ub/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/regular/new/ub/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/regular/new/ub/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/ub/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/regular/new/ub/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/regular/new/ub/l.png', masks:masks},
{name:'Vehicle Frame', src:'/img/frames/m15/regular/new/ub/v.png', masks:masks},
{name:'Colorless Frame', src:'/img/frames/m15/regular/new/ub/c.png', masks:masks},
{name:'White Land Frame', src:'/img/frames/m15/regular/new/ub/lw.png', masks:masks},
{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/ub/lu.png', masks:masks},
{name:'Black Land Frame', src:'/img/frames/m15/regular/new/ub/lb.png', masks:masks},
{name:'Red Land Frame', src:'/img/frames/m15/regular/new/ub/lr.png', masks:masks},
{name:'Green Land Frame', src:'/img/frames/m15/regular/new/ub/lg.png', masks:masks},
{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/ub/lm.png', masks:masks},
{name:'White Power/Toughness', src:'/img/frames/m15/ub/pt/w.png', bounds:bounds},
{name:'Blue Power/Toughness', src:'/img/frames/m15/ub/pt/u.png', bounds:bounds},
{name:'Black Power/Toughness', src:'/img/frames/m15/ub/pt/b.png', bounds:bounds},
{name:'Red Power/Toughness', src:'/img/frames/m15/ub/pt/r.png', bounds:bounds},
{name:'Green Power/Toughness', src:'/img/frames/m15/ub/pt/g.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/ub/pt/m.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/ub/pt/a.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/m15/ub/pt/c.png', bounds:bounds},
{name:'Vehicle Power/Toughness', src:'/img/frames/m15/ub/pt/v.png', bounds:bounds},
{name:'White Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/w.png', bounds:bounds2},
{name:'Blue Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/u.png', bounds:bounds2},
{name:'Black Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/b.png', bounds:bounds2},
{name:'Red Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/r.png', bounds:bounds2},
{name:'Green Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/g.png', bounds:bounds2},
{name:'Multicolored Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/m.png', bounds:bounds2},
{name:'Artifact Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/a.png', bounds:bounds2},
{name:'Land Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/l.png', bounds:bounds2},
{name:'Gray Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/gray.png', bounds:bounds2}
];
//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 = 'ubRegular';
//art bounds
card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:1862/2010, 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:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0},
title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381},
type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324},
rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, 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();