diff --git a/img/frames/custom/celid/asap/crown/a.png b/img/frames/custom/celid/asap/crown/a.png new file mode 100644 index 00000000..c009b45c Binary files /dev/null and b/img/frames/custom/celid/asap/crown/a.png differ diff --git a/img/frames/custom/celid/asap/crown/aThumb.png b/img/frames/custom/celid/asap/crown/aThumb.png new file mode 100644 index 00000000..667cb5c0 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/aThumb.png differ diff --git a/img/frames/custom/celid/asap/crown/b.png b/img/frames/custom/celid/asap/crown/b.png new file mode 100644 index 00000000..bde1896b Binary files /dev/null and b/img/frames/custom/celid/asap/crown/b.png differ diff --git a/img/frames/custom/celid/asap/crown/bThumb.png b/img/frames/custom/celid/asap/crown/bThumb.png new file mode 100644 index 00000000..83a617a6 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/bThumb.png differ diff --git a/img/frames/custom/celid/asap/crown/g.png b/img/frames/custom/celid/asap/crown/g.png new file mode 100644 index 00000000..ac879212 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/g.png differ diff --git a/img/frames/custom/celid/asap/crown/gThumb.png b/img/frames/custom/celid/asap/crown/gThumb.png new file mode 100644 index 00000000..322d81a0 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/gThumb.png differ diff --git a/img/frames/custom/celid/asap/crown/m.png b/img/frames/custom/celid/asap/crown/m.png new file mode 100644 index 00000000..72082047 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/m.png differ diff --git a/img/frames/custom/celid/asap/crown/mThumb.png b/img/frames/custom/celid/asap/crown/mThumb.png new file mode 100644 index 00000000..8e7c0862 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/mThumb.png differ diff --git a/img/frames/custom/celid/asap/crown/r.png b/img/frames/custom/celid/asap/crown/r.png new file mode 100644 index 00000000..e804c399 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/r.png differ diff --git a/img/frames/custom/celid/asap/crown/rThumb.png b/img/frames/custom/celid/asap/crown/rThumb.png new file mode 100644 index 00000000..6990e5d7 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/rThumb.png differ diff --git a/img/frames/custom/celid/asap/crown/u.png b/img/frames/custom/celid/asap/crown/u.png new file mode 100644 index 00000000..d4d72038 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/u.png differ diff --git a/img/frames/custom/celid/asap/crown/uThumb.png b/img/frames/custom/celid/asap/crown/uThumb.png new file mode 100644 index 00000000..9cf13413 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/uThumb.png differ diff --git a/img/frames/custom/celid/asap/crown/w.png b/img/frames/custom/celid/asap/crown/w.png new file mode 100644 index 00000000..2e43da38 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/w.png differ diff --git a/img/frames/custom/celid/asap/crown/wThumb.png b/img/frames/custom/celid/asap/crown/wThumb.png new file mode 100644 index 00000000..e60ffd94 Binary files /dev/null and b/img/frames/custom/celid/asap/crown/wThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/a.png b/img/frames/custom/celid/asap/pt/a.png index 5aadc027..ca9d6f72 100644 Binary files a/img/frames/custom/celid/asap/pt/a.png and b/img/frames/custom/celid/asap/pt/a.png differ diff --git a/img/frames/custom/celid/asap/pt/aThumb.png b/img/frames/custom/celid/asap/pt/aThumb.png new file mode 100644 index 00000000..987612c5 Binary files /dev/null and b/img/frames/custom/celid/asap/pt/aThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/b.png b/img/frames/custom/celid/asap/pt/b.png index dbb24e9f..4ac18ae6 100644 Binary files a/img/frames/custom/celid/asap/pt/b.png and b/img/frames/custom/celid/asap/pt/b.png differ diff --git a/img/frames/custom/celid/asap/pt/bThumb.png b/img/frames/custom/celid/asap/pt/bThumb.png new file mode 100644 index 00000000..4934674f Binary files /dev/null and b/img/frames/custom/celid/asap/pt/bThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/g.png b/img/frames/custom/celid/asap/pt/g.png index eb01ce17..61df7ea4 100644 Binary files a/img/frames/custom/celid/asap/pt/g.png and b/img/frames/custom/celid/asap/pt/g.png differ diff --git a/img/frames/custom/celid/asap/pt/gThumb.png b/img/frames/custom/celid/asap/pt/gThumb.png new file mode 100644 index 00000000..42da0c3c Binary files /dev/null and b/img/frames/custom/celid/asap/pt/gThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/m.png b/img/frames/custom/celid/asap/pt/m.png index 4b5d0d9a..3695d51b 100644 Binary files a/img/frames/custom/celid/asap/pt/m.png and b/img/frames/custom/celid/asap/pt/m.png differ diff --git a/img/frames/custom/celid/asap/pt/mThumb.png b/img/frames/custom/celid/asap/pt/mThumb.png new file mode 100644 index 00000000..594c5310 Binary files /dev/null and b/img/frames/custom/celid/asap/pt/mThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/r.png b/img/frames/custom/celid/asap/pt/r.png index 6027805a..dd4816bc 100644 Binary files a/img/frames/custom/celid/asap/pt/r.png and b/img/frames/custom/celid/asap/pt/r.png differ diff --git a/img/frames/custom/celid/asap/pt/rThumb.png b/img/frames/custom/celid/asap/pt/rThumb.png new file mode 100644 index 00000000..a12e4b39 Binary files /dev/null and b/img/frames/custom/celid/asap/pt/rThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/u.png b/img/frames/custom/celid/asap/pt/u.png index 3ddfd904..aaf0b249 100644 Binary files a/img/frames/custom/celid/asap/pt/u.png and b/img/frames/custom/celid/asap/pt/u.png differ diff --git a/img/frames/custom/celid/asap/pt/uThumb.png b/img/frames/custom/celid/asap/pt/uThumb.png new file mode 100644 index 00000000..92360a59 Binary files /dev/null and b/img/frames/custom/celid/asap/pt/uThumb.png differ diff --git a/img/frames/custom/celid/asap/pt/w.png b/img/frames/custom/celid/asap/pt/w.png index e7565457..8619ae63 100644 Binary files a/img/frames/custom/celid/asap/pt/w.png and b/img/frames/custom/celid/asap/pt/w.png differ diff --git a/img/frames/custom/celid/asap/pt/wThumb.png b/img/frames/custom/celid/asap/pt/wThumb.png new file mode 100644 index 00000000..1ba1ac9c Binary files /dev/null and b/img/frames/custom/celid/asap/pt/wThumb.png differ diff --git a/js/frames/packCustomCelidAsap.js b/js/frames/packCustomCelidAsap.js index f378ecff..82a508c1 100644 --- a/js/frames/packCustomCelidAsap.js +++ b/js/frames/packCustomCelidAsap.js @@ -1,15 +1,29 @@ //Create objects for common properties across available frames -var masks = []//[{src:'/img/frames/m15/regular/m15MaskPinline.png', name:'Pinline'}]; -// var bounds = {x:0.74, y:0.85, width:0.26, height:0.15}; +var bounds1 = {x:0.8294, y:0.8715, width:0.1214, height:0.0715}; +var bounds2 = {x:0.002, y:0.0134, width:0.996, height:0.1362}; //defines available frames availableFrames = [ - {name:'White Frame', src:'/img/frames/custom/celid/asap/w.png', masks:masks}, - {name:'Blue Frame', src:'/img/frames/custom/celid/asap/u.png', masks:masks}, - {name:'Black Frame', src:'/img/frames/custom/celid/asap/b.png', masks:masks}, - {name:'Red Frame', src:'/img/frames/custom/celid/asap/r.png', masks:masks}, - {name:'Green Frame', src:'/img/frames/custom/celid/asap/g.png', masks:masks}, - {name:'Multicolored Frame', src:'/img/frames/custom/celid/asap/m.png', masks:masks}, - {name:'Artifact Frame', src:'/img/frames/custom/celid/asap/a.png', masks:masks} + {name:'White Frame', src:'/img/frames/custom/celid/asap/w.png'}, + {name:'Blue Frame', src:'/img/frames/custom/celid/asap/u.png'}, + {name:'Black Frame', src:'/img/frames/custom/celid/asap/b.png'}, + {name:'Red Frame', src:'/img/frames/custom/celid/asap/r.png'}, + {name:'Green Frame', src:'/img/frames/custom/celid/asap/g.png'}, + {name:'Multicolored Frame', src:'/img/frames/custom/celid/asap/m.png'}, + {name:'Artifact Frame', src:'/img/frames/custom/celid/asap/a.png'}, + {name:'White Power/Toughness', src:'/img/frames/custom/celid/asap/pt/w.png', bounds:bounds1}, + {name:'Blue Power/Toughness', src:'/img/frames/custom/celid/asap/pt/u.png', bounds:bounds1}, + {name:'Black Power/Toughness', src:'/img/frames/custom/celid/asap/pt/b.png', bounds:bounds1}, + {name:'Red Power/Toughness', src:'/img/frames/custom/celid/asap/pt/r.png', bounds:bounds1}, + {name:'Green Power/Toughness', src:'/img/frames/custom/celid/asap/pt/g.png', bounds:bounds1}, + {name:'Multicolored Power/Toughness', src:'/img/frames/custom/celid/asap/pt/m.png', bounds:bounds1}, + {name:'Artifact Power/Toughness', src:'/img/frames/custom/celid/asap/pt/a.png', bounds:bounds1}, + {name:'White Legend Crown', src:'/img/frames/custom/celid/asap/crown/w.png', bounds:bounds2}, + {name:'Blue Legend Crown', src:'/img/frames/custom/celid/asap/crown/u.png', bounds:bounds2}, + {name:'Black Legend Crown', src:'/img/frames/custom/celid/asap/crown/b.png', bounds:bounds2}, + {name:'Red Legend Crown', src:'/img/frames/custom/celid/asap/crown/r.png', bounds:bounds2}, + {name:'Green Legend Crown', src:'/img/frames/custom/celid/asap/crown/g.png', bounds:bounds2}, + {name:'Multicolored Legend Crown', src:'/img/frames/custom/celid/asap/crown/m.png', bounds:bounds2}, + {name:'Artifact Legend Crown', src:'/img/frames/custom/celid/asap/crown/a.png', bounds:bounds2}, ]; //disables/enables the "Load Frame Version" button document.querySelector('#loadFrameVersion').disabled = false; @@ -23,7 +37,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { card.artBounds = {x:0, y:0, width:1, height:0.8929}; autoFitArt(); //set symbol bounds - card.setSymbolBounds = {x:0.9213, y:0.9196, width:0.12, height:0.0362, vertical:'center', horizontal: 'right'}; + card.setSymbolBounds = {x:0.5, y:0.9524, width:0.12, height:0.0410, vertical:'center', horizontal: 'center'}; resetSetSymbol(); //watermark bounds card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; @@ -34,7 +48,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { title: {name:'Title', text:'', x:0.06, y:0.0743, width:0.88, height:0.04, oneLine:true, font:'belerenb', size:0.04, color:'white', align:'center'}, type: {name:'Type', text:'', x:0.07, y:0.9058, width:0.86, height:0.0286, oneLine:true, font:'belerenb', size:0.0286, color:'white', align:'center'}, rules: {name:'Rules Text', text:'', x:0.074, y:0.672, width:0.852, height:0.2191, size:0.0362, color:'white', align:'center'}, - // 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', color:'white'} + pt: {name:'Power/Toughness', text:'', x:0.8367, y:0.8943, width:0.11, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'} }); //bottom info await loadBottomInfo({