diff --git a/img/frames/saga/nyx/a.png b/img/frames/saga/nyx/a.png new file mode 100644 index 00000000..37c12b81 Binary files /dev/null and b/img/frames/saga/nyx/a.png differ diff --git a/img/frames/saga/nyx/aThumb.png b/img/frames/saga/nyx/aThumb.png new file mode 100644 index 00000000..37de2be8 Binary files /dev/null and b/img/frames/saga/nyx/aThumb.png differ diff --git a/img/frames/saga/nyx/b.png b/img/frames/saga/nyx/b.png new file mode 100644 index 00000000..bf482020 Binary files /dev/null and b/img/frames/saga/nyx/b.png differ diff --git a/img/frames/saga/nyx/bThumb.png b/img/frames/saga/nyx/bThumb.png new file mode 100644 index 00000000..9b4d533f Binary files /dev/null and b/img/frames/saga/nyx/bThumb.png differ diff --git a/img/frames/saga/nyx/g.png b/img/frames/saga/nyx/g.png new file mode 100644 index 00000000..a47f77a3 Binary files /dev/null and b/img/frames/saga/nyx/g.png differ diff --git a/img/frames/saga/nyx/gThumb.png b/img/frames/saga/nyx/gThumb.png new file mode 100644 index 00000000..95a28f09 Binary files /dev/null and b/img/frames/saga/nyx/gThumb.png differ diff --git a/img/frames/saga/nyx/m.png b/img/frames/saga/nyx/m.png new file mode 100644 index 00000000..5b5d174a Binary files /dev/null and b/img/frames/saga/nyx/m.png differ diff --git a/img/frames/saga/nyx/mThumb.png b/img/frames/saga/nyx/mThumb.png new file mode 100644 index 00000000..af4768d2 Binary files /dev/null and b/img/frames/saga/nyx/mThumb.png differ diff --git a/img/frames/saga/nyx/r.png b/img/frames/saga/nyx/r.png new file mode 100644 index 00000000..c567d486 Binary files /dev/null and b/img/frames/saga/nyx/r.png differ diff --git a/img/frames/saga/nyx/rThumb.png b/img/frames/saga/nyx/rThumb.png new file mode 100644 index 00000000..04123991 Binary files /dev/null and b/img/frames/saga/nyx/rThumb.png differ diff --git a/img/frames/saga/nyx/u.png b/img/frames/saga/nyx/u.png new file mode 100644 index 00000000..787ce7e1 Binary files /dev/null and b/img/frames/saga/nyx/u.png differ diff --git a/img/frames/saga/nyx/uThumb.png b/img/frames/saga/nyx/uThumb.png new file mode 100644 index 00000000..7c1c0190 Binary files /dev/null and b/img/frames/saga/nyx/uThumb.png differ diff --git a/img/frames/saga/nyx/w.png b/img/frames/saga/nyx/w.png new file mode 100644 index 00000000..2f6df30e Binary files /dev/null and b/img/frames/saga/nyx/w.png differ diff --git a/img/frames/saga/nyx/wThumb.png b/img/frames/saga/nyx/wThumb.png new file mode 100644 index 00000000..370a0a06 Binary files /dev/null and b/img/frames/saga/nyx/wThumb.png differ diff --git a/img/frames/saga/pt/a.png b/img/frames/saga/pt/a.png new file mode 100644 index 00000000..a50d19f2 Binary files /dev/null and b/img/frames/saga/pt/a.png differ diff --git a/img/frames/saga/pt/aThumb.png b/img/frames/saga/pt/aThumb.png new file mode 100644 index 00000000..5e7b2105 Binary files /dev/null and b/img/frames/saga/pt/aThumb.png differ diff --git a/img/frames/saga/pt/b.png b/img/frames/saga/pt/b.png new file mode 100644 index 00000000..3bc682ff Binary files /dev/null and b/img/frames/saga/pt/b.png differ diff --git a/img/frames/saga/pt/bThumb.png b/img/frames/saga/pt/bThumb.png new file mode 100644 index 00000000..b57c1f69 Binary files /dev/null and b/img/frames/saga/pt/bThumb.png differ diff --git a/img/frames/saga/pt/g.png b/img/frames/saga/pt/g.png new file mode 100644 index 00000000..5c1ec045 Binary files /dev/null and b/img/frames/saga/pt/g.png differ diff --git a/img/frames/saga/pt/gThumb.png b/img/frames/saga/pt/gThumb.png new file mode 100644 index 00000000..cd65a533 Binary files /dev/null and b/img/frames/saga/pt/gThumb.png differ diff --git a/img/frames/saga/pt/m.png b/img/frames/saga/pt/m.png new file mode 100644 index 00000000..102e4f2c Binary files /dev/null and b/img/frames/saga/pt/m.png differ diff --git a/img/frames/saga/pt/mThumb.png b/img/frames/saga/pt/mThumb.png new file mode 100644 index 00000000..d65ed6ce Binary files /dev/null and b/img/frames/saga/pt/mThumb.png differ diff --git a/img/frames/saga/pt/r.png b/img/frames/saga/pt/r.png new file mode 100644 index 00000000..a8407f9f Binary files /dev/null and b/img/frames/saga/pt/r.png differ diff --git a/img/frames/saga/pt/rThumb.png b/img/frames/saga/pt/rThumb.png new file mode 100644 index 00000000..643a8e43 Binary files /dev/null and b/img/frames/saga/pt/rThumb.png differ diff --git a/img/frames/saga/pt/u.png b/img/frames/saga/pt/u.png new file mode 100644 index 00000000..f57cdd10 Binary files /dev/null and b/img/frames/saga/pt/u.png differ diff --git a/img/frames/saga/pt/uThumb.png b/img/frames/saga/pt/uThumb.png new file mode 100644 index 00000000..3711bd12 Binary files /dev/null and b/img/frames/saga/pt/uThumb.png differ diff --git a/img/frames/saga/pt/w.png b/img/frames/saga/pt/w.png new file mode 100644 index 00000000..ef7f8c3b Binary files /dev/null and b/img/frames/saga/pt/w.png differ diff --git a/img/frames/saga/pt/wThumb.png b/img/frames/saga/pt/wThumb.png new file mode 100644 index 00000000..a9b47cf8 Binary files /dev/null and b/img/frames/saga/pt/wThumb.png differ diff --git a/img/frames/saga/regular/sagaFrameA.png b/img/frames/saga/regular/sagaFrameA.png new file mode 100644 index 00000000..25199a62 Binary files /dev/null and b/img/frames/saga/regular/sagaFrameA.png differ diff --git a/img/frames/saga/regular/sagaFrameAThumb.png b/img/frames/saga/regular/sagaFrameAThumb.png new file mode 100644 index 00000000..576c99c5 Binary files /dev/null and b/img/frames/saga/regular/sagaFrameAThumb.png differ diff --git a/js/frames/groupSaga-1.js b/js/frames/groupSaga-1.js index f8d2bee5..5e96fd69 100644 --- a/js/frames/groupSaga-1.js +++ b/js/frames/groupSaga-1.js @@ -1,6 +1,7 @@ loadFramePacks([ {name:'Regular Frames', value:'SagaRegular'}, {name:'Universes Beyond Frames', value:'SagaUB'}, + {name:'Nyx Frames', value:'SagaNyx'}, {name:'Addons', value:'disabled'}, {name:'Legend Crowns', value:'M15LegendCrowns'}, {name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'}, diff --git a/js/frames/packSagaNyx.js b/js/frames/packSagaNyx.js new file mode 100644 index 00000000..09a04df2 --- /dev/null +++ b/js/frames/packSagaNyx.js @@ -0,0 +1,58 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/saga/sagaMaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/saga/sagaMaskType.png', name:'Type'}, {src:'/img/frames/saga/sagaMaskFrame.png', name:'Frame'}, {src:'/img/frames/saga/sagaMaskBanner.png', name:'Banner'}, {src:'/img/frames/saga/sagaMaskBannerRight.png', name:'Banner (Right)'}, {src:'/img/frames/saga/sagaMaskText.png', name:'Text'}, {src:'/img/frames/saga/sagaMaskTextRight.png', name:'Text (Right)'}, {src:'/img/frames/saga/sagaMaskBorder.png', name:'Border'}]; +var bounds = {x:1179/1500, y:1766/2100, width:237/1500, height:154/2100}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/saga/nyx/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/saga/nyx/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/saga/nyx/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/saga/nyx/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/saga/nyx/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/saga/nyx/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/saga/nyx/a.png', masks:masks}, + {name:'Banner Pinstripe (Multicolored)', src:'/img/frames/saga/sagaMidStripe.png', bounds:{x:0.0727, y:0.3058, width:0.0087, height:0.4762}}, + + {name:'White Power/Toughness', src:'/img/frames/saga/pt/w.png', bounds: bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/saga/pt/u.png', bounds: bounds}, + {name:'Black Power/Toughness', src:'/img/frames/saga/pt/b.png', bounds: bounds}, + {name:'Red Power/Toughness', src:'/img/frames/saga/pt/r.png', bounds: bounds}, + {name:'Green Power/Toughness', src:'/img/frames/saga/pt/g.png', bounds: bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/saga/pt/m.png', bounds: bounds}, + {name:'Artifact Power/Toughness', src:'/img/frames/saga/pt/a.png', bounds: bounds}, + + {name:'Holo Stamp', src:'/img/frames/saga/stamp.png', bounds:{x:0.438, y:0.912, width:0.124, height:0.0372}} +]; +//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 = 'sagaNyx'; + card.onload = '/js/frames/versionSaga.js'; + loadScript('/js/frames/versionSaga.js'); + //art bounds + card.artBounds = {x:0.5, y:0.1124, width:0.4247, height:0.7253}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9227, y:0.8739, width:0.12, height:0.0381, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.3027, y:0.4748, width:0.3547, height:0.6767}; + 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}, + type: {name:'Type', text:'', x:0.0854, y:0.8481, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + ability0: {name:'Ability 1', text:'', x:0.1334, y:0.2896, width:0.35, height:0.1786, size:0.0305}, + ability1: {name:'Ability 2', text:'', x:0.1334, y:0, width:0.35, height:0.1786, size:0.0305}, + ability2: {name:'Ability 3', text:'', x:0.1334, y:0, width:0.35, height:0.1786, size:0.0305}, + ability3: {name:'Ability 4', text:'', x:0.1334, y:0, width:0.35, height:0, size:0.0305}, + reminder: {name:'Reminder Text', text:'{i}(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)', x:0.0867, y:0.1129, width:0.404, height:0.1772, size:0.03, shadowColor:'white'}, + pt: {name:'Power/Toughness', text:'', x:0.8267, y:1803/2100, width:0.0967, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'}, + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packSagaRegular.js b/js/frames/packSagaRegular.js index cd27d9f0..daf8327e 100644 --- a/js/frames/packSagaRegular.js +++ b/js/frames/packSagaRegular.js @@ -8,6 +8,7 @@ availableFrames = [ {name:'Red Frame', src:'/img/frames/saga/regular/sagaFrameR.png', masks:masks}, {name:'Green Frame', src:'/img/frames/saga/regular/sagaFrameG.png', masks:masks}, {name:'Multicolored Frame', src:'/img/frames/saga/regular/sagaFrameM.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/saga/regular/sagaFrameA.png', masks:masks}, {name:'Land Frame', src:'/img/frames/saga/regular/l.png', masks:masks}, {name:'Banner Pinstripe (Multicolored)', src:'/img/frames/saga/sagaMidStripe.png', bounds:{x:0.0727, y:0.3058, width:0.0087, height:0.4762}}, {name:'Holo Stamp', src:'/img/frames/saga/stamp.png', bounds:{x:0.438, y:0.912, width:0.124, height:0.0372}}