Add Universes Beyond legend crowns

Squashed commit of the following:

commit 28b7bf7e3bccb04abe8b43ed692c81258df835e3
Author: Josh birnholz <josh@birnholz.com>
Date:   Sat Jun 10 22:04:15 2023 -0400

    Update .gitignore

commit 522479888780fd473a33a38925de0f5c1b4cfb56
Author: Josh birnholz <josh@birnholz.com>
Date:   Sat Jun 10 22:02:01 2023 -0400

    Add UB legend crowns to saga group

commit 79087de9fc79ec59db0d519f707d760e9a29ffdc
Author: Josh birnholz <josh@birnholz.com>
Date:   Sat Jun 10 21:56:08 2023 -0400

    Remove bak files

commit e477ba875535751a7a013600a6522c5d894a1c33
Author: Klisz <kennercat@gmail.com>
Date:   Thu Jun 1 17:14:14 2023 -0600

    Add Universes Beyond legend crowns
This commit is contained in:
Josh birnholz
2023-06-10 22:09:27 -04:00
parent d88b60c76a
commit 2ec0941b39
26 changed files with 29 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
debug.log
CORS.json
*.bat
*.bak
dev/*
# dependencies

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

View File

@@ -829,10 +829,10 @@ async function autoUBFrame(colors, mana_cost, type_line, power) {
if (type_line.toLowerCase().includes('legendary')) {
if (properties.pinlineRight) {
frames.push(makeM15FrameByLetter(properties.pinlineRight, 'Crown', true));
frames.push(makeUBFrameByLetter(properties.pinlineRight, 'Crown', true));
}
frames.push(makeM15FrameByLetter(properties.pinline, "Crown", false));
frames.push(makeM15FrameByLetter(properties.pinline, "Crown Border Cover", false));
frames.push(makeUBFrameByLetter(properties.pinline, "Crown", false));
frames.push(makeUBFrameByLetter(properties.pinline, "Crown Border Cover", false));
}
if (properties.pinlineRight) {
frames.push(makeUBFrameByLetter(properties.pinlineRight, 'Stamp', true));
@@ -1561,7 +1561,7 @@ function makeUBFrameByLetter(letter, mask = false, maskToRightHalf = false) {
if (mask == "Crown") {
var frame = {
'name': frameName + ' Legend Crown',
'src': '/img/frames/m15/crowns/m15Crown' + letter + '.png',
'src': '/img/frames/m15/ub/crowns/m15Crown' + letter + '.png',
'masks': [],
'bounds': {
'height': 0.1667,

View File

@@ -70,6 +70,7 @@ const frameNames = new Map ([
['Universes Beyond', 'UB'],
['Universes Beyond (Full art)', 'UBFull'],
['Universes Beyond (Extended art)', 'UBExtendedArt'],
['Universes Beyond legend crowns', 'UBLegendCrowns'],
['Full Text', 'FullText'],
['Etched (Commander Precons)', 'Etched'],
['Etched (Nyx)', 'EtchedNyx'],

View File

@@ -3,6 +3,7 @@ loadFramePacks([
{name:'Universes Beyond Frames', value:'SagaUB'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrowns'},
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},
{name:'Inner Crowns', value:'M15InnerCrowns'},
{name:'Holo Stamps', value:'M15HoloStamps'},
{name:'Colored Borders', value:'M15Borders'},

View File

@@ -57,6 +57,7 @@ loadFramePacks([
{name:'Future Shifted', value:'FutureRegular'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrowns'},
{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'},
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
{name:'Inner Crowns', value:'M15InnerCrowns'},
{name:'Nicknames', value:'M15Nickname-2'},

View File

@@ -0,0 +1,21 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/crowns/m15MaskLegendCrown.png', name:'Crown Without Pinlines'}, {src:'/img/frames/m15/ub/crowns/m15MaskLegendCrownPinline.png', name:'Crown With Pinlines'}];
var bounds = {x:0.0274, y:0.0191, width:0.9454, height:0.1667};
//defines available frames
availableFrames = [
{name:'White Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownW.png', masks:masks, bounds:bounds, complementary:8},
{name:'Blue Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownU.png', masks:masks, bounds:bounds, complementary:8},
{name:'Black Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownB.png', masks:masks, bounds:bounds, complementary:8},
{name:'Red Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownR.png', masks:masks, bounds:bounds, complementary:8},
{name:'Green Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownG.png', masks:masks, bounds:bounds, complementary:8},
{name:'Multicolored Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownM.png', masks:masks, bounds:bounds, complementary:8},
{name:'Artifact Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownA.png', masks:masks, bounds:bounds, complementary:8},
{name:'Land Legend Crown', src:'/img/frames/m15/ub/crowns/m15CrownL.png', masks:masks, bounds:bounds, complementary:8},
{name:'Legend Crown Border Cover', src:'/img/black.png', bounds:{x:0.0394, y:0.0277, width:0.9214, height:0.0177}}
];
//disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = true;
//defines process for loading this version, if applicable
document.querySelector('#loadFrameVersion').onclick = null;
//loads available frames
loadFramePack();