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
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
|||||||
debug.log
|
debug.log
|
||||||
CORS.json
|
CORS.json
|
||||||
*.bat
|
*.bat
|
||||||
|
*.bak
|
||||||
dev/*
|
dev/*
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
BIN
img/frames/m15/ub/crowns/m15CrownA.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownAThumb.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownB.png
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownBThumb.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownFloatingOutline.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownFloatingOutlineThumb.png
Normal file
After Width: | Height: | Size: 587 B |
BIN
img/frames/m15/ub/crowns/m15CrownG.png
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownGThumb.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownL.png
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownLThumb.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownM.png
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownMThumb.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownR.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownRThumb.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownU.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownUThumb.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownW.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
img/frames/m15/ub/crowns/m15CrownWThumb.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
img/frames/m15/ub/crowns/m15MaskLegendCrownPinline.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
img/frames/m15/ub/crowns/m15MaskLegendCrownPinlineThumb.png
Normal file
After Width: | Height: | Size: 849 B |
@@ -829,10 +829,10 @@ async function autoUBFrame(colors, mana_cost, type_line, power) {
|
|||||||
|
|
||||||
if (type_line.toLowerCase().includes('legendary')) {
|
if (type_line.toLowerCase().includes('legendary')) {
|
||||||
if (properties.pinlineRight) {
|
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(makeUBFrameByLetter(properties.pinline, "Crown", false));
|
||||||
frames.push(makeM15FrameByLetter(properties.pinline, "Crown Border Cover", false));
|
frames.push(makeUBFrameByLetter(properties.pinline, "Crown Border Cover", false));
|
||||||
}
|
}
|
||||||
if (properties.pinlineRight) {
|
if (properties.pinlineRight) {
|
||||||
frames.push(makeUBFrameByLetter(properties.pinlineRight, 'Stamp', true));
|
frames.push(makeUBFrameByLetter(properties.pinlineRight, 'Stamp', true));
|
||||||
@@ -1561,7 +1561,7 @@ function makeUBFrameByLetter(letter, mask = false, maskToRightHalf = false) {
|
|||||||
if (mask == "Crown") {
|
if (mask == "Crown") {
|
||||||
var frame = {
|
var frame = {
|
||||||
'name': frameName + ' Legend Crown',
|
'name': frameName + ' Legend Crown',
|
||||||
'src': '/img/frames/m15/crowns/m15Crown' + letter + '.png',
|
'src': '/img/frames/m15/ub/crowns/m15Crown' + letter + '.png',
|
||||||
'masks': [],
|
'masks': [],
|
||||||
'bounds': {
|
'bounds': {
|
||||||
'height': 0.1667,
|
'height': 0.1667,
|
||||||
|
@@ -70,6 +70,7 @@ const frameNames = new Map ([
|
|||||||
['Universes Beyond', 'UB'],
|
['Universes Beyond', 'UB'],
|
||||||
['Universes Beyond (Full art)', 'UBFull'],
|
['Universes Beyond (Full art)', 'UBFull'],
|
||||||
['Universes Beyond (Extended art)', 'UBExtendedArt'],
|
['Universes Beyond (Extended art)', 'UBExtendedArt'],
|
||||||
|
['Universes Beyond legend crowns', 'UBLegendCrowns'],
|
||||||
['Full Text', 'FullText'],
|
['Full Text', 'FullText'],
|
||||||
['Etched (Commander Precons)', 'Etched'],
|
['Etched (Commander Precons)', 'Etched'],
|
||||||
['Etched (Nyx)', 'EtchedNyx'],
|
['Etched (Nyx)', 'EtchedNyx'],
|
||||||
|
@@ -3,6 +3,7 @@ loadFramePacks([
|
|||||||
{name:'Universes Beyond Frames', value:'SagaUB'},
|
{name:'Universes Beyond Frames', value:'SagaUB'},
|
||||||
{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:'Inner Crowns', value:'M15InnerCrowns'},
|
{name:'Inner Crowns', value:'M15InnerCrowns'},
|
||||||
{name:'Holo Stamps', value:'M15HoloStamps'},
|
{name:'Holo Stamps', value:'M15HoloStamps'},
|
||||||
{name:'Colored Borders', value:'M15Borders'},
|
{name:'Colored Borders', value:'M15Borders'},
|
||||||
|
@@ -57,6 +57,7 @@ loadFramePacks([
|
|||||||
{name:'Future Shifted', value:'FutureRegular'},
|
{name:'Future Shifted', value:'FutureRegular'},
|
||||||
{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:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
|
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
|
||||||
{name:'Inner Crowns', value:'M15InnerCrowns'},
|
{name:'Inner Crowns', value:'M15InnerCrowns'},
|
||||||
{name:'Nicknames', value:'M15Nickname-2'},
|
{name:'Nicknames', value:'M15Nickname-2'},
|
||||||
|
21
js/frames/packUBLegendCrowns.js
Normal 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();
|