diff --git a/creator/index.html b/creator/index.html index 06916e2c..fbecabaf 100644 --- a/creator/index.html +++ b/creator/index.html @@ -658,7 +658,7 @@ - + diff --git a/img/frames/tarkir/b.png b/img/frames/tarkir/b.png new file mode 100644 index 00000000..cc0f6da3 Binary files /dev/null and b/img/frames/tarkir/b.png differ diff --git a/img/frames/tarkir/bThumb.png b/img/frames/tarkir/bThumb.png new file mode 100644 index 00000000..3641d4a8 Binary files /dev/null and b/img/frames/tarkir/bThumb.png differ diff --git a/img/frames/tarkir/g.png b/img/frames/tarkir/g.png new file mode 100644 index 00000000..b955f80d Binary files /dev/null and b/img/frames/tarkir/g.png differ diff --git a/img/frames/tarkir/gThumb.png b/img/frames/tarkir/gThumb.png new file mode 100644 index 00000000..156dd0b2 Binary files /dev/null and b/img/frames/tarkir/gThumb.png differ diff --git a/img/frames/tarkir/m.png b/img/frames/tarkir/m.png new file mode 100644 index 00000000..c40ae113 Binary files /dev/null and b/img/frames/tarkir/m.png differ diff --git a/img/frames/tarkir/mThumb.png b/img/frames/tarkir/mThumb.png new file mode 100644 index 00000000..66197cbe Binary files /dev/null and b/img/frames/tarkir/mThumb.png differ diff --git a/img/frames/tarkir/maskFrame.png b/img/frames/tarkir/maskFrame.png new file mode 100644 index 00000000..da3e8c9c Binary files /dev/null and b/img/frames/tarkir/maskFrame.png differ diff --git a/img/frames/tarkir/maskFrameThumb.png b/img/frames/tarkir/maskFrameThumb.png new file mode 100644 index 00000000..f1650f7d Binary files /dev/null and b/img/frames/tarkir/maskFrameThumb.png differ diff --git a/img/frames/tarkir/pt/b.png b/img/frames/tarkir/pt/b.png new file mode 100644 index 00000000..1d6a51ba Binary files /dev/null and b/img/frames/tarkir/pt/b.png differ diff --git a/img/frames/tarkir/pt/bThumb.png b/img/frames/tarkir/pt/bThumb.png new file mode 100644 index 00000000..332e8799 Binary files /dev/null and b/img/frames/tarkir/pt/bThumb.png differ diff --git a/img/frames/tarkir/pt/g.png b/img/frames/tarkir/pt/g.png new file mode 100644 index 00000000..f9392dda Binary files /dev/null and b/img/frames/tarkir/pt/g.png differ diff --git a/img/frames/tarkir/pt/gThumb.png b/img/frames/tarkir/pt/gThumb.png new file mode 100644 index 00000000..7165a725 Binary files /dev/null and b/img/frames/tarkir/pt/gThumb.png differ diff --git a/img/frames/tarkir/pt/m.png b/img/frames/tarkir/pt/m.png new file mode 100644 index 00000000..a15d46e2 Binary files /dev/null and b/img/frames/tarkir/pt/m.png differ diff --git a/img/frames/tarkir/pt/mThumb.png b/img/frames/tarkir/pt/mThumb.png new file mode 100644 index 00000000..690a1fd9 Binary files /dev/null and b/img/frames/tarkir/pt/mThumb.png differ diff --git a/img/frames/tarkir/pt/r.png b/img/frames/tarkir/pt/r.png new file mode 100644 index 00000000..b98cc4a4 Binary files /dev/null and b/img/frames/tarkir/pt/r.png differ diff --git a/img/frames/tarkir/pt/rThumb.png b/img/frames/tarkir/pt/rThumb.png new file mode 100644 index 00000000..0942965d Binary files /dev/null and b/img/frames/tarkir/pt/rThumb.png differ diff --git a/img/frames/tarkir/pt/u.png b/img/frames/tarkir/pt/u.png new file mode 100644 index 00000000..d79addac Binary files /dev/null and b/img/frames/tarkir/pt/u.png differ diff --git a/img/frames/tarkir/pt/uThumb.png b/img/frames/tarkir/pt/uThumb.png new file mode 100644 index 00000000..4db8a871 Binary files /dev/null and b/img/frames/tarkir/pt/uThumb.png differ diff --git a/img/frames/tarkir/pt/w.png b/img/frames/tarkir/pt/w.png new file mode 100644 index 00000000..32328d7b Binary files /dev/null and b/img/frames/tarkir/pt/w.png differ diff --git a/img/frames/tarkir/pt/wThumb.png b/img/frames/tarkir/pt/wThumb.png new file mode 100644 index 00000000..c9633a23 Binary files /dev/null and b/img/frames/tarkir/pt/wThumb.png differ diff --git a/img/frames/tarkir/r.png b/img/frames/tarkir/r.png new file mode 100644 index 00000000..ba1219f3 Binary files /dev/null and b/img/frames/tarkir/r.png differ diff --git a/img/frames/tarkir/rThumb.png b/img/frames/tarkir/rThumb.png new file mode 100644 index 00000000..2f95d613 Binary files /dev/null and b/img/frames/tarkir/rThumb.png differ diff --git a/img/frames/tarkir/stamp.png b/img/frames/tarkir/stamp.png new file mode 100644 index 00000000..d5f23a9f Binary files /dev/null and b/img/frames/tarkir/stamp.png differ diff --git a/img/frames/tarkir/stampThumb.png b/img/frames/tarkir/stampThumb.png new file mode 100644 index 00000000..904da7a9 Binary files /dev/null and b/img/frames/tarkir/stampThumb.png differ diff --git a/img/frames/tarkir/u.png b/img/frames/tarkir/u.png new file mode 100644 index 00000000..0be7b4c9 Binary files /dev/null and b/img/frames/tarkir/u.png differ diff --git a/img/frames/tarkir/uThumb.png b/img/frames/tarkir/uThumb.png new file mode 100644 index 00000000..d723d8be Binary files /dev/null and b/img/frames/tarkir/uThumb.png differ diff --git a/img/frames/tarkir/w.png b/img/frames/tarkir/w.png new file mode 100644 index 00000000..9929df5a Binary files /dev/null and b/img/frames/tarkir/w.png differ diff --git a/img/frames/tarkir/wThumb.png b/img/frames/tarkir/wThumb.png new file mode 100644 index 00000000..924b320c Binary files /dev/null and b/img/frames/tarkir/wThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index 63dda3c8..a8f6a48e 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -30,6 +30,7 @@ const frameNames = new Map ([ //showcase ['Ikoria Crystal (MOM)', 'Crystal'], ['Ravnica Architecture (MOM)', 'Ravnica'], + ['Tarkir Sketch (MOM)', 'Tarkir'], ['Oil Slick (ONE)', 'OilSlick'], ['Stained Glass (DMU)', 'DMUStainedGlass'], ['Golden Age (SNC)', 'SNCGilded'], diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index 6c0c675c..62bb5287 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:'Tarkir Sketch (MOM)', value:'Tarkir'}, {name:'Ikoria Crystal (MOM)', value:'Crystal'}, {name:'Ravnica Architecture (MOM)', value:'Ravnica'}, {name:'Oil Slick (ONE)', value:'OilSlick'}, diff --git a/js/frames/packTarkir.js b/js/frames/packTarkir.js new file mode 100644 index 00000000..ff14d05e --- /dev/null +++ b/js/frames/packTarkir.js @@ -0,0 +1,54 @@ +//Create objects for common properties across available frames +var masks = [{src:'img/frames/tarkir/maskFrame.png', name:'Frame (No Art Shadow)'}]; +var ptBounds = {x:1155/1500, y:1850/2100, width:274/1500, height:150/2100}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/tarkir/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/tarkir/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/tarkir/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/tarkir/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/tarkir/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/tarkir/m.png', masks:masks}, + // {name:'Artifact Frame', src:'/img/frames/tarkir/a.png', masks:masks}, + // {name:'Colorless Frame', src:'/img/frames/tarkir/c.png', masks:masks}, + + {name:'White Power/Toughness', src:'/img/frames/tarkir/pt/w.png', bounds:ptBounds}, + {name:'Blue Power/Toughness', src:'/img/frames/tarkir/pt/u.png', bounds:ptBounds}, + {name:'Black Power/Toughness', src:'/img/frames/tarkir/pt/b.png', bounds:ptBounds}, + {name:'Red Power/Toughness', src:'/img/frames/tarkir/pt/r.png', bounds:ptBounds}, + {name:'Green Power/Toughness', src:'/img/frames/tarkir/pt/g.png', bounds:ptBounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/tarkir/pt/m.png', bounds:ptBounds}, + // {name:'Artifact Power/Toughness', src:'/img/frames/tarkir/pt/a.png', bounds:ptBounds}, + // {name:'Colorless Power/Toughness', src:'/img/frames/tarkir/pt/c.png', bounds:ptBounds}, + + {name:'Holo Stamp', src:'/img/frames/tarkir/stamp.png', bounds:{x:638/1500, y:1888/2100, width:225/1500, height:101/2100}} +]; +//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() { + // notify("To change the color of your mana cost, use {manacolor#}, but replace '#' with your desired color. 'white', 'blue', 'black', 'red', and 'green', as well as hex/html color codes are currently supported.", 15) + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'tarkir'; + //art bounds + card.artBounds = {x:131/1500, y:233/2100, width:1235 /1500, height:926/2100}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:1386/1500, y:1234/2100, 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:'', x:-5/1500, y:125/2100, 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:124/1500, y:100/2100, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type', text:'', x:123/1500, y:1182/2100, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:0.086, y:1326/2100, width:0.828, height:0.2875, size:0.0362, color:'white'}, + 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(); \ No newline at end of file