diff --git a/img/frames/vault/a.png b/img/frames/vault/a.png new file mode 100644 index 000000000..9e9d6e45d Binary files /dev/null and b/img/frames/vault/a.png differ diff --git a/img/frames/vault/aThumb.png b/img/frames/vault/aThumb.png new file mode 100644 index 000000000..7da36839c Binary files /dev/null and b/img/frames/vault/aThumb.png differ diff --git a/img/frames/vault/b.png b/img/frames/vault/b.png new file mode 100644 index 000000000..98c746c80 Binary files /dev/null and b/img/frames/vault/b.png differ diff --git a/img/frames/vault/bThumb.png b/img/frames/vault/bThumb.png new file mode 100644 index 000000000..101059845 Binary files /dev/null and b/img/frames/vault/bThumb.png differ diff --git a/img/frames/vault/crown/a.png b/img/frames/vault/crown/a.png new file mode 100644 index 000000000..46d461a4c Binary files /dev/null and b/img/frames/vault/crown/a.png differ diff --git a/img/frames/vault/crown/aThumb.png b/img/frames/vault/crown/aThumb.png new file mode 100644 index 000000000..600a0c48f Binary files /dev/null and b/img/frames/vault/crown/aThumb.png differ diff --git a/img/frames/vault/crown/b.png b/img/frames/vault/crown/b.png new file mode 100644 index 000000000..28e41b813 Binary files /dev/null and b/img/frames/vault/crown/b.png differ diff --git a/img/frames/vault/crown/bThumb.png b/img/frames/vault/crown/bThumb.png new file mode 100644 index 000000000..a8794ded1 Binary files /dev/null and b/img/frames/vault/crown/bThumb.png differ diff --git a/img/frames/vault/crown/g.png b/img/frames/vault/crown/g.png new file mode 100644 index 000000000..38c726bc7 Binary files /dev/null and b/img/frames/vault/crown/g.png differ diff --git a/img/frames/vault/crown/gThumb.png b/img/frames/vault/crown/gThumb.png new file mode 100644 index 000000000..8d5390bd6 Binary files /dev/null and b/img/frames/vault/crown/gThumb.png differ diff --git a/img/frames/vault/crown/l.png b/img/frames/vault/crown/l.png new file mode 100644 index 000000000..0979eff69 Binary files /dev/null and b/img/frames/vault/crown/l.png differ diff --git a/img/frames/vault/crown/lThumb.png b/img/frames/vault/crown/lThumb.png new file mode 100644 index 000000000..fac778126 Binary files /dev/null and b/img/frames/vault/crown/lThumb.png differ diff --git a/img/frames/vault/crown/m.png b/img/frames/vault/crown/m.png new file mode 100644 index 000000000..2830f8c94 Binary files /dev/null and b/img/frames/vault/crown/m.png differ diff --git a/img/frames/vault/crown/mThumb.png b/img/frames/vault/crown/mThumb.png new file mode 100644 index 000000000..b72ff474f Binary files /dev/null and b/img/frames/vault/crown/mThumb.png differ diff --git a/img/frames/vault/crown/r.png b/img/frames/vault/crown/r.png new file mode 100644 index 000000000..6880ff898 Binary files /dev/null and b/img/frames/vault/crown/r.png differ diff --git a/img/frames/vault/crown/rThumb.png b/img/frames/vault/crown/rThumb.png new file mode 100644 index 000000000..ef79bc44f Binary files /dev/null and b/img/frames/vault/crown/rThumb.png differ diff --git a/img/frames/vault/crown/u.png b/img/frames/vault/crown/u.png new file mode 100644 index 000000000..b58ca5e59 Binary files /dev/null and b/img/frames/vault/crown/u.png differ diff --git a/img/frames/vault/crown/uThumb.png b/img/frames/vault/crown/uThumb.png new file mode 100644 index 000000000..65723d851 Binary files /dev/null and b/img/frames/vault/crown/uThumb.png differ diff --git a/img/frames/vault/crown/w.png b/img/frames/vault/crown/w.png new file mode 100644 index 000000000..85b136a15 Binary files /dev/null and b/img/frames/vault/crown/w.png differ diff --git a/img/frames/vault/crown/wThumb.png b/img/frames/vault/crown/wThumb.png new file mode 100644 index 000000000..35b3b115c Binary files /dev/null and b/img/frames/vault/crown/wThumb.png differ diff --git a/img/frames/vault/g.png b/img/frames/vault/g.png new file mode 100644 index 000000000..b598e34a6 Binary files /dev/null and b/img/frames/vault/g.png differ diff --git a/img/frames/vault/gThumb.png b/img/frames/vault/gThumb.png new file mode 100644 index 000000000..648826290 Binary files /dev/null and b/img/frames/vault/gThumb.png differ diff --git a/img/frames/vault/l.png b/img/frames/vault/l.png new file mode 100644 index 000000000..45ab45ce2 Binary files /dev/null and b/img/frames/vault/l.png differ diff --git a/img/frames/vault/lThumb.png b/img/frames/vault/lThumb.png new file mode 100644 index 000000000..604262d86 Binary files /dev/null and b/img/frames/vault/lThumb.png differ diff --git a/img/frames/vault/m.png b/img/frames/vault/m.png new file mode 100644 index 000000000..520ff5da2 Binary files /dev/null and b/img/frames/vault/m.png differ diff --git a/img/frames/vault/mThumb.png b/img/frames/vault/mThumb.png new file mode 100644 index 000000000..ca67ce96f Binary files /dev/null and b/img/frames/vault/mThumb.png differ diff --git a/img/frames/vault/margin/a.png b/img/frames/vault/margin/a.png new file mode 100644 index 000000000..07e37f323 Binary files /dev/null and b/img/frames/vault/margin/a.png differ diff --git a/img/frames/vault/margin/aThumb.png b/img/frames/vault/margin/aThumb.png new file mode 100644 index 000000000..8b03d79e4 Binary files /dev/null and b/img/frames/vault/margin/aThumb.png differ diff --git a/img/frames/vault/margin/b.png b/img/frames/vault/margin/b.png new file mode 100644 index 000000000..5dc0b44d4 Binary files /dev/null and b/img/frames/vault/margin/b.png differ diff --git a/img/frames/vault/margin/bThumb.png b/img/frames/vault/margin/bThumb.png new file mode 100644 index 000000000..591fe6e52 Binary files /dev/null and b/img/frames/vault/margin/bThumb.png differ diff --git a/img/frames/vault/margin/crown/a.png b/img/frames/vault/margin/crown/a.png new file mode 100644 index 000000000..ee3f5252a Binary files /dev/null and b/img/frames/vault/margin/crown/a.png differ diff --git a/img/frames/vault/margin/crown/aThumb.png b/img/frames/vault/margin/crown/aThumb.png new file mode 100644 index 000000000..aafdfb28e Binary files /dev/null and b/img/frames/vault/margin/crown/aThumb.png differ diff --git a/img/frames/vault/margin/crown/b.png b/img/frames/vault/margin/crown/b.png new file mode 100644 index 000000000..93426ab01 Binary files /dev/null and b/img/frames/vault/margin/crown/b.png differ diff --git a/img/frames/vault/margin/crown/bThumb.png b/img/frames/vault/margin/crown/bThumb.png new file mode 100644 index 000000000..2b9d3cb0f Binary files /dev/null and b/img/frames/vault/margin/crown/bThumb.png differ diff --git a/img/frames/vault/margin/crown/g.png b/img/frames/vault/margin/crown/g.png new file mode 100644 index 000000000..d5226efac Binary files /dev/null and b/img/frames/vault/margin/crown/g.png differ diff --git a/img/frames/vault/margin/crown/gThumb.png b/img/frames/vault/margin/crown/gThumb.png new file mode 100644 index 000000000..074112df6 Binary files /dev/null and b/img/frames/vault/margin/crown/gThumb.png differ diff --git a/img/frames/vault/margin/crown/l.png b/img/frames/vault/margin/crown/l.png new file mode 100644 index 000000000..e6f956042 Binary files /dev/null and b/img/frames/vault/margin/crown/l.png differ diff --git a/img/frames/vault/margin/crown/lThumb.png b/img/frames/vault/margin/crown/lThumb.png new file mode 100644 index 000000000..12384e60a Binary files /dev/null and b/img/frames/vault/margin/crown/lThumb.png differ diff --git a/img/frames/vault/margin/crown/m.png b/img/frames/vault/margin/crown/m.png new file mode 100644 index 000000000..3faa81a3e Binary files /dev/null and b/img/frames/vault/margin/crown/m.png differ diff --git a/img/frames/vault/margin/crown/mThumb.png b/img/frames/vault/margin/crown/mThumb.png new file mode 100644 index 000000000..b2fcf0815 Binary files /dev/null and b/img/frames/vault/margin/crown/mThumb.png differ diff --git a/img/frames/vault/margin/crown/r.png b/img/frames/vault/margin/crown/r.png new file mode 100644 index 000000000..1eb1a9cc1 Binary files /dev/null and b/img/frames/vault/margin/crown/r.png differ diff --git a/img/frames/vault/margin/crown/rThumb.png b/img/frames/vault/margin/crown/rThumb.png new file mode 100644 index 000000000..bce3d803c Binary files /dev/null and b/img/frames/vault/margin/crown/rThumb.png differ diff --git a/img/frames/vault/margin/crown/u.png b/img/frames/vault/margin/crown/u.png new file mode 100644 index 000000000..60ac01a3e Binary files /dev/null and b/img/frames/vault/margin/crown/u.png differ diff --git a/img/frames/vault/margin/crown/uThumb.png b/img/frames/vault/margin/crown/uThumb.png new file mode 100644 index 000000000..9e152f435 Binary files /dev/null and b/img/frames/vault/margin/crown/uThumb.png differ diff --git a/img/frames/vault/margin/crown/w.png b/img/frames/vault/margin/crown/w.png new file mode 100644 index 000000000..58e883f5a Binary files /dev/null and b/img/frames/vault/margin/crown/w.png differ diff --git a/img/frames/vault/margin/crown/wThumb.png b/img/frames/vault/margin/crown/wThumb.png new file mode 100644 index 000000000..195a24174 Binary files /dev/null and b/img/frames/vault/margin/crown/wThumb.png differ diff --git a/img/frames/vault/margin/g.png b/img/frames/vault/margin/g.png new file mode 100644 index 000000000..5fa496748 Binary files /dev/null and b/img/frames/vault/margin/g.png differ diff --git a/img/frames/vault/margin/gThumb.png b/img/frames/vault/margin/gThumb.png new file mode 100644 index 000000000..e9d3eba9a Binary files /dev/null and b/img/frames/vault/margin/gThumb.png differ diff --git a/img/frames/vault/margin/l.png b/img/frames/vault/margin/l.png new file mode 100644 index 000000000..bdcc4d2c1 Binary files /dev/null and b/img/frames/vault/margin/l.png differ diff --git a/img/frames/vault/margin/lThumb.png b/img/frames/vault/margin/lThumb.png new file mode 100644 index 000000000..00a3a96f9 Binary files /dev/null and b/img/frames/vault/margin/lThumb.png differ diff --git a/img/frames/vault/margin/m.png b/img/frames/vault/margin/m.png new file mode 100644 index 000000000..e3d47dec8 Binary files /dev/null and b/img/frames/vault/margin/m.png differ diff --git a/img/frames/vault/margin/mThumb.png b/img/frames/vault/margin/mThumb.png new file mode 100644 index 000000000..9093a9e5f Binary files /dev/null and b/img/frames/vault/margin/mThumb.png differ diff --git a/img/frames/vault/margin/r.png b/img/frames/vault/margin/r.png new file mode 100644 index 000000000..944dbe812 Binary files /dev/null and b/img/frames/vault/margin/r.png differ diff --git a/img/frames/vault/margin/rThumb.png b/img/frames/vault/margin/rThumb.png new file mode 100644 index 000000000..5ee693909 Binary files /dev/null and b/img/frames/vault/margin/rThumb.png differ diff --git a/img/frames/vault/margin/u.png b/img/frames/vault/margin/u.png new file mode 100644 index 000000000..1873408a4 Binary files /dev/null and b/img/frames/vault/margin/u.png differ diff --git a/img/frames/vault/margin/uThumb.png b/img/frames/vault/margin/uThumb.png new file mode 100644 index 000000000..99a0d29fd Binary files /dev/null and b/img/frames/vault/margin/uThumb.png differ diff --git a/img/frames/vault/margin/w.png b/img/frames/vault/margin/w.png new file mode 100644 index 000000000..d4a2575aa Binary files /dev/null and b/img/frames/vault/margin/w.png differ diff --git a/img/frames/vault/margin/wThumb.png b/img/frames/vault/margin/wThumb.png new file mode 100644 index 000000000..1bebd9d6b Binary files /dev/null and b/img/frames/vault/margin/wThumb.png differ diff --git a/img/frames/vault/pt/a.png b/img/frames/vault/pt/a.png new file mode 100644 index 000000000..56cdde578 Binary files /dev/null and b/img/frames/vault/pt/a.png differ diff --git a/img/frames/vault/pt/aThumb.png b/img/frames/vault/pt/aThumb.png new file mode 100644 index 000000000..903e2e9b1 Binary files /dev/null and b/img/frames/vault/pt/aThumb.png differ diff --git a/img/frames/vault/pt/b.png b/img/frames/vault/pt/b.png new file mode 100644 index 000000000..fb75cedea Binary files /dev/null and b/img/frames/vault/pt/b.png differ diff --git a/img/frames/vault/pt/bThumb.png b/img/frames/vault/pt/bThumb.png new file mode 100644 index 000000000..39ad80637 Binary files /dev/null and b/img/frames/vault/pt/bThumb.png differ diff --git a/img/frames/vault/pt/g.png b/img/frames/vault/pt/g.png new file mode 100644 index 000000000..f3b20d485 Binary files /dev/null and b/img/frames/vault/pt/g.png differ diff --git a/img/frames/vault/pt/gThumb.png b/img/frames/vault/pt/gThumb.png new file mode 100644 index 000000000..e132d43b7 Binary files /dev/null and b/img/frames/vault/pt/gThumb.png differ diff --git a/img/frames/vault/pt/m.png b/img/frames/vault/pt/m.png new file mode 100644 index 000000000..b509ae016 Binary files /dev/null and b/img/frames/vault/pt/m.png differ diff --git a/img/frames/vault/pt/mThumb.png b/img/frames/vault/pt/mThumb.png new file mode 100644 index 000000000..f48fafda8 Binary files /dev/null and b/img/frames/vault/pt/mThumb.png differ diff --git a/img/frames/vault/pt/r.png b/img/frames/vault/pt/r.png new file mode 100644 index 000000000..4d69316d9 Binary files /dev/null and b/img/frames/vault/pt/r.png differ diff --git a/img/frames/vault/pt/rThumb.png b/img/frames/vault/pt/rThumb.png new file mode 100644 index 000000000..50cc6b234 Binary files /dev/null and b/img/frames/vault/pt/rThumb.png differ diff --git a/img/frames/vault/pt/u.png b/img/frames/vault/pt/u.png new file mode 100644 index 000000000..72025ffd3 Binary files /dev/null and b/img/frames/vault/pt/u.png differ diff --git a/img/frames/vault/pt/uThumb.png b/img/frames/vault/pt/uThumb.png new file mode 100644 index 000000000..caec3996a Binary files /dev/null and b/img/frames/vault/pt/uThumb.png differ diff --git a/img/frames/vault/pt/w.png b/img/frames/vault/pt/w.png new file mode 100644 index 000000000..9e9f69f0b Binary files /dev/null and b/img/frames/vault/pt/w.png differ diff --git a/img/frames/vault/pt/wThumb.png b/img/frames/vault/pt/wThumb.png new file mode 100644 index 000000000..1977bda09 Binary files /dev/null and b/img/frames/vault/pt/wThumb.png differ diff --git a/img/frames/vault/r.png b/img/frames/vault/r.png new file mode 100644 index 000000000..d2bc4cc7f Binary files /dev/null and b/img/frames/vault/r.png differ diff --git a/img/frames/vault/rThumb.png b/img/frames/vault/rThumb.png new file mode 100644 index 000000000..1309858dc Binary files /dev/null and b/img/frames/vault/rThumb.png differ diff --git a/img/frames/vault/stamp/a.png b/img/frames/vault/stamp/a.png new file mode 100644 index 000000000..576a7eac0 Binary files /dev/null and b/img/frames/vault/stamp/a.png differ diff --git a/img/frames/vault/stamp/aThumb.png b/img/frames/vault/stamp/aThumb.png new file mode 100644 index 000000000..ff84fc98a Binary files /dev/null and b/img/frames/vault/stamp/aThumb.png differ diff --git a/img/frames/vault/stamp/b.png b/img/frames/vault/stamp/b.png new file mode 100644 index 000000000..484a84da7 Binary files /dev/null and b/img/frames/vault/stamp/b.png differ diff --git a/img/frames/vault/stamp/bThumb.png b/img/frames/vault/stamp/bThumb.png new file mode 100644 index 000000000..19087b8d7 Binary files /dev/null and b/img/frames/vault/stamp/bThumb.png differ diff --git a/img/frames/vault/stamp/g.png b/img/frames/vault/stamp/g.png new file mode 100644 index 000000000..e3e920d1c Binary files /dev/null and b/img/frames/vault/stamp/g.png differ diff --git a/img/frames/vault/stamp/gThumb.png b/img/frames/vault/stamp/gThumb.png new file mode 100644 index 000000000..e44bcc34b Binary files /dev/null and b/img/frames/vault/stamp/gThumb.png differ diff --git a/img/frames/vault/stamp/l.png b/img/frames/vault/stamp/l.png new file mode 100644 index 000000000..dbf987514 Binary files /dev/null and b/img/frames/vault/stamp/l.png differ diff --git a/img/frames/vault/stamp/lThumb.png b/img/frames/vault/stamp/lThumb.png new file mode 100644 index 000000000..b9fa59747 Binary files /dev/null and b/img/frames/vault/stamp/lThumb.png differ diff --git a/img/frames/vault/stamp/m.png b/img/frames/vault/stamp/m.png new file mode 100644 index 000000000..1d59f2da0 Binary files /dev/null and b/img/frames/vault/stamp/m.png differ diff --git a/img/frames/vault/stamp/mThumb.png b/img/frames/vault/stamp/mThumb.png new file mode 100644 index 000000000..c96a37317 Binary files /dev/null and b/img/frames/vault/stamp/mThumb.png differ diff --git a/img/frames/vault/stamp/r.png b/img/frames/vault/stamp/r.png new file mode 100644 index 000000000..58225f3ba Binary files /dev/null and b/img/frames/vault/stamp/r.png differ diff --git a/img/frames/vault/stamp/rThumb.png b/img/frames/vault/stamp/rThumb.png new file mode 100644 index 000000000..042b83b0d Binary files /dev/null and b/img/frames/vault/stamp/rThumb.png differ diff --git a/img/frames/vault/stamp/u.png b/img/frames/vault/stamp/u.png new file mode 100644 index 000000000..370b2a9d3 Binary files /dev/null and b/img/frames/vault/stamp/u.png differ diff --git a/img/frames/vault/stamp/uThumb.png b/img/frames/vault/stamp/uThumb.png new file mode 100644 index 000000000..835d32e6b Binary files /dev/null and b/img/frames/vault/stamp/uThumb.png differ diff --git a/img/frames/vault/stamp/w.png b/img/frames/vault/stamp/w.png new file mode 100644 index 000000000..92c88b546 Binary files /dev/null and b/img/frames/vault/stamp/w.png differ diff --git a/img/frames/vault/stamp/wThumb.png b/img/frames/vault/stamp/wThumb.png new file mode 100644 index 000000000..41350c815 Binary files /dev/null and b/img/frames/vault/stamp/wThumb.png differ diff --git a/img/frames/vault/u.png b/img/frames/vault/u.png new file mode 100644 index 000000000..06aa989dd Binary files /dev/null and b/img/frames/vault/u.png differ diff --git a/img/frames/vault/uThumb.png b/img/frames/vault/uThumb.png new file mode 100644 index 000000000..4a2e4b30d Binary files /dev/null and b/img/frames/vault/uThumb.png differ diff --git a/img/frames/vault/w.png b/img/frames/vault/w.png new file mode 100644 index 000000000..c99410109 Binary files /dev/null and b/img/frames/vault/w.png differ diff --git a/img/frames/vault/wThumb.png b/img/frames/vault/wThumb.png new file mode 100644 index 000000000..12c1baf12 Binary files /dev/null and b/img/frames/vault/wThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index 09c7dd8cb..2de96ddc1 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -38,6 +38,7 @@ const frameNames = new Map ([ ['Colorshifted (Planar Chaos)', 'Colorshifted'], ['Brawl Legend Crowns', 'Brawl'], //showcase + ['Vault (OTP)', 'Vault'], ['Wanted Poster (OTJ)', 'Wanted'], ['Dossier (MKM)', 'Dossier'], ['Scrolls of Middle-earth (LTR)', 'Scroll'], diff --git a/js/frames/groupMargin.js b/js/frames/groupMargin.js index b71c7e1e1..37527c913 100644 --- a/js/frames/groupMargin.js +++ b/js/frames/groupMargin.js @@ -1,5 +1,6 @@ loadFramePacks([ {name:'Generic Margins', value:'Margin-1'}, + {name:'Vault Margin', value:'MarginVault'}, {name:'Wanted Poster Margin', value:'MarginWanted'}, {name:'Enchanting Tales Margins', value:'MarginEnchantingTales'}, {name:'LTR Ring Margins', value:'MarginRing'}, diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index c9fbfee6e..da3593ad9 100644 --- a/js/frames/groupShowcase-5.js +++ b/js/frames/groupShowcase-5.js @@ -1,5 +1,6 @@ loadFramePacks([ {name:'Set Showcase Frames (Chronological)', value:'disabled'}, + {name:'Vault (OTP)', value:'Vault'}, {name:'Wanted Poster (OTJ)', value:'Wanted'}, {name:'Pip-Boy (PIP)', value:'Pipboy'}, {name:'Dossier (MKM)', value:'Dossier'}, diff --git a/js/frames/packMarginVault.js b/js/frames/packMarginVault.js new file mode 100644 index 000000000..f275bbc49 --- /dev/null +++ b/js/frames/packMarginVault.js @@ -0,0 +1,29 @@ +//Create objects for common properties across available frames +var bounds = {x:-89/2010, y:-79/2817, width:2187/2010, height:2975/2817}; +var ogBounds = {x:0, y:0, width:1, height:1}; +//defines available frames +availableFrames = [ + {name:'White Extension', src:'/img/frames/vault/margin/w.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Blue Extension', src:'/img/frames/vault/margin/u.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Black Extension', src:'/img/frames/vault/margin/b.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Red Extension', src:'/img/frames/vault/margin/r.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Green Extension', src:'/img/frames/vault/margin/g.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Multicolored Extension', src:'/img/frames/vault/margin/m.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Artifact Extension', src:'/img/frames/vault/margin/a.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Land Extension', src:'/img/frames/vault/margin/l.png', bounds:bounds, ogBounds:ogBounds}, + + {name:'White Crown Extension', src:'/img/frames/vault/margin/crown/w.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Blue Crown Extension', src:'/img/frames/vault/margin/crown/u.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Black Crown Extension', src:'/img/frames/vault/margin/crown/b.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Red Crown Extension', src:'/img/frames/vault/margin/crown/r.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Green Crown Extension', src:'/img/frames/vault/margin/crown/g.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Multicolored Crown Extension', src:'/img/frames/vault/margin/crown/m.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Artifact Crown Extension', src:'/img/frames/vault/margin/crown/a.png', bounds:bounds, ogBounds:ogBounds}, + {name:'Land Crown Extension', src:'/img/frames/vault/margin/crown/l.png', bounds:bounds, ogBounds:ogBounds} +]; +//disables/enables the "Load Frame Version" button +document.querySelector('#loadFrameVersion').disabled = false; +//defines process for loading this version, if applicable +document.querySelector('#loadFrameVersion').onclick = loadMarginVersion; +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packVault.js b/js/frames/packVault.js new file mode 100644 index 000000000..013932226 --- /dev/null +++ b/js/frames/packVault.js @@ -0,0 +1,74 @@ +//Create objects for common properties across available frames +var masks = []; +var ptBounds = {x:1560/2010, y:2494/2814, width:347/2010, height:172/2814}; +var crownBounds = {x:127/2010, y:0, width:1763/2010, height:60/2814}; +var stampBounds = {x:850/2010, y:2541/2814, width:310/2010, height:132/2814}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/vault/w.png'}, + {name:'Blue Frame', src:'/img/frames/vault/u.png'}, + {name:'Black Frame', src:'/img/frames/vault/b.png'}, + {name:'Red Frame', src:'/img/frames/vault/r.png'}, + {name:'Green Frame', src:'/img/frames/vault/g.png'}, + {name:'Multicolored Frame', src:'/img/frames/vault/m.png'}, + {name:'Artifact Frame', src:'/img/frames/vault/a.png'}, + {name:'Land Frame', src:'/img/frames/vault/l.png'}, + + {name:'White Power/Toughness', src:'/img/frames/vault/pt/w.png', bounds:ptBounds}, + {name:'Blue Power/Toughness', src:'/img/frames/vault/pt/u.png', bounds:ptBounds}, + {name:'Black Power/Toughness', src:'/img/frames/vault/pt/b.png', bounds:ptBounds}, + {name:'Red Power/Toughness', src:'/img/frames/vault/pt/r.png', bounds:ptBounds}, + {name:'Green Power/Toughness', src:'/img/frames/vault/pt/g.png', bounds:ptBounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/vault/pt/m.png', bounds:ptBounds}, + {name:'Artifact Power/Toughness', src:'/img/frames/vault/pt/a.png', bounds:ptBounds}, + + {name:'White Legendary Crown', src:'/img/frames/vault/crown/w.png', bounds:crownBounds}, + {name:'Blue Legendary Crown', src:'/img/frames/vault/crown/u.png', bounds:crownBounds}, + {name:'Black Legendary Crown', src:'/img/frames/vault/crown/b.png', bounds:crownBounds}, + {name:'Red Legendary Crown', src:'/img/frames/vault/crown/r.png', bounds:crownBounds}, + {name:'Green Legendary Crown', src:'/img/frames/vault/crown/g.png', bounds:crownBounds}, + {name:'Multicolored Legendary Crown', src:'/img/frames/vault/crown/m.png', bounds:crownBounds}, + {name:'Artifact Legendary Crown', src:'/img/frames/vault/crown/a.png', bounds:crownBounds}, + {name:'Land Legendary Crown', src:'/img/frames/vault/crown/l.png', bounds:crownBounds}, + + {name:'White Holo Stamp', src:'/img/frames/vault/stamp/w.png', bounds:stampBounds}, + {name:'Blue Holo Stamp', src:'/img/frames/vault/stamp/u.png', bounds:stampBounds}, + {name:'Black Holo Stamp', src:'/img/frames/vault/stamp/b.png', bounds:stampBounds}, + {name:'Red Holo Stamp', src:'/img/frames/vault/stamp/r.png', bounds:stampBounds}, + {name:'Green Holo Stamp', src:'/img/frames/vault/stamp/g.png', bounds:stampBounds}, + {name:'Multicolored Holo Stamp', src:'/img/frames/vault/stamp/m.png', bounds:stampBounds}, + {name:'Artifact Holo Stamp', src:'/img/frames/vault/stamp/a.png', bounds:stampBounds}, + {name:'Land Holo Stamp', src:'/img/frames/vault/stamp/l.png', bounds:stampBounds} +]; +//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 = 'vault'; + //art bounds + card.artBounds = {x:0, y:334/2814, width:1, height:1194/2814}; + 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.0854, y:0.0522, width:0.8292, 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}, + 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