diff options
Diffstat (limited to 'scripts/cards/card.js')
-rw-r--r-- | scripts/cards/card.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/cards/card.js b/scripts/cards/card.js index 7246db3..17d8994 100644 --- a/scripts/cards/card.js +++ b/scripts/cards/card.js @@ -81,6 +81,16 @@ class Card { static generateObjectCard (data, el) { // Generate card areas. + if (typeof data.style == "object") { + for (let i in data.style) { + el.style.setProperty(i, data.style[i]); + } + } + + if(data.assetURL == null) { + data.assetURL = "./"; + } + for (let i of CardPos) { if (typeof data[i] == "object") |