MDFC Helper

This commit is contained in:
Kyle
2021-05-19 10:09:26 -07:00
parent 6d79e5e75a
commit 6652030049
5 changed files with 37 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -10,5 +10,7 @@ loadFramePacks([
{name:'Inner Crowns', value:'M15InnerCrowns'},
{name:'Holo Stamps', value:'M15HoloStamps'},
{name:'Dark Power/Toughness', value:'M15DarkPT'},
{name:'Colored Borders', value:'M15Borders'}
{name:'Colored Borders', value:'M15Borders'},
{name:'Misc', value:'disabled'},
{name:'Helper Cards', value:'ModalHelper'}
])

View File

@@ -0,0 +1,33 @@
//Create objects for common properties across available frames
//defines available frames
availableFrames = [
{name:'Frame', src:'/img/frames/modal/helper/regular.png'}
];
//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 = 'modalRegular';
//art bounds
card.artBounds = {x:0, y:0, width:1, height:1};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.5, y:0.9524, width:0.12, height:0.0410, vertical:'center', horizontal: 'center'};
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.081, width:0.9234, height:99/2100, oneLine:true, size:99/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0},
title: {name:'Title', text:'', x:0.22, y:0.0791, width:0.69, height:0.0534, oneLine:true, font:'belerenb', size:0.0534},
mana2: {name:'Mana Cost 2', text:'', y:0.1696, width:0.9234, height:99/2100, oneLine:true, size:99/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0},
title2: {name:'Title 2', text:'', x:0.22, y:0.1681, width:0.69, height:0.0534, oneLine:true, font:'belerenb', size:0.0534},
rules: {name:'Rules Text', text:'', x:0.0914, y:0.2439, width:0.8174, height:0.6762, size:0.0362},
});
}
//loads available frames
loadFramePack();

View File

@@ -58,7 +58,3 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
}
//loads available frames
loadFramePack();
//Only for the main version as the webpage loads:
if (!card.text) {
document.querySelector('#loadFrameVersion').click();
}