diff --git a/img/frames/mh2/a.png b/img/frames/mh2/a.png new file mode 100644 index 00000000..af9383ab Binary files /dev/null and b/img/frames/mh2/a.png differ diff --git a/img/frames/mh2/aThumb.png b/img/frames/mh2/aThumb.png new file mode 100644 index 00000000..bad4211a Binary files /dev/null and b/img/frames/mh2/aThumb.png differ diff --git a/img/frames/mh2/apt.png b/img/frames/mh2/apt.png new file mode 100644 index 00000000..b85b8a6f Binary files /dev/null and b/img/frames/mh2/apt.png differ diff --git a/img/frames/mh2/aptThumb.png b/img/frames/mh2/aptThumb.png new file mode 100644 index 00000000..216b784d Binary files /dev/null and b/img/frames/mh2/aptThumb.png differ diff --git a/img/frames/mh2/crowns/a.png b/img/frames/mh2/crowns/a.png new file mode 100644 index 00000000..34e5a94f Binary files /dev/null and b/img/frames/mh2/crowns/a.png differ diff --git a/img/frames/mh2/crowns/aThumb.png b/img/frames/mh2/crowns/aThumb.png new file mode 100644 index 00000000..063d1977 Binary files /dev/null and b/img/frames/mh2/crowns/aThumb.png differ diff --git a/img/frames/mh2/crowns/b.png b/img/frames/mh2/crowns/b.png new file mode 100644 index 00000000..062aca7b Binary files /dev/null and b/img/frames/mh2/crowns/b.png differ diff --git a/img/frames/mh2/crowns/bThumb.png b/img/frames/mh2/crowns/bThumb.png new file mode 100644 index 00000000..54d058d1 Binary files /dev/null and b/img/frames/mh2/crowns/bThumb.png differ diff --git a/img/frames/mh2/crowns/g.png b/img/frames/mh2/crowns/g.png new file mode 100644 index 00000000..e27830dd Binary files /dev/null and b/img/frames/mh2/crowns/g.png differ diff --git a/img/frames/mh2/crowns/gThumb.png b/img/frames/mh2/crowns/gThumb.png new file mode 100644 index 00000000..28cdb49f Binary files /dev/null and b/img/frames/mh2/crowns/gThumb.png differ diff --git a/img/frames/mh2/crowns/m.png b/img/frames/mh2/crowns/m.png new file mode 100644 index 00000000..36bf00ce Binary files /dev/null and b/img/frames/mh2/crowns/m.png differ diff --git a/img/frames/mh2/crowns/mThumb.png b/img/frames/mh2/crowns/mThumb.png new file mode 100644 index 00000000..3c6f9294 Binary files /dev/null and b/img/frames/mh2/crowns/mThumb.png differ diff --git a/img/frames/mh2/crowns/r.png b/img/frames/mh2/crowns/r.png new file mode 100644 index 00000000..46bfb007 Binary files /dev/null and b/img/frames/mh2/crowns/r.png differ diff --git a/img/frames/mh2/crowns/rThumb.png b/img/frames/mh2/crowns/rThumb.png new file mode 100644 index 00000000..7d8ae614 Binary files /dev/null and b/img/frames/mh2/crowns/rThumb.png differ diff --git a/img/frames/mh2/crowns/rightHalf.png b/img/frames/mh2/crowns/rightHalf.png new file mode 100644 index 00000000..4bf636e1 Binary files /dev/null and b/img/frames/mh2/crowns/rightHalf.png differ diff --git a/img/frames/mh2/crowns/rightHalfThumb.png b/img/frames/mh2/crowns/rightHalfThumb.png new file mode 100644 index 00000000..8afd848a Binary files /dev/null and b/img/frames/mh2/crowns/rightHalfThumb.png differ diff --git a/img/frames/mh2/crowns/u.png b/img/frames/mh2/crowns/u.png new file mode 100644 index 00000000..2a6926cf Binary files /dev/null and b/img/frames/mh2/crowns/u.png differ diff --git a/img/frames/mh2/crowns/uThumb.png b/img/frames/mh2/crowns/uThumb.png new file mode 100644 index 00000000..f08945d5 Binary files /dev/null and b/img/frames/mh2/crowns/uThumb.png differ diff --git a/img/frames/mh2/crowns/w.png b/img/frames/mh2/crowns/w.png new file mode 100644 index 00000000..ca0c605e Binary files /dev/null and b/img/frames/mh2/crowns/w.png differ diff --git a/img/frames/mh2/crowns/wThumb.png b/img/frames/mh2/crowns/wThumb.png new file mode 100644 index 00000000..8fceb50c Binary files /dev/null and b/img/frames/mh2/crowns/wThumb.png differ diff --git a/img/frames/mh2/frame.png b/img/frames/mh2/frame.png new file mode 100644 index 00000000..4d2e421d Binary files /dev/null and b/img/frames/mh2/frame.png differ diff --git a/img/frames/mh2/frameThumb.png b/img/frames/mh2/frameThumb.png new file mode 100644 index 00000000..27245fa4 Binary files /dev/null and b/img/frames/mh2/frameThumb.png differ diff --git a/img/frames/mh2/mOverlay.png b/img/frames/mh2/mOverlay.png deleted file mode 100644 index a1f31dfd..00000000 Binary files a/img/frames/mh2/mOverlay.png and /dev/null differ diff --git a/img/frames/mh2/mOverlayThumb.png b/img/frames/mh2/mOverlayThumb.png deleted file mode 100644 index c597fa2e..00000000 Binary files a/img/frames/mh2/mOverlayThumb.png and /dev/null differ diff --git a/img/frames/mh2/mpt.png b/img/frames/mh2/mpt.png index e03170e5..281f08e3 100644 Binary files a/img/frames/mh2/mpt.png and b/img/frames/mh2/mpt.png differ diff --git a/img/frames/mh2/mptThumb.png b/img/frames/mh2/mptThumb.png index ac1233a3..a002f186 100644 Binary files a/img/frames/mh2/mptThumb.png and b/img/frames/mh2/mptThumb.png differ diff --git a/img/frames/mh2/pinline.png b/img/frames/mh2/pinline.png new file mode 100644 index 00000000..240c439c Binary files /dev/null and b/img/frames/mh2/pinline.png differ diff --git a/img/frames/mh2/pinlineThumb.png b/img/frames/mh2/pinlineThumb.png new file mode 100644 index 00000000..0d45db6d Binary files /dev/null and b/img/frames/mh2/pinlineThumb.png differ diff --git a/img/frames/mh2/rightHalf.png b/img/frames/mh2/rightHalf.png new file mode 100644 index 00000000..fa941380 Binary files /dev/null and b/img/frames/mh2/rightHalf.png differ diff --git a/img/frames/mh2/rightHalfThumb.png b/img/frames/mh2/rightHalfThumb.png new file mode 100644 index 00000000..2a2c2859 Binary files /dev/null and b/img/frames/mh2/rightHalfThumb.png differ diff --git a/img/frames/mh2/title.png b/img/frames/mh2/title.png new file mode 100644 index 00000000..cc507cf4 Binary files /dev/null and b/img/frames/mh2/title.png differ diff --git a/img/frames/mh2/titleThumb.png b/img/frames/mh2/titleThumb.png new file mode 100644 index 00000000..81987407 Binary files /dev/null and b/img/frames/mh2/titleThumb.png differ diff --git a/img/frames/mh2/type.png b/img/frames/mh2/type.png new file mode 100644 index 00000000..71f0418a Binary files /dev/null and b/img/frames/mh2/type.png differ diff --git a/img/frames/mh2/typeThumb.png b/img/frames/mh2/typeThumb.png new file mode 100644 index 00000000..46144ce5 Binary files /dev/null and b/img/frames/mh2/typeThumb.png differ diff --git a/js/frames/packMH2.js b/js/frames/packMH2.js index 38238a51..a01e2216 100644 --- a/js/frames/packMH2.js +++ b/js/frames/packMH2.js @@ -1,25 +1,34 @@ //Create objects for common properties across available frames -// var masks = [{src:'/img/frames/m15/regular/m15MaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/regular/m15MaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskFrame.png', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}]; +var masks = [{src:'/img/frames/mh2/pinline.png', name:'Pinline/Rules'}, {src:'/img/frames/mh2/rightHalf.png', name:'Pinline/Rules (Right Half)'}, {src:'/img/frames/mh2/title.png', name:'Title'}, {src:'/img/frames/mh2/type.png', name:'Type'}, {src:'/img/frames/mh2/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}]; +var masks2 = [{src:'/img/frames/mh2/crowns/rightHalf.png', name:'Right Half for Legend Crowns'}]; var bounds = {x:0.748, y:0.8796, width:0.204, height:0.072}; +var bounds2 = {x:0, y:0, width:1, height:0.1862}; //defines available frames availableFrames = [ - {name:'White Frame', src:'/img/frames/mh2/w.png'}, - {name:'Blue Frame', src:'/img/frames/mh2/u.png'}, - {name:'Black Frame', src:'/img/frames/mh2/b.png'}, - {name:'Red Frame', src:'/img/frames/mh2/r.png'}, - {name:'Green Frame', src:'/img/frames/mh2/g.png'}, - {name:'Multicolored Frame', src:'/img/frames/mh2/m.png'}, - {name:'Multicolored Overlay', src:'/img/frames/mh2/mOverlay.png'}, - // {name:'Artifact Frame', src:'/img/frames/mh2/a.png'}, - // {name:'Vehicle Frame', src:'/img/frames/mh2/v.png'}, + {name:'White Frame', src:'/img/frames/mh2/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/mh2/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/mh2/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/mh2/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/mh2/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/mh2/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/mh2/a.png', masks:masks}, + // {name:'Vehicle Frame', src:'/img/frames/mh2/v.png', masks:masks}, {name:'White Power/Toughness', src:'/img/frames/mh2/wpt.png', bounds:bounds}, {name:'Blue Power/Toughness', src:'/img/frames/mh2/upt.png', bounds:bounds}, {name:'Black Power/Toughness', src:'/img/frames/mh2/bpt.png', bounds:bounds}, {name:'Red Power/Toughness', src:'/img/frames/mh2/rpt.png', bounds:bounds}, {name:'Green Power/Toughness', src:'/img/frames/mh2/gpt.png', bounds:bounds}, {name:'Multicolored Power/Toughness', src:'/img/frames/mh2/mpt.png', bounds:bounds}, - // {name:'Artifact Power/Toughness', src:'/img/frames/mh2/apt.png', bounds:bounds}, - // {name:'Vehicle Power/Toughness', src:'/img/frames/mh2/vpt.png', bounds:bounds} + {name:'Artifact Power/Toughness', src:'/img/frames/mh2/apt.png', bounds:bounds}, + // {name:'Vehicle Power/Toughness', src:'/img/frames/mh2/vpt.png', bounds:bounds}, + {name:'White Legend Crown', src:'/img/frames/mh2/crowns/w.png', bounds:bounds2, masks:masks2}, + {name:'Blue Legend Crown', src:'/img/frames/mh2/crowns/u.png', bounds:bounds2, masks:masks2}, + {name:'Black Legend Crown', src:'/img/frames/mh2/crowns/b.png', bounds:bounds2, masks:masks2}, + {name:'Red Legend Crown', src:'/img/frames/mh2/crowns/r.png', bounds:bounds2, masks:masks2}, + {name:'Green Legend Crown', src:'/img/frames/mh2/crowns/g.png', bounds:bounds2, masks:masks2}, + {name:'Multicolored Legend Crown', src:'/img/frames/mh2/crowns/m.png', bounds:bounds2, masks:masks2}, + {name:'Artifact Legend Crown', src:'/img/frames/mh2/crowns/a.png', bounds:bounds2, masks:masks2}, + // {name:'Vehicle Legend Crown', src:'/img/frames/mh2/crowns/v.png', bounds:bounds2, masks:masks2} ]; //disables/enables the "Load Frame Version" button document.querySelector('#loadFrameVersion').disabled = false;