mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
toggle star/dot on collector's info
This commit is contained in:
@@ -1089,6 +1089,18 @@ function artistEdited(value) {
|
||||
document.querySelector('#info-artist').value = value;
|
||||
bottomInfoEdited();
|
||||
}
|
||||
function toggleStarDot() {
|
||||
for (var key of Object.keys(card.bottomInfo)) {
|
||||
var text = card.bottomInfo[key].text
|
||||
if (text.includes('*')) {
|
||||
card.bottomInfo[key].text = text.replace('*', ' \u2022 ');
|
||||
} else {
|
||||
card.bottomInfo[key].text = text.replace(' \u2022 ', '*');
|
||||
}
|
||||
// console.log(textObject[1].text)
|
||||
}
|
||||
bottomInfoEdited();
|
||||
}
|
||||
//DRAWING THE CARD (putting it all together)
|
||||
function drawCard() {
|
||||
cardContext.globalCompositeOperation = 'source-over';
|
Reference in New Issue
Block a user