diff --git a/img/frames/planeswalker/mdfc/bb.png b/img/frames/planeswalker/mdfc/bb.png new file mode 100644 index 00000000..9e923518 Binary files /dev/null and b/img/frames/planeswalker/mdfc/bb.png differ diff --git a/img/frames/planeswalker/mdfc/bbThumb.png b/img/frames/planeswalker/mdfc/bbThumb.png new file mode 100644 index 00000000..4ed15042 Binary files /dev/null and b/img/frames/planeswalker/mdfc/bbThumb.png differ diff --git a/img/frames/planeswalker/mdfc/bf.png b/img/frames/planeswalker/mdfc/bf.png new file mode 100644 index 00000000..40b5d3f7 Binary files /dev/null and b/img/frames/planeswalker/mdfc/bf.png differ diff --git a/img/frames/planeswalker/mdfc/bfThumb.png b/img/frames/planeswalker/mdfc/bfThumb.png new file mode 100644 index 00000000..d7206a2f Binary files /dev/null and b/img/frames/planeswalker/mdfc/bfThumb.png differ diff --git a/img/frames/planeswalker/mdfc/gb.png b/img/frames/planeswalker/mdfc/gb.png new file mode 100644 index 00000000..8c5d18b4 Binary files /dev/null and b/img/frames/planeswalker/mdfc/gb.png differ diff --git a/img/frames/planeswalker/mdfc/gbThumb.png b/img/frames/planeswalker/mdfc/gbThumb.png new file mode 100644 index 00000000..5985ead5 Binary files /dev/null and b/img/frames/planeswalker/mdfc/gbThumb.png differ diff --git a/img/frames/planeswalker/mdfc/gf.png b/img/frames/planeswalker/mdfc/gf.png new file mode 100644 index 00000000..da6f8f91 Binary files /dev/null and b/img/frames/planeswalker/mdfc/gf.png differ diff --git a/img/frames/planeswalker/mdfc/gfThumb.png b/img/frames/planeswalker/mdfc/gfThumb.png new file mode 100644 index 00000000..25e4331a Binary files /dev/null and b/img/frames/planeswalker/mdfc/gfThumb.png differ diff --git a/img/frames/planeswalker/mdfc/mb.png b/img/frames/planeswalker/mdfc/mb.png new file mode 100644 index 00000000..b2ee14b2 Binary files /dev/null and b/img/frames/planeswalker/mdfc/mb.png differ diff --git a/img/frames/planeswalker/mdfc/mbThumb.png b/img/frames/planeswalker/mdfc/mbThumb.png new file mode 100644 index 00000000..dce892f2 Binary files /dev/null and b/img/frames/planeswalker/mdfc/mbThumb.png differ diff --git a/img/frames/planeswalker/mdfc/mf.png b/img/frames/planeswalker/mdfc/mf.png new file mode 100644 index 00000000..5e1c6c79 Binary files /dev/null and b/img/frames/planeswalker/mdfc/mf.png differ diff --git a/img/frames/planeswalker/mdfc/mfThumb.png b/img/frames/planeswalker/mdfc/mfThumb.png new file mode 100644 index 00000000..3335bd0b Binary files /dev/null and b/img/frames/planeswalker/mdfc/mfThumb.png differ diff --git a/img/frames/planeswalker/mdfc/pinline.png b/img/frames/planeswalker/mdfc/pinline.png new file mode 100644 index 00000000..04c5671f Binary files /dev/null and b/img/frames/planeswalker/mdfc/pinline.png differ diff --git a/img/frames/planeswalker/mdfc/pinline.svg b/img/frames/planeswalker/mdfc/pinline.svg new file mode 100644 index 00000000..3fd96ed3 --- /dev/null +++ b/img/frames/planeswalker/mdfc/pinline.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/planeswalker/mdfc/pinlineThumb.png b/img/frames/planeswalker/mdfc/pinlineThumb.png new file mode 100644 index 00000000..a0d78587 Binary files /dev/null and b/img/frames/planeswalker/mdfc/pinlineThumb.png differ diff --git a/img/frames/planeswalker/mdfc/rb.png b/img/frames/planeswalker/mdfc/rb.png new file mode 100644 index 00000000..4f88d9f2 Binary files /dev/null and b/img/frames/planeswalker/mdfc/rb.png differ diff --git a/img/frames/planeswalker/mdfc/rbThumb.png b/img/frames/planeswalker/mdfc/rbThumb.png new file mode 100644 index 00000000..cd924402 Binary files /dev/null and b/img/frames/planeswalker/mdfc/rbThumb.png differ diff --git a/img/frames/planeswalker/mdfc/reminder.svg b/img/frames/planeswalker/mdfc/reminder.svg new file mode 100644 index 00000000..ede2e6ba --- /dev/null +++ b/img/frames/planeswalker/mdfc/reminder.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/frames/planeswalker/mdfc/reminderThumb.png b/img/frames/planeswalker/mdfc/reminderThumb.png new file mode 100644 index 00000000..64b0990d Binary files /dev/null and b/img/frames/planeswalker/mdfc/reminderThumb.png differ diff --git a/img/frames/planeswalker/mdfc/rf.png b/img/frames/planeswalker/mdfc/rf.png new file mode 100644 index 00000000..aaf0291c Binary files /dev/null and b/img/frames/planeswalker/mdfc/rf.png differ diff --git a/img/frames/planeswalker/mdfc/rfThumb.png b/img/frames/planeswalker/mdfc/rfThumb.png new file mode 100644 index 00000000..b1a1538c Binary files /dev/null and b/img/frames/planeswalker/mdfc/rfThumb.png differ diff --git a/img/frames/planeswalker/mdfc/text.svg b/img/frames/planeswalker/mdfc/text.svg new file mode 100644 index 00000000..3a414c2b --- /dev/null +++ b/img/frames/planeswalker/mdfc/text.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/planeswalker/mdfc/title.svg b/img/frames/planeswalker/mdfc/title.svg new file mode 100644 index 00000000..57aea187 --- /dev/null +++ b/img/frames/planeswalker/mdfc/title.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/frames/planeswalker/mdfc/titleThumb.png b/img/frames/planeswalker/mdfc/titleThumb.png new file mode 100644 index 00000000..9f0c9535 Binary files /dev/null and b/img/frames/planeswalker/mdfc/titleThumb.png differ diff --git a/img/frames/planeswalker/mdfc/ub.png b/img/frames/planeswalker/mdfc/ub.png new file mode 100644 index 00000000..482a5bff Binary files /dev/null and b/img/frames/planeswalker/mdfc/ub.png differ diff --git a/img/frames/planeswalker/mdfc/ubThumb.png b/img/frames/planeswalker/mdfc/ubThumb.png new file mode 100644 index 00000000..ee563f2a Binary files /dev/null and b/img/frames/planeswalker/mdfc/ubThumb.png differ diff --git a/img/frames/planeswalker/mdfc/uf.png b/img/frames/planeswalker/mdfc/uf.png new file mode 100644 index 00000000..ede91134 Binary files /dev/null and b/img/frames/planeswalker/mdfc/uf.png differ diff --git a/img/frames/planeswalker/mdfc/ufThumb.png b/img/frames/planeswalker/mdfc/ufThumb.png new file mode 100644 index 00000000..494cb290 Binary files /dev/null and b/img/frames/planeswalker/mdfc/ufThumb.png differ diff --git a/img/frames/planeswalker/mdfc/wb.png b/img/frames/planeswalker/mdfc/wb.png new file mode 100644 index 00000000..91c4beba Binary files /dev/null and b/img/frames/planeswalker/mdfc/wb.png differ diff --git a/img/frames/planeswalker/mdfc/wbThumb.png b/img/frames/planeswalker/mdfc/wbThumb.png new file mode 100644 index 00000000..c0c8a1ea Binary files /dev/null and b/img/frames/planeswalker/mdfc/wbThumb.png differ diff --git a/img/frames/planeswalker/mdfc/wf.png b/img/frames/planeswalker/mdfc/wf.png new file mode 100644 index 00000000..096b9d36 Binary files /dev/null and b/img/frames/planeswalker/mdfc/wf.png differ diff --git a/img/frames/planeswalker/mdfc/wfThumb.png b/img/frames/planeswalker/mdfc/wfThumb.png new file mode 100644 index 00000000..08dd63fa Binary files /dev/null and b/img/frames/planeswalker/mdfc/wfThumb.png differ diff --git a/js/frames/packPlaneswalkerMDFC.js b/js/frames/packPlaneswalkerMDFC.js new file mode 100644 index 00000000..2662435e --- /dev/null +++ b/js/frames/packPlaneswalkerMDFC.js @@ -0,0 +1,52 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/planeswalker/mdfc/pinline.svg', name:'Pinline'}, {src:'/img/frames/modal/modalMaskReminder.png', name:'Reminder'}, {src:'/img/frames/planeswalker/mdfc/title.svg', name:'Title'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskType.png', name:'Type'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskBorder.png', name:'Border'}, {src:'/img/frames/planeswalker/maskLoyalty.png', name:'Loyalty'}]; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/planeswalker/mdfc/wf.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/planeswalker/mdfc/uf.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/planeswalker/mdfc/bf.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/planeswalker/mdfc/rf.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/planeswalker/mdfc/gf.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/planeswalker/mdfc/mf.png', masks:masks}, + {name:'White Frame', src:'/img/frames/planeswalker/mdfc/wb.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/planeswalker/mdfc/ub.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/planeswalker/mdfc/bb.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/planeswalker/mdfc/rb.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/planeswalker/mdfc/gb.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/planeswalker/mdfc/mb.png', masks:masks} +]; +//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 = 'planeswalkerMDFC'; + card.onload = '/js/frames/versionPlaneswalker.js'; + loadScript('/js/frames/versionPlaneswalker.js'); + //art bounds + card.artBounds = {x:0.068, y:0.101, width:0.864, height:0.8143}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9227, y:0.5891, width:0.12, height:0.0381, 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.0481, 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.1614, y:0.0372, width:0.7534, height:0.0548, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type', text:'', x:0.0867, y:0.5625, width:0.8267, height:0.0548, oneLine:true, font:'belerenb', size:0.0324}, + ability0: {name:'Ability 1', text:'', x:0.18, y:0.6239, width:0.7467, height:0.0972, size:0.0353}, + ability1: {name:'Ability 2', text:'', x:0.18, y:0, width:0.7467, height:0.0972, size:0.0353}, + ability2: {name:'Ability 3', text:'', x:0.18, y:0, width:0.7467, height:0.0972, size:0.0353}, + ability3: {name:'Ability 4', text:'', x:0.18, y:0, width:0.7467, height:0, size:0.0353}, + loyalty: {name:'Loyalty', text:'', x:0.806, y:0.902, width:0.14, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'}, + flipsideType: {name:'Flipside Type', text:'', x:0.068, y:0.892, width:0.364, height:0.0391, size:0.0234, color:'white', oneLine:true, font:'belerenb'}, + flipSideReminder: {name:'Flipside Text', text:'', x:0.068, y:0.892, width:0.364, height:0.0391, size:0.0258, color:'white', oneLine:true, align:'right'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/versionPlaneswalker.js b/js/frames/versionPlaneswalker.js index 681db1b5..0f29afc3 100644 --- a/js/frames/versionPlaneswalker.js +++ b/js/frames/versionPlaneswalker.js @@ -59,11 +59,15 @@ function planeswalkerEdited() { var planeswalkerTall = 0; if (card.version == 'planeswalkerTall') { planeswalkerTall = 1; - if (!planeswalkerTextMask.src.includes('Tall')) { + if (!planeswalkerTextMask.src.includes('tall')) { planeswalkerTextMask.src = '/img/frames/planeswalker/tall/planeswalkerTallMaskRules.png'; } + } else if (card.version == 'planeswalkerMDFC') { + if (!planeswalkerTextMask.src.includes('mdfc')) { + planeswalkerTextMask.src = '/img/frames/planeswalker/mdfc/text.svg'; + } } else { - if (planeswalkerTextMask.src.includes('Tall')) { + if (planeswalkerTextMask.src.includes('tall') || planeswalkerTextMask.includes('mdfc')) { planeswalkerTextMask.src = '/img/frames/planeswalker/planeswalkerMaskText.png'; } }