diff --git a/img/frames/old/floating/short/a.png b/img/frames/old/floating/short/a.png new file mode 100644 index 00000000..dd66754f Binary files /dev/null and b/img/frames/old/floating/short/a.png differ diff --git a/img/frames/old/floating/short/aThumb.png b/img/frames/old/floating/short/aThumb.png new file mode 100644 index 00000000..74cabe39 Binary files /dev/null and b/img/frames/old/floating/short/aThumb.png differ diff --git a/img/frames/old/floating/short/b.png b/img/frames/old/floating/short/b.png new file mode 100644 index 00000000..57acce9b Binary files /dev/null and b/img/frames/old/floating/short/b.png differ diff --git a/img/frames/old/floating/short/bThumb.png b/img/frames/old/floating/short/bThumb.png new file mode 100644 index 00000000..a5b464f0 Binary files /dev/null and b/img/frames/old/floating/short/bThumb.png differ diff --git a/img/frames/old/floating/short/g.png b/img/frames/old/floating/short/g.png new file mode 100644 index 00000000..9d97a5d1 Binary files /dev/null and b/img/frames/old/floating/short/g.png differ diff --git a/img/frames/old/floating/short/gThumb.png b/img/frames/old/floating/short/gThumb.png new file mode 100644 index 00000000..47f5a2ad Binary files /dev/null and b/img/frames/old/floating/short/gThumb.png differ diff --git a/img/frames/old/floating/short/m.png b/img/frames/old/floating/short/m.png new file mode 100644 index 00000000..0d661209 Binary files /dev/null and b/img/frames/old/floating/short/m.png differ diff --git a/img/frames/old/floating/short/mThumb.png b/img/frames/old/floating/short/mThumb.png new file mode 100644 index 00000000..8e24c42d Binary files /dev/null and b/img/frames/old/floating/short/mThumb.png differ diff --git a/img/frames/old/floating/short/r.png b/img/frames/old/floating/short/r.png new file mode 100644 index 00000000..af7762c6 Binary files /dev/null and b/img/frames/old/floating/short/r.png differ diff --git a/img/frames/old/floating/short/rThumb.png b/img/frames/old/floating/short/rThumb.png new file mode 100644 index 00000000..a4600b9e Binary files /dev/null and b/img/frames/old/floating/short/rThumb.png differ diff --git a/img/frames/old/floating/short/u.png b/img/frames/old/floating/short/u.png new file mode 100644 index 00000000..938c5109 Binary files /dev/null and b/img/frames/old/floating/short/u.png differ diff --git a/img/frames/old/floating/short/uThumb.png b/img/frames/old/floating/short/uThumb.png new file mode 100644 index 00000000..d768ba1e Binary files /dev/null and b/img/frames/old/floating/short/uThumb.png differ diff --git a/img/frames/old/floating/short/w.png b/img/frames/old/floating/short/w.png new file mode 100644 index 00000000..fab335b0 Binary files /dev/null and b/img/frames/old/floating/short/w.png differ diff --git a/img/frames/old/floating/short/wThumb.png b/img/frames/old/floating/short/wThumb.png new file mode 100644 index 00000000..10c50a32 Binary files /dev/null and b/img/frames/old/floating/short/wThumb.png differ diff --git a/js/frames/packOldFloating.js b/js/frames/packOldFloating.js index 89f49d1a..8cb1f790 100644 --- a/js/frames/packOldFloating.js +++ b/js/frames/packOldFloating.js @@ -28,7 +28,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { card.setSymbolBounds = {x:0.9, y:0.5739, width:0.12, height:0.0372, vertical:'center', horizontal: 'right'}; resetSetSymbol(); //watermark bounds - card.watermarkBounds = {x:0.18, y:0.64, width:0.64, height:0.24}; + card.watermarkBounds = {x:0.5, y:0.7429, width:0.6, height:0.25}; resetWatermark(); //text loadTextOptions({ diff --git a/js/frames/packOldFloatingShort.js b/js/frames/packOldFloatingShort.js new file mode 100644 index 00000000..235c4ca1 --- /dev/null +++ b/js/frames/packOldFloatingShort.js @@ -0,0 +1,49 @@ +//Create objects for common properties across available frames +//var masks = [{src:'/img/frames/seventh/regular/pinline.svg', name:'Pinline'}, {src:'/img/frames/seventh/regular/rules.svg', name:'Rules'}, {src:'/img/frames/seventh/regular/frame.svg', name:'Frame'}]; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/old/floating/short/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/old/floating/short/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/old/floating/short/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/old/floating/short/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/old/floating/short/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/old/floating/short/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/old/floating/short/a.png', masks:masks}, + {name:'Tombstone Icon', src:'/img/frames/old/icons/tombstone.svg', bounds: {x:0.0687, y:0.0491, width:0.0338, height:0.0329}}, + {name:'DCI Star', src:'/img/frames/seventh/foilStar.svg'}, + {name:'Foil Layer', src:'/img/frames/effects/foil.png', opacity:20, masks:[{src:'/img/frames/seventh/foil.svg', name:'With Star'}, {src:'/img/frames/seventh/foil2.svg', name:'Without Star'}]}, +]; +//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 = 'oldFloatingShort'; + //art bounds + card.artBounds = {x:0, y:0, width:1, height:1}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9, y:0.7039, width:0.12, height:0.0372, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.8081, width:0.6, height:0.12}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', x:0.1067, y:0.0539, width:0.8174, height:72/2100, oneLine:true, size:72/1638, align:'right', manaCost:true}, + title: {name:'Title', text:'', x:0.1134, y:0.0481, width:0.7734, height:0.041, oneLine:true, font:'goudymedieval', size:0.041, color:'white', shadowX:0.002, shadowY:0.0015}, + type: {name:'Type', text:'', x:0.1074, y:0.6786, width:0.7852, height:0.0543, oneLine:true, size:0.032, color:'white', shadowX:0.002, shadowY:0.0015}, + rules: {name:'Rules Text', text:'', x:0.128, y:0.7367, width:0.744, height:0.1424, size:0.0358}, + pt: {name:'Power/Toughness', text:'', x:0.8074, y:0.9043, width:0.1367, height:0.0429, size:0.0429, oneLine:true, align:'center', color:'white', shadowX:0.002, shadowY:0.0015} + }); + //bottom info + loadBottomInfo({ + top: {text:'Illus: {elemidinfo-artist}', x:0.1, y:1872/2100, width:0.8, height:0.0267, oneLine:true, size:0.0267, align:'center', shadowX:0.0021, shadowY:0.0015, color:'white'}, + wizards: {name:'wizards', text:'\u2122 & \u00a9 ' + card.infoYear + ' Wizards of the Coast, Inc. {elemidinfo-number}', x:0.1, y:1933/2100, width:0.8, height:0.0172, oneLine:true, size:0.0172, align:'center', shadowX:0.0014, shadowY:0.001, color:'white'}, + bottom: {text:'NOT FOR SALE CardConjurer.com', x:0.1, y:1973/2100, width:0.8, height:26/2100, oneLine:true, size:26/2100, align:'center', shadowX:0.0014, shadowY:0.001, color:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file