forked from GithubMirrors/cardconjurer
21 lines
1.6 KiB
JavaScript
21 lines
1.6 KiB
JavaScript
//Create objects for common properties across available frames
|
|
var bounds = {x:0.0234, y:0.0167, width:0.952, height:0.1286};
|
|
//defines available frames
|
|
availableFrames = [
|
|
{name:'White Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/w.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Blue Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/u.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Black Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/b.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Red Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/r.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Green Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/g.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Multicolored Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/m.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Artifact Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/a.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Land Legend Crown', src:'/img/frames/m15/transform/crowns/nickname/l.png', bounds:bounds, complementary:[8,9]},
|
|
{name:'Legend Crown Border Cover', src:'/img/black.png', bounds:{x:0.0394, y:0.0277, width:0.9214, height:0.0177}, erase:true},
|
|
{name:'Legend Crown Lower Cutout', src:'/img/black.png', bounds:{x:0.0767, y:0.1096, width:0.8467, height:0.0143}, erase:true}
|
|
];
|
|
//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(); |