diff --git a/creator/index.php b/creator/index.php index d3bb20fc..899eb7f0 100644 --- a/creator/index.php +++ b/creator/index.php @@ -94,7 +94,7 @@ include('../globalHTML/header-1.php'); - + diff --git a/img/frames/textless/magicFest/a.png b/img/frames/textless/magicFest/a.png new file mode 100644 index 00000000..15f15c76 Binary files /dev/null and b/img/frames/textless/magicFest/a.png differ diff --git a/img/frames/textless/magicFest/aThumb.png b/img/frames/textless/magicFest/aThumb.png new file mode 100644 index 00000000..d835fd00 Binary files /dev/null and b/img/frames/textless/magicFest/aThumb.png differ diff --git a/img/frames/textless/magicFest/b.png b/img/frames/textless/magicFest/b.png new file mode 100644 index 00000000..b3c1acc3 Binary files /dev/null and b/img/frames/textless/magicFest/b.png differ diff --git a/img/frames/textless/magicFest/bThumb.png b/img/frames/textless/magicFest/bThumb.png new file mode 100644 index 00000000..a057d282 Binary files /dev/null and b/img/frames/textless/magicFest/bThumb.png differ diff --git a/img/frames/textless/magicFest/frame.png b/img/frames/textless/magicFest/frame.png new file mode 100644 index 00000000..c4d6109e Binary files /dev/null and b/img/frames/textless/magicFest/frame.png differ diff --git a/img/frames/textless/magicFest/frameThumb.png b/img/frames/textless/magicFest/frameThumb.png new file mode 100644 index 00000000..23f02a7a Binary files /dev/null and b/img/frames/textless/magicFest/frameThumb.png differ diff --git a/img/frames/textless/magicFest/g.png b/img/frames/textless/magicFest/g.png new file mode 100644 index 00000000..0b26503f Binary files /dev/null and b/img/frames/textless/magicFest/g.png differ diff --git a/img/frames/textless/magicFest/gThumb.png b/img/frames/textless/magicFest/gThumb.png new file mode 100644 index 00000000..a94a9f64 Binary files /dev/null and b/img/frames/textless/magicFest/gThumb.png differ diff --git a/img/frames/textless/magicFest/l.png b/img/frames/textless/magicFest/l.png new file mode 100644 index 00000000..3727a960 Binary files /dev/null and b/img/frames/textless/magicFest/l.png differ diff --git a/img/frames/textless/magicFest/lThumb.png b/img/frames/textless/magicFest/lThumb.png new file mode 100644 index 00000000..d7d566e9 Binary files /dev/null and b/img/frames/textless/magicFest/lThumb.png differ diff --git a/img/frames/textless/magicFest/m.png b/img/frames/textless/magicFest/m.png new file mode 100644 index 00000000..11030675 Binary files /dev/null and b/img/frames/textless/magicFest/m.png differ diff --git a/img/frames/textless/magicFest/mThumb.png b/img/frames/textless/magicFest/mThumb.png new file mode 100644 index 00000000..b5970a7a Binary files /dev/null and b/img/frames/textless/magicFest/mThumb.png differ diff --git a/img/frames/textless/magicFest/pinline.png b/img/frames/textless/magicFest/pinline.png new file mode 100644 index 00000000..dc7f08eb Binary files /dev/null and b/img/frames/textless/magicFest/pinline.png differ diff --git a/img/frames/textless/magicFest/pinlineThumb.png b/img/frames/textless/magicFest/pinlineThumb.png new file mode 100644 index 00000000..f18652da Binary files /dev/null and b/img/frames/textless/magicFest/pinlineThumb.png differ diff --git a/img/frames/textless/magicFest/r.png b/img/frames/textless/magicFest/r.png new file mode 100644 index 00000000..11c8805b Binary files /dev/null and b/img/frames/textless/magicFest/r.png differ diff --git a/img/frames/textless/magicFest/rThumb.png b/img/frames/textless/magicFest/rThumb.png new file mode 100644 index 00000000..63b53c7a Binary files /dev/null and b/img/frames/textless/magicFest/rThumb.png differ diff --git a/img/frames/textless/magicFest/u.png b/img/frames/textless/magicFest/u.png new file mode 100644 index 00000000..7b7015c7 Binary files /dev/null and b/img/frames/textless/magicFest/u.png differ diff --git a/img/frames/textless/magicFest/uThumb.png b/img/frames/textless/magicFest/uThumb.png new file mode 100644 index 00000000..8b91562d Binary files /dev/null and b/img/frames/textless/magicFest/uThumb.png differ diff --git a/img/frames/textless/magicFest/w.png b/img/frames/textless/magicFest/w.png new file mode 100644 index 00000000..e9642afb Binary files /dev/null and b/img/frames/textless/magicFest/w.png differ diff --git a/img/frames/textless/magicFest/wThumb.png b/img/frames/textless/magicFest/wThumb.png new file mode 100644 index 00000000..8e7c300c Binary files /dev/null and b/img/frames/textless/magicFest/wThumb.png differ diff --git a/js/creator-9.js b/js/creator-9.js index 758f2417..138fc039 100644 --- a/js/creator-9.js +++ b/js/creator-9.js @@ -25,7 +25,7 @@ art.onload = artEdited; setSymbol = new Image(); setSymbol.crossOrigin = 'anonymous'; setSymbol.src = blank.src; setSymbol.onerror = function() { if (this.src.includes('gatherer.wizards.com')) { - notify('Loading the set symbol from Gatherer failed. Please check this link to see if it exists. If it does, it may be necessary to manually download and upload the image.', 15); + notify('Loading the set symbol from Gatherer failed. Please check this link to see if it exists. If it does, it may be necessary to manually download and upload the image.', 5); } if (!this.src.includes('/img/blank.png')) {this.src = fixUri('/img/blank.png');} } diff --git a/js/frames/groupTextless-3.js b/js/frames/groupTextless-4.js similarity index 93% rename from js/frames/groupTextless-3.js rename to js/frames/groupTextless-4.js index f81185bb..96aff8ca 100644 --- a/js/frames/groupTextless-3.js +++ b/js/frames/groupTextless-4.js @@ -1,5 +1,6 @@ loadFramePacks([ {name:'Generic Showcase', value:'TextlessGenericShowcase'}, + {name:'Magic Fest Promos', value:'MagicFest'}, {name:'Inventions', value:'TextlessInvention'}, {name:'Unstable Basics', value:'Unstable'}, {name:'Fullart Basics', value:'ZendikarBasic-1'}, diff --git a/js/frames/packMagicFest.js b/js/frames/packMagicFest.js new file mode 100644 index 00000000..8942eb45 --- /dev/null +++ b/js/frames/packMagicFest.js @@ -0,0 +1,48 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/textless/magicFest/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/textless/magicFest/frame.png', name:'Frame'}]; +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/textless/magicFest/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/textless/magicFest/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/textless/magicFest/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/textless/magicFest/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/textless/magicFest/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/textless/magicFest/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/textless/magicFest/a.png', masks:masks}, + {name:'Colorless Frame', src:'/img/frames/textless/magicFest/l.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTW.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTU.png', bounds:bounds}, + {name:'Black Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTB.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTR.png', bounds:bounds}, + {name:'Green Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTG.png', bounds:bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTM.png', bounds:bounds}, + {name:'Artifact Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTA.png', bounds:bounds}, + {name:'Colorless Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTC.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 = 'magicFest'; + //art bounds + card.artBounds = {x:0.062, y:0.0496, width:0.876, height:0.8639}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.5, y:0.9524, width:0.12, height:0.0410, vertical:'center', horizontal: 'center'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:-1, y:-1, width:0.0007, height:0.0005}; + 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, color:'white', shadowX:0.0014, shadowY:0.001}, + 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:'black'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file