companion

This commit is contained in:
Kyle
2020-04-24 13:51:37 -07:00
parent e12808ae45
commit c616bf130a
15 changed files with 68 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -173,6 +173,8 @@ class cardImage {
temporaryElement.onclick = function() { temporaryElement.onclick = function() {
if (document.getElementById('cardMasterElementEditor').classList.contains('hidden') && !deletingCardObject) { if (document.getElementById('cardMasterElementEditor').classList.contains('hidden') && !deletingCardObject) {
document.getElementById('cardMasterElementEditor').classList.remove('hidden') document.getElementById('cardMasterElementEditor').classList.remove('hidden')
} else {
deletingCardObject = false
} }
selectedCardMasterElement = parseInt(this.id.replace('uniqueNumber', '')) selectedCardMasterElement = parseInt(this.id.replace('uniqueNumber', ''))
var selectedObject = cardMasterList[selectedCardMasterElement] var selectedObject = cardMasterList[selectedCardMasterElement]
@@ -328,8 +330,6 @@ function deleteCardObject(event) {
} else { } else {
drawCardObjects() drawCardObjects()
} }
deletingCardObject = true deletingCardObject = true
document.getElementById('cardMasterElementEditor').classList.add('hidden') document.getElementById('cardMasterElementEditor').classList.add('hidden')
} }

View File

@@ -0,0 +1,14 @@
if (!loadedVersions.includes('m15Companion')) {
loadedVersions.push('m15Companion')
loadFrameImages([
['White Companion Legend Crown', 'data/images/m15/m15InnerCrownWCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Blue Companion Legend Crown', 'data/images/m15/m15InnerCrownUCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Black Companion Legend Crown', 'data/images/m15/m15InnerCrownBCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Red Companion Legend Crown', 'data/images/m15/m15InnerCrownRCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Green Companion Legend Crown', 'data/images/m15/m15InnerCrownGCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Multicolored Companion Legend Crown', 'data/images/m15/m15InnerCrownMCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Artifact Companion Legend Crown', 'data/images/m15/m15InnerCrownACompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']]
], 'frameClassM15Companion')
}
hideFrameImages('frameClassM15Companion')

View File

@@ -39,7 +39,7 @@ if (currentVersion != 'm15') {
bottomInfoUpdated() bottomInfoUpdated()
} }
loadFramePackOptions([['regular', 'Regular'], ['legendCrowns', 'Legend Crowns'], ['nickname', 'Nickname (Godzilla)'], ['nyx', 'Nyx'], ['invention', 'Kaladesh Invention'], ['floatingCrowns', 'Floating Crowns']]) loadFramePackOptions([['regular', 'Regular'], ['legendCrowns', 'Legend Crowns'], ['nickname', 'Nickname (Godzilla)'], ['companion', 'Companion'], ['nyx', 'Nyx'], ['invention', 'Kaladesh Invention'], ['floatingCrowns', 'Floating Crowns']])
function bottomInfoM15() { function bottomInfoM15() {
bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight) bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight)

View File

