diff --git a/css/style-9.css b/css/style-9.css index 52260d7a..ffa1c0e7 100644 --- a/css/style-9.css +++ b/css/style-9.css @@ -75,6 +75,10 @@ font-family: invocation-text; src: url('/fonts/shango-gothic-bold.ttf'); } +@font-face { + font-family: souvenir; + src: url('/fonts/Souvenir-Itc-T-OT-Bold.otf'); +} /*Variables*/ :root { --site-background: url('/img/lowpolyBackground.svg'); diff --git a/fonts/Souvenir-Itc-T-OT-Bold.otf b/fonts/Souvenir-Itc-T-OT-Bold.otf new file mode 100644 index 00000000..20f02719 Binary files /dev/null and b/fonts/Souvenir-Itc-T-OT-Bold.otf differ diff --git a/img/frames/dndModule/b.svg b/img/frames/dndModule/b.svg new file mode 100644 index 00000000..fb413903 --- /dev/null +++ b/img/frames/dndModule/b.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/frames/dndModule/bThumb.png b/img/frames/dndModule/bThumb.png new file mode 100644 index 00000000..2e607d68 Binary files /dev/null and b/img/frames/dndModule/bThumb.png differ diff --git a/img/frames/dndModule/c.svg b/img/frames/dndModule/c.svg new file mode 100644 index 00000000..423e1bc7 --- /dev/null +++ b/img/frames/dndModule/c.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/frames/dndModule/cThumb.png b/img/frames/dndModule/cThumb.png new file mode 100644 index 00000000..7ac3666a Binary files /dev/null and b/img/frames/dndModule/cThumb.png differ diff --git a/img/frames/dndModule/g.svg b/img/frames/dndModule/g.svg new file mode 100644 index 00000000..f7821bcf --- /dev/null +++ b/img/frames/dndModule/g.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/frames/dndModule/gThumb.png b/img/frames/dndModule/gThumb.png new file mode 100644 index 00000000..6881a4d0 Binary files /dev/null and b/img/frames/dndModule/gThumb.png differ diff --git a/img/frames/dndModule/r.svg b/img/frames/dndModule/r.svg new file mode 100644 index 00000000..bd47dd23 --- /dev/null +++ b/img/frames/dndModule/r.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/frames/dndModule/rThumb.png b/img/frames/dndModule/rThumb.png new file mode 100644 index 00000000..46930412 Binary files /dev/null and b/img/frames/dndModule/rThumb.png differ diff --git a/img/frames/dndModule/u.svg b/img/frames/dndModule/u.svg new file mode 100644 index 00000000..ade89158 --- /dev/null +++ b/img/frames/dndModule/u.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/frames/dndModule/uThumb.png b/img/frames/dndModule/uThumb.png new file mode 100644 index 00000000..1f0a5b6c Binary files /dev/null and b/img/frames/dndModule/uThumb.png differ diff --git a/img/frames/dndModule/w.svg b/img/frames/dndModule/w.svg new file mode 100644 index 00000000..2fc4fb43 --- /dev/null +++ b/img/frames/dndModule/w.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/frames/dndModule/wThumb.png b/img/frames/dndModule/wThumb.png new file mode 100644 index 00000000..b56be638 Binary files /dev/null and b/img/frames/dndModule/wThumb.png differ diff --git a/js/creator-21.js b/js/creator-21.js index 5bec71aa..ef952aa5 100644 --- a/js/creator-21.js +++ b/js/creator-21.js @@ -1008,7 +1008,6 @@ function writeText(textObject, targetContext) { //boxes for roll a d20 cards if (savedRollYPosition && (newLineSpacing != 0 || !(newLine && !textOneLine))) { if (savedRollYPosition != -1) { - console.log(savedRollYPosition); paragraphContext.globalCompositeOperation = 'destination-over'; paragraphContext.globalAlpha = 0.25; paragraphContext.fillStyle = 'black'; diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index c21df93f..63ac3607 100644 --- a/js/frames/groupShowcase-5.js +++ b/js/frames/groupShowcase-5.js @@ -1,4 +1,5 @@ loadFramePacks([ + {name:'D&D Module', value:'DNDModule'}, {name:'Mystical Archive (Japanese)', value:'MysticalArchiveJP'}, {name:'Mystical Archive', value:'MysticalArchive'}, {name:'Praetors', value:'Praetors'}, diff --git a/js/frames/packDNDModule.js b/js/frames/packDNDModule.js new file mode 100644 index 00000000..b919179f --- /dev/null +++ b/js/frames/packDNDModule.js @@ -0,0 +1,41 @@ +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/dndModule/w.svg'}, + {name:'Blue Frame', src:'/img/frames/dndModule/u.svg'}, + {name:'Black Frame', src:'/img/frames/dndModule/b.svg'}, + {name:'Red Frame', src:'/img/frames/dndModule/r.svg'}, + {name:'Green Frame', src:'/img/frames/dndModule/g.svg'}, + {name:'Colorless Frame', src:'/img/frames/dndModule/c.svg'} +]; +//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 = 'dndModule'; + //art bounds + card.artBounds = {x:0.0394, y:0.1929, width:0.9214, height:0.4115}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9167, y:0.63, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7953, 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}, + supertitle: {name:'Supertitle', text:'Dungeon Module R13', x:0.0854, y:0.0277, width:0.8292, height:0.0296, oneLine:true, font:'souvenir', size:0.0296, color:'white', align:'center'}, + title: {name:'Title', text:'', x:0.13, y:0.05, width:0.74, height:0.1048, color:'#ECDB2D', align:'center', font:'souvenir', size:0.0572}, + subtitle: {name:'Subtitle', text:'AN ADVENTURE FOR CHARACTERS LEVELS 11-16', x:0.06, y:0.1558, width:0.88, height:0.0253, oneLine:true, font:'souvenir', size:0.0253, color:'white', align:'center'}, + module: {name:'Module #', text:'R13', x:0, y:0.02, width:0.08, height:0.0191, oneLine:true, font:'souvenir', size:0.0191, color:'#ECDB2D', align:'center'}, + dnd: {name:'D&D', text:'DUNGEONS & DRAGONS', x:-0.01, y:0.0953, width:0.204, height:0.0643, font:'souvenir', size:0.0215, align:'center', rotation:-45}, + type: {name:'Type', text:'', x:0.0854, y:0.6181, width:0.8292, height:0.0324, oneLine:true, font:'souvenir', size:0.0324, color:'white'}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6762, width:0.828, height:0.24, size:0.0362, noVerticalCenter:true, color:'white'}, + pt: {name:'Power/Toughness', text:'', x:0.8634, y:0.8858, width:0.1367, height:0.0372, size:0.0372, font:'souvenir', oneLine:true, align:'center', color:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file