Add Scrolls of Middle-earth frame
BIN
img/frames/saga/ltr/b.png
Normal file
After Width: | Height: | Size: 5.9 MiB |
BIN
img/frames/saga/ltr/bThumb.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
img/frames/saga/ltr/g.png
Normal file
After Width: | Height: | Size: 5.9 MiB |
BIN
img/frames/saga/ltr/gThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/saga/ltr/grayStamp.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
img/frames/saga/ltr/grayStampThumb.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
img/frames/saga/ltr/m.png
Normal file
After Width: | Height: | Size: 6.1 MiB |
BIN
img/frames/saga/ltr/mThumb.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
img/frames/saga/ltr/maskNoOverlay.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
img/frames/saga/ltr/maskNoOverlayThumb.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/frames/saga/ltr/maskRightHalf.png
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
img/frames/saga/ltr/maskRightHalfThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/saga/ltr/multicolor-bar-overlay.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
img/frames/saga/ltr/multicolor-bar-overlayThumb.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
img/frames/saga/ltr/r.png
Normal file
After Width: | Height: | Size: 5.9 MiB |
BIN
img/frames/saga/ltr/rThumb.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
img/frames/saga/ltr/sagaMidStripe.png
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
img/frames/saga/ltr/sagaMidStripeThumb.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/frames/saga/ltr/stamp.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
img/frames/saga/ltr/stampThumb.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
img/frames/saga/ltr/u.png
Normal file
After Width: | Height: | Size: 6.0 MiB |
BIN
img/frames/saga/ltr/uThumb.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
img/frames/saga/ltr/w.png
Normal file
After Width: | Height: | Size: 5.7 MiB |
BIN
img/frames/saga/ltr/wThumb.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
img/frames/scroll/a.png
Normal file
After Width: | Height: | Size: 5.7 MiB |
BIN
img/frames/scroll/aThumb.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
img/frames/scroll/b.png
Normal file
After Width: | Height: | Size: 5.9 MiB |
BIN
img/frames/scroll/bThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/crowns/a.png
Normal file
After Width: | Height: | Size: 190 KiB |
BIN
img/frames/scroll/crowns/aThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/scroll/crowns/b.png
Normal file
After Width: | Height: | Size: 172 KiB |
BIN
img/frames/scroll/crowns/bThumb.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
img/frames/scroll/crowns/g.png
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
img/frames/scroll/crowns/gThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/scroll/crowns/l.png
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
img/frames/scroll/crowns/lThumb.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
img/frames/scroll/crowns/m.png
Normal file
After Width: | Height: | Size: 184 KiB |
BIN
img/frames/scroll/crowns/mThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/scroll/crowns/r.png
Normal file
After Width: | Height: | Size: 180 KiB |
BIN
img/frames/scroll/crowns/rThumb.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
img/frames/scroll/crowns/u.png
Normal file
After Width: | Height: | Size: 193 KiB |
BIN
img/frames/scroll/crowns/uThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/scroll/crowns/w.png
Normal file
After Width: | Height: | Size: 168 KiB |
BIN
img/frames/scroll/crowns/wThumb.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
img/frames/scroll/g.png
Normal file
After Width: | Height: | Size: 5.6 MiB |
BIN
img/frames/scroll/gThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/l.png
Normal file
After Width: | Height: | Size: 5.8 MiB |
BIN
img/frames/scroll/lThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/m.png
Normal file
After Width: | Height: | Size: 5.5 MiB |
BIN
img/frames/scroll/mThumb.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
img/frames/scroll/maskNoOverlay.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
img/frames/scroll/maskNoOverlayThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/scroll/maskRightHalf.png
Normal file
After Width: | Height: | Size: 152 KiB |
BIN
img/frames/scroll/maskRightHalfThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/scroll/multicolor-bar-overlay.png
Normal file
After Width: | Height: | Size: 828 KiB |
BIN
img/frames/scroll/multicolor-bar-overlayThumb.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
img/frames/scroll/pt/a.png
Normal file
After Width: | Height: | Size: 142 KiB |
BIN
img/frames/scroll/pt/aThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/pt/b.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
img/frames/scroll/pt/bThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/pt/g.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
img/frames/scroll/pt/gThumb.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
img/frames/scroll/pt/m.png
Normal file
After Width: | Height: | Size: 113 KiB |
BIN
img/frames/scroll/pt/mThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/pt/r.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
img/frames/scroll/pt/rThumb.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
img/frames/scroll/pt/u.png
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
img/frames/scroll/pt/uThumb.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
img/frames/scroll/pt/w.png
Normal file
After Width: | Height: | Size: 140 KiB |
BIN
img/frames/scroll/pt/wThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/r.png
Normal file
After Width: | Height: | Size: 5.8 MiB |
BIN
img/frames/scroll/rThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/stamps/a.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
img/frames/scroll/stamps/aThumb.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/scroll/stamps/b.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
img/frames/scroll/stamps/bThumb.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/scroll/stamps/g.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
img/frames/scroll/stamps/gThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/scroll/stamps/gray.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
img/frames/scroll/stamps/grayThumb.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
img/frames/scroll/stamps/l.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
img/frames/scroll/stamps/lThumb.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/scroll/stamps/m.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
img/frames/scroll/stamps/mThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/scroll/stamps/r.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
img/frames/scroll/stamps/rThumb.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/scroll/stamps/u.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
img/frames/scroll/stamps/uThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/scroll/stamps/w.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
img/frames/scroll/stamps/wThumb.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
img/frames/scroll/u.png
Normal file
After Width: | Height: | Size: 6.1 MiB |
BIN
img/frames/scroll/uThumb.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
img/frames/scroll/w.png
Normal file
After Width: | Height: | Size: 5.5 MiB |
BIN
img/frames/scroll/wThumb.png
Normal file
After Width: | Height: | Size: 28 KiB |
@@ -35,6 +35,7 @@ const frameNames = new Map ([
|
|||||||
['Colorshifted (Planar Chaos)', 'Colorshifted'],
|
['Colorshifted (Planar Chaos)', 'Colorshifted'],
|
||||||
['Brawl Legend Crowns', 'Brawl'],
|
['Brawl Legend Crowns', 'Brawl'],
|
||||||
//showcase
|
//showcase
|
||||||
|
['Scrolls of Middle-earth (LTR)', 'Scroll'],
|
||||||
['Enchanting Tales (WOT)', 'EnchantingTales'],
|
['Enchanting Tales (WOT)', 'EnchantingTales'],
|
||||||
['TARDIS (WHO)', 'TARDIS'],
|
['TARDIS (WHO)', 'TARDIS'],
|
||||||
['Ring (LTR)', 'Ring'],
|
['Ring (LTR)', 'Ring'],
|
||||||
@@ -112,6 +113,7 @@ const frameNames = new Map ([
|
|||||||
//saga
|
//saga
|
||||||
['Sagas', 'SagaRegular'],
|
['Sagas', 'SagaRegular'],
|
||||||
['Sagas (Universes Beyond)', 'SagaUB'],
|
['Sagas (Universes Beyond)', 'SagaUB'],
|
||||||
|
['Sagas (Scrolls of Middle-earth) (LTR)', 'SagaLTR'],
|
||||||
//dfc
|
//dfc
|
||||||
['Transform (Front)', 'M15TransformFront'],
|
['Transform (Front)', 'M15TransformFront'],
|
||||||
['Transform (Back)', 'M15TransformBack'],
|
['Transform (Back)', 'M15TransformBack'],
|
||||||
|
@@ -2,6 +2,8 @@ loadFramePacks([
|
|||||||
{name:'Regular Frames', value:'SagaRegular'},
|
{name:'Regular Frames', value:'SagaRegular'},
|
||||||
{name:'Universes Beyond Frames', value:'SagaUB'},
|
{name:'Universes Beyond Frames', value:'SagaUB'},
|
||||||
{name:'Nyx Frames', value:'SagaNyx'},
|
{name:'Nyx Frames', value:'SagaNyx'},
|
||||||
|
{name:'Showcase Frames', value:'disabled'},
|
||||||
|
{name:'Scrolls of Middle-earth (LTR)', value:'SagaLTR'},
|
||||||
{name:'Addons', value:'disabled'},
|
{name:'Addons', value:'disabled'},
|
||||||
{name:'Legend Crowns', value:'M15LegendCrowns'},
|
{name:'Legend Crowns', value:'M15LegendCrowns'},
|
||||||
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},
|
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
loadFramePacks([
|
loadFramePacks([
|
||||||
{name:'Set Showcase Frames (Chronological)', value:'disabled'},
|
{name:'Set Showcase Frames (Chronological)', value:'disabled'},
|
||||||
|
{name:'Scrolls of Middle-earth (LTR)', value:'Scroll'},
|
||||||
{name:'Enchanting Tales (WOT)', value:'EnchantingTales'},
|
{name:'Enchanting Tales (WOT)', value:'EnchantingTales'},
|
||||||
{name:'Eldraine Storybooks: Adventures (WOE)', value:'StorybookWOE'},
|
{name:'Eldraine Storybooks: Adventures (WOE)', value:'StorybookWOE'},
|
||||||
{name:'TARDIS (WHO)', value:'TARDIS'},
|
{name:'TARDIS (WHO)', value:'TARDIS'},
|
||||||
|
59
js/frames/packSagaLTR.js
Normal 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
@@ -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();
|
||||||
|
}
|