diff --git a/creator/index.php b/creator/index.php index a4ddf49b..166e3223 100644 --- a/creator/index.php +++ b/creator/index.php @@ -90,12 +90,12 @@ include('../globalHTML/header-1.php'); + - diff --git a/img/frames/modal/crowns/regular/a.png b/img/frames/modal/crowns/regular/a.png new file mode 100644 index 00000000..0086a8f0 Binary files /dev/null and b/img/frames/modal/crowns/regular/a.png differ diff --git a/img/frames/modal/crowns/regular/aThumb.png b/img/frames/modal/crowns/regular/aThumb.png new file mode 100644 index 00000000..d4bdc0ab Binary files /dev/null and b/img/frames/modal/crowns/regular/aThumb.png differ diff --git a/img/frames/modal/crowns/regular/b.png b/img/frames/modal/crowns/regular/b.png new file mode 100644 index 00000000..3dc75069 Binary files /dev/null and b/img/frames/modal/crowns/regular/b.png differ diff --git a/img/frames/modal/crowns/regular/bThumb.png b/img/frames/modal/crowns/regular/bThumb.png new file mode 100644 index 00000000..28e88017 Binary files /dev/null and b/img/frames/modal/crowns/regular/bThumb.png differ diff --git a/img/frames/modal/crowns/regular/cover.svg b/img/frames/modal/crowns/regular/cover.svg new file mode 100644 index 00000000..db71c2a0 --- /dev/null +++ b/img/frames/modal/crowns/regular/cover.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/modal/crowns/regular/coverThumb.png b/img/frames/modal/crowns/regular/coverThumb.png new file mode 100644 index 00000000..a1666bd9 Binary files /dev/null and b/img/frames/modal/crowns/regular/coverThumb.png differ diff --git a/img/frames/modal/crowns/regular/g.png b/img/frames/modal/crowns/regular/g.png new file mode 100644 index 00000000..67b24686 Binary files /dev/null and b/img/frames/modal/crowns/regular/g.png differ diff --git a/img/frames/modal/crowns/regular/gThumb.png b/img/frames/modal/crowns/regular/gThumb.png new file mode 100644 index 00000000..018931a1 Binary files /dev/null and b/img/frames/modal/crowns/regular/gThumb.png differ diff --git a/img/frames/modal/crowns/regular/l.png b/img/frames/modal/crowns/regular/l.png new file mode 100644 index 00000000..049a1c4c Binary files /dev/null and b/img/frames/modal/crowns/regular/l.png differ diff --git a/img/frames/modal/crowns/regular/lThumb.png b/img/frames/modal/crowns/regular/lThumb.png new file mode 100644 index 00000000..531ba376 Binary files /dev/null and b/img/frames/modal/crowns/regular/lThumb.png differ diff --git a/img/frames/modal/crowns/regular/m.png b/img/frames/modal/crowns/regular/m.png new file mode 100644 index 00000000..3cacc92f Binary files /dev/null and b/img/frames/modal/crowns/regular/m.png differ diff --git a/img/frames/modal/crowns/regular/mThumb.png b/img/frames/modal/crowns/regular/mThumb.png new file mode 100644 index 00000000..584a40ed Binary files /dev/null and b/img/frames/modal/crowns/regular/mThumb.png differ diff --git a/img/frames/modal/crowns/regular/r.png b/img/frames/modal/crowns/regular/r.png new file mode 100644 index 00000000..481bddad Binary files /dev/null and b/img/frames/modal/crowns/regular/r.png differ diff --git a/img/frames/modal/crowns/regular/rThumb.png b/img/frames/modal/crowns/regular/rThumb.png new file mode 100644 index 00000000..73164a76 Binary files /dev/null and b/img/frames/modal/crowns/regular/rThumb.png differ diff --git a/img/frames/modal/crowns/regular/u.png b/img/frames/modal/crowns/regular/u.png new file mode 100644 index 00000000..ce631345 Binary files /dev/null and b/img/frames/modal/crowns/regular/u.png differ diff --git a/img/frames/modal/crowns/regular/uThumb.png b/img/frames/modal/crowns/regular/uThumb.png new file mode 100644 index 00000000..9f767616 Binary files /dev/null and b/img/frames/modal/crowns/regular/uThumb.png differ diff --git a/img/frames/modal/crowns/regular/w.png b/img/frames/modal/crowns/regular/w.png index 39a60d83..4eab64a9 100644 Binary files a/img/frames/modal/crowns/regular/w.png and b/img/frames/modal/crowns/regular/w.png differ diff --git a/img/frames/modal/crowns/regular/wThumb.png b/img/frames/modal/crowns/regular/wThumb.png new file mode 100644 index 00000000..5b501134 Binary files /dev/null and b/img/frames/modal/crowns/regular/wThumb.png differ diff --git a/img/frames/modal/regular/a.png b/img/frames/modal/regular/a.png new file mode 100644 index 00000000..98e2fed4 Binary files /dev/null and b/img/frames/modal/regular/a.png differ diff --git a/img/frames/modal/regular/aThumb.png b/img/frames/modal/regular/aThumb.png new file mode 100644 index 00000000..bb4f1e36 Binary files /dev/null and b/img/frames/modal/regular/aThumb.png differ diff --git a/img/frames/modal/regular/ab.png b/img/frames/modal/regular/ab.png new file mode 100644 index 00000000..c8c985ee Binary files /dev/null and b/img/frames/modal/regular/ab.png differ diff --git a/img/frames/modal/regular/abThumb.png b/img/frames/modal/regular/abThumb.png new file mode 100644 index 00000000..29269974 Binary files /dev/null and b/img/frames/modal/regular/abThumb.png differ diff --git a/img/frames/modal/regular/b.png b/img/frames/modal/regular/b.png new file mode 100644 index 00000000..47fe9e11 Binary files /dev/null and b/img/frames/modal/regular/b.png differ diff --git a/img/frames/modal/regular/bThumb.png b/img/frames/modal/regular/bThumb.png new file mode 100644 index 00000000..c5105516 Binary files /dev/null and b/img/frames/modal/regular/bThumb.png differ diff --git a/img/frames/modal/regular/bb.png b/img/frames/modal/regular/bb.png new file mode 100644 index 00000000..f633e454 Binary files /dev/null and b/img/frames/modal/regular/bb.png differ diff --git a/img/frames/modal/regular/bbThumb.png b/img/frames/modal/regular/bbThumb.png new file mode 100644 index 00000000..6603257d Binary files /dev/null and b/img/frames/modal/regular/bbThumb.png differ diff --git a/img/frames/modal/regular/border.svg b/img/frames/modal/regular/border.svg new file mode 100644 index 00000000..bed1c45f --- /dev/null +++ b/img/frames/modal/regular/border.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/frames/modal/regular/borderThumb.png b/img/frames/modal/regular/borderThumb.png new file mode 100644 index 00000000..f8e2dd3d Binary files /dev/null and b/img/frames/modal/regular/borderThumb.png differ diff --git a/img/frames/modal/regular/frame.svg b/img/frames/modal/regular/frame.svg new file mode 100644 index 00000000..955af934 --- /dev/null +++ b/img/frames/modal/regular/frame.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/frames/modal/regular/frameThumb.png b/img/frames/modal/regular/frameThumb.png new file mode 100644 index 00000000..f7313348 Binary files /dev/null and b/img/frames/modal/regular/frameThumb.png differ diff --git a/img/frames/modal/regular/g.png b/img/frames/modal/regular/g.png new file mode 100644 index 00000000..79120408 Binary files /dev/null and b/img/frames/modal/regular/g.png differ diff --git a/img/frames/modal/regular/gThumb.png b/img/frames/modal/regular/gThumb.png new file mode 100644 index 00000000..b268c778 Binary files /dev/null and b/img/frames/modal/regular/gThumb.png differ diff --git a/img/frames/modal/regular/gb.png b/img/frames/modal/regular/gb.png new file mode 100644 index 00000000..e18405b7 Binary files /dev/null and b/img/frames/modal/regular/gb.png differ diff --git a/img/frames/modal/regular/gbThumb.png b/img/frames/modal/regular/gbThumb.png new file mode 100644 index 00000000..0ae653fb Binary files /dev/null and b/img/frames/modal/regular/gbThumb.png differ diff --git a/img/frames/modal/regular/l.png b/img/frames/modal/regular/l.png new file mode 100644 index 00000000..3a5804f4 Binary files /dev/null and b/img/frames/modal/regular/l.png differ diff --git a/img/frames/modal/regular/lThumb.png b/img/frames/modal/regular/lThumb.png new file mode 100644 index 00000000..b37a725d Binary files /dev/null and b/img/frames/modal/regular/lThumb.png differ diff --git a/img/frames/modal/regular/lb.png b/img/frames/modal/regular/lb.png new file mode 100644 index 00000000..a4e9acbb Binary files /dev/null and b/img/frames/modal/regular/lb.png differ diff --git a/img/frames/modal/regular/lbThumb.png b/img/frames/modal/regular/lbThumb.png new file mode 100644 index 00000000..4df729ac Binary files /dev/null and b/img/frames/modal/regular/lbThumb.png differ diff --git a/img/frames/modal/regular/m.png b/img/frames/modal/regular/m.png new file mode 100644 index 00000000..27e49276 Binary files /dev/null and b/img/frames/modal/regular/m.png differ diff --git a/img/frames/modal/regular/mThumb.png b/img/frames/modal/regular/mThumb.png new file mode 100644 index 00000000..41f9b8e5 Binary files /dev/null and b/img/frames/modal/regular/mThumb.png differ diff --git a/img/frames/modal/regular/mb.png b/img/frames/modal/regular/mb.png new file mode 100644 index 00000000..d9cacb9d Binary files /dev/null and b/img/frames/modal/regular/mb.png differ diff --git a/img/frames/modal/regular/mbThumb.png b/img/frames/modal/regular/mbThumb.png new file mode 100644 index 00000000..f2f8b8bf Binary files /dev/null and b/img/frames/modal/regular/mbThumb.png differ diff --git a/img/frames/modal/regular/pinline.svg b/img/frames/modal/regular/pinline.svg new file mode 100644 index 00000000..f92ece85 --- /dev/null +++ b/img/frames/modal/regular/pinline.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/modal/regular/pinlineThumb.png b/img/frames/modal/regular/pinlineThumb.png new file mode 100644 index 00000000..1ff2830d Binary files /dev/null and b/img/frames/modal/regular/pinlineThumb.png differ diff --git a/img/frames/modal/regular/r.png b/img/frames/modal/regular/r.png new file mode 100644 index 00000000..cf0b3ac6 Binary files /dev/null and b/img/frames/modal/regular/r.png differ diff --git a/img/frames/modal/regular/rThumb.png b/img/frames/modal/regular/rThumb.png new file mode 100644 index 00000000..0ef5e2d9 Binary files /dev/null and b/img/frames/modal/regular/rThumb.png differ diff --git a/img/frames/modal/regular/rb.png b/img/frames/modal/regular/rb.png new file mode 100644 index 00000000..b3c1c4a8 Binary files /dev/null and b/img/frames/modal/regular/rb.png differ diff --git a/img/frames/modal/regular/rbThumb.png b/img/frames/modal/regular/rbThumb.png new file mode 100644 index 00000000..a9ac6b38 Binary files /dev/null and b/img/frames/modal/regular/rbThumb.png differ diff --git a/img/frames/modal/regular/reminder.svg b/img/frames/modal/regular/reminder.svg new file mode 100644 index 00000000..2c5b86c9 --- /dev/null +++ b/img/frames/modal/regular/reminder.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/modal/regular/reminderThumb.png b/img/frames/modal/regular/reminderThumb.png new file mode 100644 index 00000000..8389bf39 Binary files /dev/null and b/img/frames/modal/regular/reminderThumb.png differ diff --git a/img/frames/modal/regular/textbox.svg b/img/frames/modal/regular/textbox.svg new file mode 100644 index 00000000..ac7e3ea9 --- /dev/null +++ b/img/frames/modal/regular/textbox.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/modal/regular/textboxThumb.png b/img/frames/modal/regular/textboxThumb.png new file mode 100644 index 00000000..b9023dca Binary files /dev/null and b/img/frames/modal/regular/textboxThumb.png differ diff --git a/img/frames/modal/regular/title.svg b/img/frames/modal/regular/title.svg new file mode 100644 index 00000000..caec59a9 --- /dev/null +++ b/img/frames/modal/regular/title.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/modal/regular/titleThumb.png b/img/frames/modal/regular/titleThumb.png new file mode 100644 index 00000000..5aab0e68 Binary files /dev/null and b/img/frames/modal/regular/titleThumb.png differ diff --git a/img/frames/modal/regular/u.png b/img/frames/modal/regular/u.png new file mode 100644 index 00000000..43c1aa8a Binary files /dev/null and b/img/frames/modal/regular/u.png differ diff --git a/img/frames/modal/regular/uThumb.png b/img/frames/modal/regular/uThumb.png new file mode 100644 index 00000000..c2c9061c Binary files /dev/null and b/img/frames/modal/regular/uThumb.png differ diff --git a/img/frames/modal/regular/ub.png b/img/frames/modal/regular/ub.png new file mode 100644 index 00000000..4d5b36ea Binary files /dev/null and b/img/frames/modal/regular/ub.png differ diff --git a/img/frames/modal/regular/ubThumb.png b/img/frames/modal/regular/ubThumb.png new file mode 100644 index 00000000..0dda7466 Binary files /dev/null and b/img/frames/modal/regular/ubThumb.png differ diff --git a/img/frames/modal/regular/w.png b/img/frames/modal/regular/w.png new file mode 100644 index 00000000..d6bcf911 Binary files /dev/null and b/img/frames/modal/regular/w.png differ diff --git a/img/frames/modal/regular/wThumb.png b/img/frames/modal/regular/wThumb.png new file mode 100644 index 00000000..2d90c556 Binary files /dev/null and b/img/frames/modal/regular/wThumb.png differ diff --git a/img/frames/modal/regular/wb.png b/img/frames/modal/regular/wb.png new file mode 100644 index 00000000..614e9161 Binary files /dev/null and b/img/frames/modal/regular/wb.png differ diff --git a/img/frames/modal/regular/wbThumb.png b/img/frames/modal/regular/wbThumb.png new file mode 100644 index 00000000..ece39cb8 Binary files /dev/null and b/img/frames/modal/regular/wbThumb.png differ diff --git a/js/frames/groupModal-1.js b/js/frames/groupModal-1.js index a1a8cdf4..f97f0e14 100644 --- a/js/frames/groupModal-1.js +++ b/js/frames/groupModal-1.js @@ -1,7 +1,9 @@ loadFramePacks([ - {name:'Regular', value:'ModalShort'}, - {name:'Nickname', value:'ModalShortNickname'}, + {name:'Regular', value:'ModalRegular'}, + {name:'Short', value:'ModalShort'}, + {name:'Short-Nickname', value:'ModalShortNickname'}, {name:'Addons', value:'disabled'}, + {name:'Regular Legend Crowns', value:'ModalLegendCrowns'}, {name:'Floating Legend Crowns', value:'ModalLegendCrownsFloating'}, {name:'Nickname Legend Crowns', value:'ModalLegendCrownsNickname'}, {name:'Brawl Legend Crowns', value:'ModalLegendCrownsBrawl'}, diff --git a/js/frames/packModalLegendCrowns.js b/js/frames/packModalLegendCrowns.js new file mode 100644 index 00000000..2fca49cd --- /dev/null +++ b/js/frames/packModalLegendCrowns.js @@ -0,0 +1,21 @@ +//Create objects for common properties across available frames +// var masks = [{src:'/img/frames/m15/crowns/m15MaskLegendCrown.png', name:'Crown Without Pinlines'}, {src:'/img/frames/m15/crowns/m15MaskLegendCrownPinline.png', name:'Crown With Pinlines'}]; +var bounds = {x:0.0274, y:0.0191, width:0.9454, height:0.1667}; +//defines available frames +availableFrames = [ + {name:'Legend Crown Border Cover', src:'/img/frames/modal/crowns/regular/cover.svg'}, + {name:'White Legend Crown', src:'/img/frames/modal/crowns/regular/w.png', bounds:bounds}, + {name:'Blue Legend Crown', src:'/img/frames/modal/crowns/regular/u.png', bounds:bounds}, + {name:'Black Legend Crown', src:'/img/frames/modal/crowns/regular/b.png', bounds:bounds}, + {name:'Red Legend Crown', src:'/img/frames/modal/crowns/regular/r.png', bounds:bounds}, + {name:'Green Legend Crown', src:'/img/frames/modal/crowns/regular/g.png', bounds:bounds}, + {name:'Multicolored Legend Crown', src:'/img/frames/modal/crowns/regular/m.png', bounds:bounds}, + {name:'Artifact Legend Crown', src:'/img/frames/modal/crowns/regular/a.png', bounds:bounds}, + {name:'Land Legend Crown', src:'/img/frames/modal/crowns/regular/l.png', 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(); \ No newline at end of file diff --git a/js/frames/packModalRegular.js b/js/frames/packModalRegular.js new file mode 100644 index 00000000..592f1028 --- /dev/null +++ b/js/frames/packModalRegular.js @@ -0,0 +1,64 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/modal/regular/reminder.svg', name:'Flipside'}, {src:'/img/frames/modal/regular/pinline.svg', name:'Pinline'}, {src:'/img/frames/modal/regular/title.svg', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/modal/regular/textbox.svg', name:'Rules'}, {src:'/img/frames/modal/regular/frame.svg', name:'Frame'}, {src:'/img/frames/modal/regular/border.svg', name:'Border'}]; +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; +//defines available frames +availableFrames = [ + {name:'White Frame (Front)', src:'/img/frames/modal/regular/w.png', masks:masks}, + {name:'Blue Frame (Front)', src:'/img/frames/modal/regular/u.png', masks:masks}, + {name:'Black Frame (Front)', src:'/img/frames/modal/regular/b.png', masks:masks}, + {name:'Red Frame (Front)', src:'/img/frames/modal/regular/r.png', masks:masks}, + {name:'Green Frame (Front)', src:'/img/frames/modal/regular/g.png', masks:masks}, + {name:'Multicolored Frame (Front)', src:'/img/frames/modal/regular/m.png', masks:masks}, + {name:'Artifact Frame (Front)', src:'/img/frames/modal/regular/a.png', masks:masks}, + {name:'Land Frame (Front)', src:'/img/frames/modal/regular/l.png', masks:masks}, + {name:'White Frame (Back)', src:'/img/frames/modal/regular/wb.png', masks:masks}, + {name:'Blue Frame (Back)', src:'/img/frames/modal/regular/ub.png', masks:masks}, + {name:'Black Frame (Back)', src:'/img/frames/modal/regular/bb.png', masks:masks}, + {name:'Red Frame (Back)', src:'/img/frames/modal/regular/rb.png', masks:masks}, + {name:'Green Frame (Back)', src:'/img/frames/modal/regular/gb.png', masks:masks}, + {name:'Multicolored Frame (Back)', src:'/img/frames/modal/regular/mb.png', masks:masks}, + {name:'Artifact Frame (Back)', src:'/img/frames/modal/regular/ab.png', masks:masks}, + {name:'Land Frame (Back)', src:'/img/frames/modal/regular/lb.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds}, + {name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/m15/regular/m15PTR.png', bounds:bounds}, + {name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds}, + {name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds}, + {name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds}, +]; +//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() { + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'modalRegular'; + //art bounds + card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.5910, width:0.12, height:0.0410, 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.0613, 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.1614, y:0.0522, width:0.7534, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362}, + 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'}, + 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'}, + pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} + }); +} +//loads available frames +loadFramePack(); +//Only for the main version as the webpage loads: +if (!card.text) { + document.querySelector('#loadFrameVersion').click(); +} \ No newline at end of file