diff --git a/creator/index.php b/creator/index.php index 801a2d75..ca01d9f6 100644 --- a/creator/index.php +++ b/creator/index.php @@ -92,7 +92,7 @@ include('../globalHTML/header-1.php'); - + diff --git a/img/frames/kaldheim/nonleg/a.png b/img/frames/kaldheim/nonleg/a.png new file mode 100644 index 00000000..2120813d Binary files /dev/null and b/img/frames/kaldheim/nonleg/a.png differ diff --git a/img/frames/kaldheim/nonleg/aThumb.png b/img/frames/kaldheim/nonleg/aThumb.png new file mode 100644 index 00000000..518e386c Binary files /dev/null and b/img/frames/kaldheim/nonleg/aThumb.png differ diff --git a/img/frames/kaldheim/nonleg/b.png b/img/frames/kaldheim/nonleg/b.png new file mode 100644 index 00000000..b5223654 Binary files /dev/null and b/img/frames/kaldheim/nonleg/b.png differ diff --git a/img/frames/kaldheim/nonleg/bThumb.png b/img/frames/kaldheim/nonleg/bThumb.png new file mode 100644 index 00000000..3ae4fdf0 Binary files /dev/null and b/img/frames/kaldheim/nonleg/bThumb.png differ diff --git a/img/frames/kaldheim/nonleg/border.png b/img/frames/kaldheim/nonleg/border.png new file mode 100644 index 00000000..65f52848 Binary files /dev/null and b/img/frames/kaldheim/nonleg/border.png differ diff --git a/img/frames/kaldheim/nonleg/borderThumb.png b/img/frames/kaldheim/nonleg/borderThumb.png new file mode 100644 index 00000000..98ff97d0 Binary files /dev/null and b/img/frames/kaldheim/nonleg/borderThumb.png differ diff --git a/img/frames/kaldheim/nonleg/details.png b/img/frames/kaldheim/nonleg/details.png new file mode 100644 index 00000000..dc2de0f6 Binary files /dev/null and b/img/frames/kaldheim/nonleg/details.png differ diff --git a/img/frames/kaldheim/nonleg/detailsThumb.png b/img/frames/kaldheim/nonleg/detailsThumb.png new file mode 100644 index 00000000..2f9caa28 Binary files /dev/null and b/img/frames/kaldheim/nonleg/detailsThumb.png differ diff --git a/img/frames/kaldheim/nonleg/frame.png b/img/frames/kaldheim/nonleg/frame.png new file mode 100644 index 00000000..900f2b8b Binary files /dev/null and b/img/frames/kaldheim/nonleg/frame.png differ diff --git a/img/frames/kaldheim/nonleg/frameThumb.png b/img/frames/kaldheim/nonleg/frameThumb.png new file mode 100644 index 00000000..04012960 Binary files /dev/null and b/img/frames/kaldheim/nonleg/frameThumb.png differ diff --git a/img/frames/kaldheim/nonleg/g.png b/img/frames/kaldheim/nonleg/g.png new file mode 100644 index 00000000..73513a31 Binary files /dev/null and b/img/frames/kaldheim/nonleg/g.png differ diff --git a/img/frames/kaldheim/nonleg/gThumb.png b/img/frames/kaldheim/nonleg/gThumb.png new file mode 100644 index 00000000..ef61092d Binary files /dev/null and b/img/frames/kaldheim/nonleg/gThumb.png differ diff --git a/img/frames/kaldheim/nonleg/m.png b/img/frames/kaldheim/nonleg/m.png new file mode 100644 index 00000000..c3a326a6 Binary files /dev/null and b/img/frames/kaldheim/nonleg/m.png differ diff --git a/img/frames/kaldheim/nonleg/mThumb.png b/img/frames/kaldheim/nonleg/mThumb.png new file mode 100644 index 00000000..45950417 Binary files /dev/null and b/img/frames/kaldheim/nonleg/mThumb.png differ diff --git a/img/frames/kaldheim/nonleg/pinline.png b/img/frames/kaldheim/nonleg/pinline.png new file mode 100644 index 00000000..6c29a1b8 Binary files /dev/null and b/img/frames/kaldheim/nonleg/pinline.png differ diff --git a/img/frames/kaldheim/nonleg/pinlineThumb.png b/img/frames/kaldheim/nonleg/pinlineThumb.png new file mode 100644 index 00000000..c23384de Binary files /dev/null and b/img/frames/kaldheim/nonleg/pinlineThumb.png differ diff --git a/img/frames/kaldheim/nonleg/r.png b/img/frames/kaldheim/nonleg/r.png new file mode 100644 index 00000000..f181a3ed Binary files /dev/null and b/img/frames/kaldheim/nonleg/r.png differ diff --git a/img/frames/kaldheim/nonleg/rThumb.png b/img/frames/kaldheim/nonleg/rThumb.png new file mode 100644 index 00000000..5ec50d55 Binary files /dev/null and b/img/frames/kaldheim/nonleg/rThumb.png differ diff --git a/img/frames/kaldheim/nonleg/text.png b/img/frames/kaldheim/nonleg/text.png new file mode 100644 index 00000000..8ec31eac Binary files /dev/null and b/img/frames/kaldheim/nonleg/text.png differ diff --git a/img/frames/kaldheim/nonleg/textThumb.png b/img/frames/kaldheim/nonleg/textThumb.png new file mode 100644 index 00000000..647c8196 Binary files /dev/null and b/img/frames/kaldheim/nonleg/textThumb.png differ diff --git a/img/frames/kaldheim/nonleg/title.png b/img/frames/kaldheim/nonleg/title.png new file mode 100644 index 00000000..349340bd Binary files /dev/null and b/img/frames/kaldheim/nonleg/title.png differ diff --git a/img/frames/kaldheim/nonleg/titleThumb.png b/img/frames/kaldheim/nonleg/titleThumb.png new file mode 100644 index 00000000..e9040f10 Binary files /dev/null and b/img/frames/kaldheim/nonleg/titleThumb.png differ diff --git a/img/frames/kaldheim/nonleg/u.png b/img/frames/kaldheim/nonleg/u.png new file mode 100644 index 00000000..84ddadd3 Binary files /dev/null and b/img/frames/kaldheim/nonleg/u.png differ diff --git a/img/frames/kaldheim/nonleg/uThumb.png b/img/frames/kaldheim/nonleg/uThumb.png new file mode 100644 index 00000000..69f19455 Binary files /dev/null and b/img/frames/kaldheim/nonleg/uThumb.png differ diff --git a/img/frames/kaldheim/nonleg/w.png b/img/frames/kaldheim/nonleg/w.png new file mode 100644 index 00000000..7c8fc7ff Binary files /dev/null and b/img/frames/kaldheim/nonleg/w.png differ diff --git a/img/frames/kaldheim/nonleg/wThumb.png b/img/frames/kaldheim/nonleg/wThumb.png new file mode 100644 index 00000000..190ae56c Binary files /dev/null and b/img/frames/kaldheim/nonleg/wThumb.png differ diff --git a/js/frames/groupShowcase-4.js b/js/frames/groupShowcase-5.js similarity index 91% rename from js/frames/groupShowcase-4.js rename to js/frames/groupShowcase-5.js index 66746059..a3e6eb67 100644 --- a/js/frames/groupShowcase-4.js +++ b/js/frames/groupShowcase-5.js @@ -1,6 +1,7 @@ loadFramePacks([ {name:'Praetors', value:'Praetors'}, - {name:'Kaldheim', value:'Kaldheim-1'}, + {name:'Kaldheim', value:'Kaldheim-2'}, + {name:'Kaldheim (Nonlegendary)', value:'KaldheimNonleg'}, {name:'Commander Legends', value:'CommanderLegends'}, {name:'Zendikar Rising', value:'ZendikarRising'}, {name:'M21', value:'M21'}, diff --git a/js/frames/packKaldheim-1.js b/js/frames/packKaldheim-2.js similarity index 90% rename from js/frames/packKaldheim-1.js rename to js/frames/packKaldheim-2.js index b55d24cc..487f7b0d 100644 --- a/js/frames/packKaldheim-1.js +++ b/js/frames/packKaldheim-2.js @@ -4,7 +4,6 @@ var masks2 = [{src:'/img/frames/kaldheim/maskPTCorners.png', name:'Corners'}, {s var bounds = {x:0.7627, y:0.8853, width:0.188, height:0.0724}; var bounds2 = {x:0.02, y:0.0529, width:0.098, height:0.0591}; var bounds3 = {x:0.03, y:0.8886, width:0.438, height:0.0429}; -var bounds4 = {x:0.0414, y:0.0196, width:0.9174, height:0.0424}; //defines available frames availableFrames = [ {name:'White Frame', src:'/img/frames/kaldheim/frameW.png', masks:masks}, @@ -21,13 +20,6 @@ availableFrames = [ {name:'Green Power/Toughness', src:'/img/frames/kaldheim/ptG.png', bounds:bounds, masks:masks2}, {name:'Multicolored Power/Toughness', src:'/img/frames/kaldheim/ptM.png', bounds:bounds, masks:masks2}, {name:'Artifact Power/Toughness', src:'/img/frames/kaldheim/ptA.png', bounds:bounds, masks:masks2}, - {name:'White Nonlegendary', src:'/img/frames/kaldheim/nonlegend/w.png', bounds:bounds4}, - {name:'Blue Nonlegendary', src:'/img/frames/kaldheim/nonlegend/u.png', bounds:bounds4}, - {name:'Black Nonlegendary', src:'/img/frames/kaldheim/nonlegend/b.png', bounds:bounds4}, - {name:'Red Nonlegendary', src:'/img/frames/kaldheim/nonlegend/r.png', bounds:bounds4}, - {name:'Green Nonlegendary', src:'/img/frames/kaldheim/nonlegend/g.png', bounds:bounds4}, - {name:'Multicolored Nonlegendary', src:'/img/frames/kaldheim/nonlegend/m.png', bounds:bounds4}, - {name:'Artifact Nonlegendary', src:'/img/frames/kaldheim/nonlegend/a.png', bounds:bounds4}, {name:'White Icon (Front)', src:'/img/frames/kaldheim/modal/wft.png', bounds:bounds2}, {name:'Blue Icon (Front)', src:'/img/frames/kaldheim/modal/uft.png', bounds:bounds2}, {name:'Black Icon (Front)', src:'/img/frames/kaldheim/modal/bft.png', bounds:bounds2}, diff --git a/js/frames/packKaldheimNonleg.js b/js/frames/packKaldheimNonleg.js new file mode 100644 index 00000000..b880ecdd --- /dev/null +++ b/js/frames/packKaldheimNonleg.js @@ -0,0 +1,82 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/kaldheim/nonleg/details.png', name:'Details'}, {src:'/img/frames/kaldheim/nonleg/pinline.png', name:'Pinline'}, {src:'/img/frames/kaldheim/nonleg/title.png', name:'Title'}, {src:'/img/frames/kaldheim/maskType.png', name:'Type'}, {src:'/img/frames/kaldheim/maskTextbox.png', name:'Rules'}, {src:'/img/frames/kaldheim/nonleg/border.png', name:'Border'}, {src:'/img/frames/kaldheim/nonleg/frame.png', name:'Frame'}]; +var masks2 = [{src:'/img/frames/kaldheim/maskPTCorners.png', name:'Corners'}, {src:'/img/frames/kaldheim/maskPTCornersRight.png', name:'Corners (right)'}]; +var bounds = {x:0.7627, y:0.8853, width:0.188, height:0.0724}; +var bounds2 = {x:0.02, y:0.03, width:0.098, height:0.0591}; +var bounds3 = {x:0.03, y:0.8886, width:0.438, height:0.0429}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/kaldheim/nonleg/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/kaldheim/nonleg/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/kaldheim/nonleg/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/kaldheim/nonleg/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/kaldheim/nonleg/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/kaldheim/nonleg/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/kaldheim/nonleg/a.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/kaldheim/ptW.png', bounds:bounds, masks:masks2}, + {name:'Blue Power/Toughness', src:'/img/frames/kaldheim/ptU.png', bounds:bounds, masks:masks2}, + {name:'Black Power/Toughness', src:'/img/frames/kaldheim/ptB.png', bounds:bounds, masks:masks2}, + {name:'Red Power/Toughness', src:'/img/frames/kaldheim/ptR.png', bounds:bounds, masks:masks2}, + {name:'Green Power/Toughness', src:'/img/frames/kaldheim/ptG.png', bounds:bounds, masks:masks2}, + {name:'Multicolored Power/Toughness', src:'/img/frames/kaldheim/ptM.png', bounds:bounds, masks:masks2}, + {name:'Artifact Power/Toughness', src:'/img/frames/kaldheim/ptA.png', bounds:bounds, masks:masks2}, + {name:'White Icon (Front)', src:'/img/frames/kaldheim/modal/wft.png', bounds:bounds2}, + {name:'Blue Icon (Front)', src:'/img/frames/kaldheim/modal/uft.png', bounds:bounds2}, + {name:'Black Icon (Front)', src:'/img/frames/kaldheim/modal/bft.png', bounds:bounds2}, + {name:'Red Icon (Front)', src:'/img/frames/kaldheim/modal/rft.png', bounds:bounds2}, + {name:'Green Icon (Front)', src:'/img/frames/kaldheim/modal/gft.png', bounds:bounds2}, + {name:'Multicolored Icon (Front)', src:'/img/frames/kaldheim/modal/mft.png', bounds:bounds2}, + {name:'Artifact Icon (Front)', src:'/img/frames/kaldheim/modal/aft.png', bounds:bounds3}, + {name:'White Reminder (Front)', src:'/img/frames/kaldheim/modal/wfb.png', bounds:bounds3}, + {name:'Blue Reminder (Front)', src:'/img/frames/kaldheim/modal/ufb.png', bounds:bounds3}, + {name:'Black Reminder (Front)', src:'/img/frames/kaldheim/modal/bfb.png', bounds:bounds3}, + {name:'Red Reminder (Front)', src:'/img/frames/kaldheim/modal/rfb.png', bounds:bounds3}, + {name:'Green Reminder (Front)', src:'/img/frames/kaldheim/modal/gfb.png', bounds:bounds3}, + {name:'Multicolored Reminder (Front)', src:'/img/frames/kaldheim/modal/mfb.png', bounds:bounds3}, + {name:'Artifact Reminder (Front)', src:'/img/frames/kaldheim/modal/afb.png', bounds:bounds3}, + {name:'White Icon (Back)', src:'/img/frames/kaldheim/modal/wbt.png', bounds:bounds2}, + {name:'Blue Icon (Back)', src:'/img/frames/kaldheim/modal/ubt.png', bounds:bounds2}, + {name:'Black Icon (Back)', src:'/img/frames/kaldheim/modal/bbt.png', bounds:bounds2}, + {name:'Red Icon (Back)', src:'/img/frames/kaldheim/modal/rbt.png', bounds:bounds2}, + {name:'Green Icon (Back)', src:'/img/frames/kaldheim/modal/gbt.png', bounds:bounds2}, + {name:'Multicolored Icon (Back)', src:'/img/frames/kaldheim/modal/mbt.png', bounds:bounds2}, + {name:'Artifact Icon (Back)', src:'/img/frames/kaldheim/modal/abt.png', bounds:bounds3}, + {name:'White Reminder (Back)', src:'/img/frames/kaldheim/modal/wbb.png', bounds:bounds3}, + {name:'Blue Reminder (Back)', src:'/img/frames/kaldheim/modal/ubb.png', bounds:bounds3}, + {name:'Black Reminder (Back)', src:'/img/frames/kaldheim/modal/bbb.png', bounds:bounds3}, + {name:'Red Reminder (Back)', src:'/img/frames/kaldheim/modal/rbb.png', bounds:bounds3}, + {name:'Green Reminder (Back)', src:'/img/frames/kaldheim/modal/gbb.png', bounds:bounds3}, + {name:'Multicolored Reminder (Back)', src:'/img/frames/kaldheim/modal/mbb.png', bounds:bounds3}, + {name:'Artifact Reminder (Back)', src:'/img/frames/kaldheim/modal/abb.png', bounds:bounds3} +]; +//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() { + notify('If you make MDFC cards with this frame, we recommend adding "{right90}" before your card title.', 5) + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'm15Regular'; + //art bounds + card.artBounds = {x:0.1047, y:0.0929, width:0.7907, height:0.4848}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.6081, width:0.12, height:0.04, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0462, 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.0667, y:0.0362, width:0.8667, height:0.0543, oneLine:true, font:'belerenb', color:'white', size:0.0381, shadowX:0.0027, shadowY:0.002}, + type: {name:'Type', text:'', x:0.0734, y:0.5829, width:0.8534, height:0.0543, oneLine:true, font:'belerenb', color:'white', size:0.0324, shadowX:0.0027, shadowY:0.002}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6405, width:0.828, height:0.2739, size:0.0362}, + pt: {name:'Power/Toughness', text:'', x:0.7954, y:0.9029, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'}, + flipsideType: {name:'Flipside Type', text:'', x:0.068, y:0.892, width:0.364, height:0.0391, size:0.0234, color:'white', oneLine:true, font:'belerenb', shadowX:0.0014, shadowY:0.001}, + flipSideReminder: {name:'Flipside Text', text:'', x:0.068, y:0.892, width:0.364, height:0.0391, size:0.0258, color:'white', oneLine:true, align:'right', shadowX:0.0014, shadowY:0.001} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file