Add Scrolls of Middle-earth frame

This commit is contained in:
Josh birnholz
2023-10-26 20:36:24 -04:00
parent ac1ba1941a
commit 78035753fa
99 changed files with 143 additions and 0 deletions

BIN
img/frames/saga/ltr/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
img/frames/saga/ltr/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/saga/ltr/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/saga/ltr/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
img/frames/saga/ltr/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
img/frames/saga/ltr/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
img/frames/scroll/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
img/frames/scroll/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
img/frames/scroll/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/scroll/pt/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/pt/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/pt/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/frames/scroll/pt/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/pt/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/frames/scroll/pt/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
img/frames/scroll/pt/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
img/frames/scroll/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
img/frames/scroll/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -35,6 +35,7 @@ const frameNames = new Map ([
['Colorshifted (Planar Chaos)', 'Colorshifted'],
['Brawl Legend Crowns', 'Brawl'],
//showcase
['Scrolls of Middle-earth (LTR)', 'Scroll'],
['Enchanting Tales (WOT)', 'EnchantingTales'],
['TARDIS (WHO)', 'TARDIS'],
['Ring (LTR)', 'Ring'],
@@ -112,6 +113,7 @@ const frameNames = new Map ([
//saga
['Sagas', 'SagaRegular'],
['Sagas (Universes Beyond)', 'SagaUB'],
['Sagas (Scrolls of Middle-earth) (LTR)', 'SagaLTR'],
//dfc
['Transform (Front)', 'M15TransformFront'],
['Transform (Back)', 'M15TransformBack'],

View File

@@ -2,6 +2,8 @@ loadFramePacks([
{name:'Regular Frames', value:'SagaRegular'},
{name:'Universes Beyond Frames', value:'SagaUB'},
{name:'Nyx Frames', value:'SagaNyx'},
{name:'Showcase Frames', value:'disabled'},
{name:'Scrolls of Middle-earth (LTR)', value:'SagaLTR'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrowns'},
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},

View File

@@ -1,5 +1,6 @@
loadFramePacks([
{name:'Set Showcase Frames (Chronological)', value:'disabled'},
{name:'Scrolls of Middle-earth (LTR)', value:'Scroll'},
{name:'Enchanting Tales (WOT)', value:'EnchantingTales'},
{name:'Eldraine Storybooks: Adventures (WOE)', value:'StorybookWOE'},
{name:'TARDIS (WHO)', value:'TARDIS'},

59
js/frames/packSagaLTR.js Normal file
View File

@@ -0,0 +1,59 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/saga/ltr/maskNoOverlay.png', name:'No Art Overlay'}];
var stampBounds = {x:878/2010, y:2560/2814, width:256/2010, height:116/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/saga/ltr/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/saga/ltr/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/saga/ltr/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/saga/ltr/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/saga/ltr/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/saga/ltr/m.png', masks:masks},
// {name:'Blue Frame', src:'/img/frames/saga/regular/sagaFrameU.png', masks:masks},
// {name:'Black Frame', src:'/img/frames/saga/regular/sagaFrameB.png', masks:masks},
// {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:'Land Frame', src:'/img/frames/saga/regular/l.png', masks:masks},
{name:'Banner Pinstripe (Multicolored)', src:'/img/frames/saga//ltr/sagaMidStripe.png', bounds:{x:136/2010, y:761/2814, width:41/2010, height:1435/2814}},
{name:'Multicolored Bars', src:'/img/frames/saga/ltr/multicolor-bar-overlay.png', mode:'color'},
{name:'Gold Holo Stamp', src:'/img/frames/saga/ltr/stamp.png', bounds:stampBounds},
{name:'Gray Holo Stamp', src:'/img/frames/saga/ltr/grayStamp.png', bounds:stampBounds}
];
//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();
replacementMasks = {'Right Half':'/img/frames/saga/ltr/maskRightHalf.png'};
//sets card version
card.version = 'sagaLTR';
card.onload = '/js/frames/versionSaga.js';
loadScript('/js/frames/versionSaga.js');
//art bounds
card.artBounds = {x:997/2010, y:313/2814, width:857/2010, height:2046/2814};
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'}
});
}
//loads available frames
loadFramePack();

79
js/frames/packScroll.js Normal file
View File

@@ -0,0 +1,79 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/scroll/maskNoOverlay.png', name:'No Art Overlay'}];
// var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
var crownBounds = {x:49/2010, y:43/2814, width:1909/2010, height:70/2814};
var stampBounds = {x:834/2010, y:2518/2814, width:349/2010, height:181/2814};
var ptBounds = {x:1492/2010, y:2422/2814, width:435/2010, height:266/2814};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/scroll/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/scroll/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/scroll/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/scroll/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/scroll/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/scroll/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/scroll/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/scroll/l.png', masks:masks},
{name:'Multicolored Bars', src:'/img/frames/scroll/multicolor-bar-overlay.png', mode:'color'},
{name:'White Power/Toughness', src:'/img/frames/scroll/pt/w.png', bounds:ptBounds},
{name:'Blue Power/Toughness', src:'/img/frames/scroll/pt/u.png', bounds:ptBounds},
{name:'Black Power/Toughness', src:'/img/frames/scroll/pt/b.png', bounds:ptBounds},
{name:'Red Power/Toughness', src:'/img/frames/scroll/pt/r.png', bounds:ptBounds},
{name:'Green Power/Toughness', src:'/img/frames/scroll/pt/g.png', bounds:ptBounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/scroll/pt/m.png', bounds:ptBounds},
{name:'Artifact Power/Toughness', src:'/img/frames/scroll/pt/a.png', bounds:ptBounds},
{name:'White Legendary Crown', src:'/img/frames/scroll/crowns/w.png', bounds:crownBounds},
{name:'Blue Legendary Crown', src:'/img/frames/scroll/crowns/u.png', bounds:crownBounds},
{name:'Black Legendary Crown', src:'/img/frames/scroll/crowns/b.png', bounds:crownBounds},
{name:'Red Legendary Crown', src:'/img/frames/scroll/crowns/r.png', bounds:crownBounds},
{name:'Green Legendary Crown', src:'/img/frames/scroll/crowns/g.png', bounds:crownBounds},
{name:'Multicolored Legendary Crown', src:'/img/frames/scroll/crowns/m.png', bounds:crownBounds},
{name:'Artifact Legendary Crown', src:'/img/frames/scroll/crowns/a.png', bounds:crownBounds},
{name:'Land Legendary Crown', src:'/img/frames/scroll/crowns/l.png', bounds:crownBounds},
{name:'White Holo Stamp', src:'/img/frames/scroll/stamps/w.png', bounds:stampBounds},
{name:'Blue Holo Stamp', src:'/img/frames/scroll/stamps/u.png', bounds:stampBounds},
{name:'Black Holo Stamp', src:'/img/frames/scroll/stamps/b.png', bounds:stampBounds},
{name:'Red Holo Stamp', src:'/img/frames/scroll/stamps/r.png', bounds:stampBounds},
{name:'Green Holo Stamp', src:'/img/frames/scroll/stamps/g.png', bounds:stampBounds},
{name:'Multicolored Holo Stamp', src:'/img/frames/scroll/stamps/m.png', bounds:stampBounds},
{name:'Artifact Holo Stamp', src:'/img/frames/scroll/stamps/a.png', bounds:stampBounds},
{name:'Land Holo Stamp', src:'/img/frames/scroll/stamps/l.png', bounds:stampBounds},
{name:'Gray Stamp', src:'/img/frames/scroll/stamps/gray.png', bounds:stampBounds}
];
//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();
replacementMasks = {'Right Half':'/img/frames/scroll/maskRightHalf.png'};
//sets card version
card.version = 'scroll';
//art bounds
card.artBounds = {x:150/2010, y:311/2814, width:1711/2010, height:1252/2814};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.9213, y:0.5910, 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:'', 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.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324},
rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362},
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();
//Only for the main version as the webpage loads:
if (!card.text) {
document.querySelector('#loadFrameVersion').click();
}