From 68b986ab4dad775e1cec76b2b6b45380ca110849 Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Sun, 10 Feb 2019 15:22:03 -0800
Subject: [PATCH] update
---
data/main.js | 8 ++++++++
index.html | 6 +++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/data/main.js b/data/main.js
index 2531dc0e..457ba965 100644
--- a/data/main.js
+++ b/data/main.js
@@ -760,6 +760,14 @@ function drawText(text, xCoord, yCoord) {
//This draws the large chaos symbol found on planar cards and permenantly shifts the text over
card.drawImage(manaSymbolImages[57], x, y + 6, 48, 42)
x += 58
+ } else if (megaSplit[0].toLowerCase().slice(0, 2) == "up") {
+ y -= parseInt(megaSplit[0].toLowerCase().slice(2, megaSplit[0].length))
+ } else if (megaSplit[0].toLowerCase().slice(0, 4) == "down") {
+ y += parseInt(megaSplit[0].toLowerCase().slice(4, megaSplit[0].length))
+ } else if (megaSplit[0].toLowerCase().slice(0, 4) == "left") {
+ x -= parseInt(megaSplit[0].toLowerCase().slice(4, megaSplit[0].length))
+ } else if (megaSplit[0].toLowerCase().slice(0, 5) == "right") {
+ x += parseInt(megaSplit[0].toLowerCase().slice(5, megaSplit[0].length))
} else {
//It's an image (mana symbol, tap, etc...)
card.drawImage(manaSymbolImages[manaSymbolCode.indexOf(megaSplit[0].toLowerCase())], x + textXShift + textSize * 0.054, y + textSize * 0.075 + parseInt(document.getElementById("inputSymbolDown").value) + textBaselineShift[0] * card.font.split("px")[0], textSize * 0.77, textSize * 0.77)
diff --git a/index.html b/index.html
index 40ea20ae..4d7a4b87 100644
--- a/index.html
+++ b/index.html
@@ -477,7 +477,11 @@
• left → Text aligns to the left
• center → Text aligns to the center
• right → Text aligns to the right
- • plane → Creates a large and shifts the following text to the right. This is designed for planar cards.
+ • upX → Shifts the following text X pixels up
+ • downX → Shifts the following text X pixels down
+ • leftX → Shifts the following text X pixels left
+ • rightX → Shifts the following text X pixels right
+ • plane → Creates a large and shifts the following text to the right. This is designed for planar cards.