From 848abcb6b62ec4bbcc1964206fb705e48effe644 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Tue, 7 Sep 2021 13:53:46 -0700 Subject: [PATCH] make classicshifted updates live --- js/frames/groupCustom.js | 1 + js/frames/packClassicshifted.js | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/js/frames/groupCustom.js b/js/frames/groupCustom.js index ade1ab85..08d6d3cc 100644 --- a/js/frames/groupCustom.js +++ b/js/frames/groupCustom.js @@ -2,6 +2,7 @@ loadFramePacks([ {name:'Misc. Custom Frames', value:'MiscCustom'}, {name:'Cartoony - Sheepwave', value:'Cartoony'}, {name:'Classic-Shifted', value:'Classicshifted'}, + {name:'Classic-Shifted Planeswalkers', value:'ClassicshiftedPlaneswalker'}, {name:'Ixalan - @feuer_ameise', value:'FeuerAmeiseIxalan'}, {name:'Tapped (Horizontal M15)', value:'Tapped'}, {name:'Simple Inventions', value:'SimpleInventions'}, diff --git a/js/frames/packClassicshifted.js b/js/frames/packClassicshifted.js index ce186347..ff369b04 100644 --- a/js/frames/packClassicshifted.js +++ b/js/frames/packClassicshifted.js @@ -1,7 +1,8 @@ //Create objects for common properties across available frames -var masks = [{src:'/img/frames/custom/classicshifted/maskFrame.png', name:'Frame'}, {src:'/img/frames/custom/classicshifted/maskText.png', name:'Textbox'}, {src:'/img/frames/custom/classicshifted/pinline.svg', name:'Pinline'}]; +var masks = [{src:'/img/frames/custom/classicshifted/maskFrame.png', name:'Frame'}, {src:'/img/frames/custom/classicshifted/maskText.png', name:'Textbox'}, {src:'/img/frames/custom/classicshifted/pinline.svg', name:'Pinline'}, {src:'/img/frames/custom/classicshifted/dual.svg', name:'Dual Land Pinline'}]; var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; var bounds2 = {x:0.026, y:0.0129, width:0.948, height:0.1015}; +var bounds3 = {x:0.3267, y:0.6491, width:0.3474, height:0.2496}; //defines available frames availableFrames = [ {name:'White Frame', src:'/img/frames/custom/classicshifted/w.png', masks:masks}, @@ -32,7 +33,14 @@ availableFrames = [ {name:'Green Crown', src:'/img/frames/custom/classicshifted/cg.png', bounds:bounds2}, {name:'Multicolored Crown', src:'/img/frames/custom/classicshifted/cm.png', bounds:bounds2}, {name:'Artifact Crown', src:'/img/frames/custom/classicshifted/ca.png', bounds:bounds2}, - {name:'Land Crown', src:'/img/frames/custom/classicshifted/cl.png', bounds:bounds2} + {name:'Land Crown', src:'/img/frames/custom/classicshifted/cl.png', bounds:bounds2}, + {name:'Plains Watermark', src:'/img/frames/m15/basics/w.png', bounds:bounds3}, + {name:'Island Watermark', src:'/img/frames/m15/basics/u.png', bounds:bounds3}, + {name:'Swamp Watermark', src:'/img/frames/m15/basics/b.png', bounds:bounds3}, + {name:'Mountain Watermark', src:'/img/frames/m15/basics/r.png', bounds:bounds3}, + {name:'Forest Watermark', src:'/img/frames/m15/basics/g.png', bounds:bounds3}, + {name:'Wastes Watermark', src:'/img/frames/m15/basics/c.png', bounds:bounds3}, + {name:'Snow Overlay', src:'/img/frames/custom/classicshifted/snow.png'} ]; //disables/enables the "Load Frame Version" button document.querySelector('#loadFrameVersion').disabled = false;