forked from GithubMirrors/cardconjurer
finishing dnd modules
This commit is contained in:
20
js/frames/packMarginDNDModule.js
Normal file
20
js/frames/packMarginDNDModule.js
Normal file
@@ -0,0 +1,20 @@
|
||||
//Create objects for common properties across available frames
|
||||
var bounds = {x:-0.044, y:-1/35, width:1.088, height:37/35};
|
||||
var ogBounds = {x:0, y:0, width:1, height:1};
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'White Extension', src:'/img/frames/dndModule/margin/w.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Blue Extension', src:'/img/frames/dndModule/margin/u.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Black Extension', src:'/img/frames/dndModule/margin/b.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Red Extension', src:'/img/frames/dndModule/margin/r.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Green Extension', src:'/img/frames/dndModule/margin/g.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Multicolored Extension', src:'/img/frames/dndModule/margin/m.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Artifact Extension', src:'/img/frames/dndModule/margin/a.svg', bounds:bounds, ogBounds:ogBounds},
|
||||
{name:'Colorless Extension', src:'/img/frames/dndModule/margin/c.svg', bounds:bounds, ogBounds:ogBounds}
|
||||
];
|
||||
//disables/enables the "Load Frame Version" button
|
||||
document.querySelector('#loadFrameVersion').disabled = false;
|
||||
//defines process for loading this version, if applicable
|
||||
document.querySelector('#loadFrameVersion').onclick = loadMarginVersion;
|
||||
//loads available frames
|
||||
loadFramePack();
|
Reference in New Issue
Block a user