@@ -1,6 +1,7 @@
if (!loadedVersions.includes('m15PromoFloatingCrown')) { if (!loadedVersions.includes('m15FloatingCrowns')) {
loadedVersions.push("m15PromoFloatingCrown") loadedVersions.push("m15FloatingCrowns")
loadFrameImages([ loadFrameImages([
['Invention Legend Crown Cutout', 'data/images/black.png', 110/1500, 230/2100, 1280/1500, 30/2100, ['Full']],
['White Floating Legend Crown', 'data/images/m15/m15CrownFloatingW.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], ['White Floating Legend Crown', 'data/images/m15/m15CrownFloatingW.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
['Blue Floating Legend Crown', 'data/images/m15/m15CrownFloatingU.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], ['Blue Floating Legend Crown', 'data/images/m15/m15CrownFloatingU.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
['Black Floating Legend Crown', 'data/images/m15/m15CrownFloatingB.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], ['Black Floating Legend Crown', 'data/images/m15/m15CrownFloatingB.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
@@ -8,8 +9,9 @@ if (!loadedVersions.includes('m15PromoFloatingCrown')) {
['Green Floating Legend Crown', 'data/images/m15/m15CrownFloatingG.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], ['Green Floating Legend Crown', 'data/images/m15/m15CrownFloatingG.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
['Multicolored Floating Legend Crown', 'data/images/m15/m15CrownFloatingM.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], ['Multicolored Floating Legend Crown', 'data/images/m15/m15CrownFloatingM.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
['Artifact Floating Legend Crown', 'data/images/m15/m15CrownFloatingA.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], ['Artifact Floating Legend Crown', 'data/images/m15/m15CrownFloatingA.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
['Land Floating Legend Crown', 'data/images/m15/m15CrownFloatingA.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']] ['Land Floating Legend Crown', 'data/images/m15/m15CrownFloatingL.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']],
], 'frameClassM15PromoFloatingCrowns') ['Legend Crown Border Cover', 'data/images/black.png', 59/1500, 58/2100, 1384/1500, 37/2100, ['Full']]
], 'frameClassM15FloatingCrowns')
} }
hideFrameImages('frameClassM15PromoFloatingCrowns') hideFrameImages('frameClassM15FloatingCrowns')

View File

@@ -0,0 +1,21 @@
if (!loadedVersions.includes('m15InnerCrowns')) {
loadedVersions.push('m15InnerCrowns')
loadFrameImages([
['White Companion Legend Crown', 'data/images/m15/m15InnerCrownWCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Blue Companion Legend Crown', 'data/images/m15/m15InnerCrownUCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Black Companion Legend Crown', 'data/images/m15/m15InnerCrownBCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Red Companion Legend Crown', 'data/images/m15/m15InnerCrownRCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Green Companion Legend Crown', 'data/images/m15/m15InnerCrownGCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Multicolored Companion Legend Crown', 'data/images/m15/m15InnerCrownMCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Artifact Companion Legend Crown', 'data/images/m15/m15InnerCrownACompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['White Nyx Legend Crown', 'data/images/m15/m15InnerCrownWNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Blue Nyx Legend Crown', 'data/images/m15/m15InnerCrownUNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Black Nyx Legend Crown', 'data/images/m15/m15InnerCrownBNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Red Nyx Legend Crown', 'data/images/m15/m15InnerCrownRNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Green Nyx Legend Crown', 'data/images/m15/m15InnerCrownGNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Multicolored Nyx Legend Crown', 'data/images/m15/m15InnerCrownMNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Artifact Nyx Legend Crown', 'data/images/m15/m15InnerCrownANyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']]
], 'frameClassM15InnerCrowns')
}
hideFrameImages('frameClassM15InnerCrowns')

View File

@@ -39,4 +39,4 @@ if (currentVersion != 'm15Promo') {
bottomInfoUpdated() bottomInfoUpdated()
} }
loadFramePackOptions([['regular', 'Regular'], ['floatingCrowns', 'Floating Crowns'], ['nickname', 'Nickname (Godzilla)']]) loadFramePackOptions([['regular', 'Regular'], ['floatingCrowns', 'Floating Crowns'], ['nickname', 'Nickname (Godzilla)'], ['innerCrowns', 'Inner Crowns']])

View File

@@ -0,0 +1,21 @@
if (!loadedVersions.includes('m15InnerCrowns')) {
loadedVersions.push('m15InnerCrowns')
loadFrameImages([
['White Companion Legend Crown', 'data/images/m15/m15InnerCrownWCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Blue Companion Legend Crown', 'data/images/m15/m15InnerCrownUCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Black Companion Legend Crown', 'data/images/m15/m15InnerCrownBCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Red Companion Legend Crown', 'data/images/m15/m15InnerCrownRCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Green Companion Legend Crown', 'data/images/m15/m15InnerCrownGCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Multicolored Companion Legend Crown', 'data/images/m15/m15InnerCrownMCompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Artifact Companion Legend Crown', 'data/images/m15/m15InnerCrownACompanion.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['White Nyx Legend Crown', 'data/images/m15/m15InnerCrownWNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Blue Nyx Legend Crown', 'data/images/m15/m15InnerCrownUNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Black Nyx Legend Crown', 'data/images/m15/m15InnerCrownBNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Red Nyx Legend Crown', 'data/images/m15/m15InnerCrownRNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Green Nyx Legend Crown', 'data/images/m15/m15InnerCrownGNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Multicolored Nyx Legend Crown', 'data/images/m15/m15InnerCrownMNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']],
['Artifact Nyx Legend Crown', 'data/images/m15/m15InnerCrownANyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']]
], 'frameClassM15InnerCrowns')
}
hideFrameImages('frameClassM15InnerCrowns')

View File

@@ -38,7 +38,7 @@ if (currentVersion != 'm15Textless') {
bottomInfoUpdated() bottomInfoUpdated()
} }
loadFramePackOptions([['regular', 'Regular'], ['floatingCrowns', 'Floating Crowns']]) loadFramePackOptions([['regular', 'Regular'], ['floatingCrowns', 'Floating Crowns'], ['innerCrowns', 'Inner Crowns']])
function bottomInfoM15() { function bottomInfoM15() {
bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight) bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight)