mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Update main.js
This commit is contained in:
@@ -561,7 +561,6 @@ function writeText(textObjectList, targetContext) {
|
|||||||
} else if (possibleCodeLower == 'loadtextx') {
|
} else if (possibleCodeLower == 'loadtextx') {
|
||||||
textX = savedTextX
|
textX = savedTextX
|
||||||
} else if (possibleCodeLower.includes('outline:')) {
|
} else if (possibleCodeLower.includes('outline:')) {
|
||||||
console.log(parseInt(possibleCodeLower.replace('outline:', '').split(',')[1]), possibleCodeLower.replace('outline:', '').split(',')[1], possibleCodeLower.replace('outline:', '').split(','))
|
|
||||||
if (parseInt(possibleCodeLower.replace('outline:', '').split(',')[1]) == 0) {
|
if (parseInt(possibleCodeLower.replace('outline:', '').split(',')[1]) == 0) {
|
||||||
outline = false
|
outline = false
|
||||||
} else {
|
} else {
|
||||||
@@ -836,7 +835,7 @@ function inputCardNameNumberTextImport(index) {
|
|||||||
if (importCardTextResponse.includes('"power":"')) {
|
if (importCardTextResponse.includes('"power":"')) {
|
||||||
importText(beforeAfter(importCardTextResponse, '"power":"', '",') + '/' + beforeAfter(importCardTextResponse, '"toughness":"', '",'), 'Power/Toughness')
|
importText(beforeAfter(importCardTextResponse, '"power":"', '",') + '/' + beforeAfter(importCardTextResponse, '"toughness":"', '",'), 'Power/Toughness')
|
||||||
} else {
|
} else {
|
||||||
importText('', 'Power Toughness')
|
importText('', 'Power/Toughness')
|
||||||
}
|
}
|
||||||
if (importCardTextResponse.includes('"loyalty":"') && currentVersion == 'planeswalker') {
|
if (importCardTextResponse.includes('"loyalty":"') && currentVersion == 'planeswalker') {
|
||||||
importText(beforeAfter(importCardTextResponse, '"loyalty":"', '",'), 'Loyalty')
|
importText(beforeAfter(importCardTextResponse, '"loyalty":"', '",'), 'Loyalty')
|
||||||
|
Reference in New Issue
Block a user