mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
custom dual lands
This commit is contained in:
@@ -6,6 +6,7 @@ loadFramePacks([
|
||||
{name:'Ixalan - @feuer_ameise', value:'FeuerAmeiseIxalan'},
|
||||
{name:'Tapped (Horizontal M15)', value:'Tapped'},
|
||||
{name:'Simple Inventions', value:'SimpleInventions'},
|
||||
{name:'Textless Duals', value:'CustomDualLands'},
|
||||
{name:'Custom Addons', value:'disabled'},
|
||||
{name:'Brawl Legend Crowns', value:'Brawl'}
|
||||
])
|
52
js/frames/packCustomDualLands.js
Normal file
52
js/frames/packCustomDualLands.js
Normal file
@@ -0,0 +1,52 @@
|
||||
//Create objects for common properties across available frames
|
||||
var masks = [{src:'/img/frames/custom/dualLands/pinline.svg', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/custom/dualLands/type.svg', name:'Type'}];
|
||||
var bounds = {x:0.07, y:0.8153, width:0.16, height:0.1143};
|
||||
var bounds2 = {x:0.77, y:0.8153, width:0.16, height:0.1143};
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'White Frame', src:'/img/frames/custom/dualLands/w.png', masks:masks},
|
||||
{name:'Blue Frame', src:'/img/frames/custom/dualLands/u.png', masks:masks},
|
||||
{name:'Black Frame', src:'/img/frames/custom/dualLands/b.png', masks:masks},
|
||||
{name:'Red Frame', src:'/img/frames/custom/dualLands/r.png', masks:masks},
|
||||
{name:'Green Frame', src:'/img/frames/custom/dualLands/g.png', masks:masks},
|
||||
{name:'Multicolored Frame', src:'/img/frames/custom/dualLands/m.png', masks:masks},
|
||||
{name:'Colorless Frame', src:'/img/frames/custom/dualLands/l.png', masks:masks},
|
||||
{name:'White Mana Symbol (Left)', src:'/img/frames/textless/zendikar/sw.svg', bounds:bounds},
|
||||
{name:'Blue Mana Symbol (Left)', src:'/img/frames/textless/zendikar/su.svg', bounds:bounds},
|
||||
{name:'Black Mana Symbol (Left)', src:'/img/frames/textless/zendikar/sb.svg', bounds:bounds},
|
||||
{name:'Red Mana Symbol (Left)', src:'/img/frames/textless/zendikar/sr.svg', bounds:bounds},
|
||||
{name:'Green Mana Symbol (Left)', src:'/img/frames/textless/zendikar/sg.svg', bounds:bounds},
|
||||
{name:'Colorless Mana Symbol (Left)', src:'/img/frames/textless/zendikar/sc.svg', bounds:bounds},
|
||||
{name:'White Mana Symbol (Right)', src:'/img/frames/textless/zendikar/sw.svg', bounds:bounds2},
|
||||
{name:'Blue Mana Symbol (Right)', src:'/img/frames/textless/zendikar/su.svg', bounds:bounds2},
|
||||
{name:'Black Mana Symbol (Right)', src:'/img/frames/textless/zendikar/sb.svg', bounds:bounds2},
|
||||
{name:'Red Mana Symbol (Right)', src:'/img/frames/textless/zendikar/sr.svg', bounds:bounds2},
|
||||
{name:'Green Mana Symbol (Right)', src:'/img/frames/textless/zendikar/sg.svg', bounds:bounds2},
|
||||
{name:'Colorless Mana Symbol (Right)', src:'/img/frames/textless/zendikar/sc.svg', 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 = 'customDualLands';
|
||||
//art bounds
|
||||
card.artBounds = {x:0, y:0, width:1, height:0.9224};
|
||||
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:-1, y:-1, width:0.0007, height:0.0005};
|
||||
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 (Left)', text:'', x:0.25, y:0.8481, width:0.5, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, align:'center'},
|
||||
});
|
||||
}
|
||||
//loads available frames
|
||||
loadFramePack();
|
Reference in New Issue
Block a user