forked from GithubMirrors/cardconjurer
brawl crowns
This commit is contained in:
21
js/frames/packBrawl.js
Normal file
21
js/frames/packBrawl.js
Normal file
@@ -0,0 +1,21 @@
|
||||
//Create objects for common properties across available frames
|
||||
var masks = [{src:'/img/frames/custom/brawl/floating.svg', name:'Crown Without Pinlines'}, {src:'/img/frames/custom/brawl/center.svg', name:'Center'}, {src:'/img/frames/custom/brawl/second.svg', name:'Second'}, {src:'/img/frames/custom/brawl/third.svg', name:'Third'}, {src:'/img/frames/custom/brawl/wings.svg', name:'Wings'}];
|
||||
var bounds = {x:0.0094, y:0.0005, width:0.9814, height:0.1848};
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'Brawl Crown Border Cover', src:'/img/frames/custom/brawl/cover.svg'},
|
||||
{name:'White Crown', src:'/img/frames/custom/brawl/w.png', masks:masks, bounds:bounds},
|
||||
{name:'Blue Crown', src:'/img/frames/custom/brawl/u.png', masks:masks, bounds:bounds},
|
||||
{name:'Black Crown', src:'/img/frames/custom/brawl/b.png', masks:masks, bounds:bounds},
|
||||
{name:'Red Crown', src:'/img/frames/custom/brawl/r.png', masks:masks, bounds:bounds},
|
||||
{name:'Green Crown', src:'/img/frames/custom/brawl/g.png', masks:masks, bounds:bounds},
|
||||
{name:'Multicolored Crown', src:'/img/frames/custom/brawl/m.png', masks:masks, bounds:bounds},
|
||||
{name:'Artifact Crown', src:'/img/frames/custom/brawl/a.png', masks:masks, bounds:bounds},
|
||||
{name:'Land Crown', src:'/img/frames/custom/brawl/l.png', masks:masks, 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();
|
Reference in New Issue
Block a user