mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
update
This commit is contained in:
@@ -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)
|
||||
|
@@ -477,7 +477,11 @@
|
||||
• left → Text aligns to the left<br>
|
||||
• center → Text aligns to the center<br>
|
||||
• right → Text aligns to the right<br>
|
||||
• plane → Creates a large <img src="data/manaSymbols/56.png" style="height: 1em;"></img> and shifts the following text to the right. This is designed for planar cards.
|
||||
• upX → Shifts the following text X pixels up<br>
|
||||
• downX → Shifts the following text X pixels down<br>
|
||||
• leftX → Shifts the following text X pixels left<br>
|
||||
• rightX → Shifts the following text X pixels right<br>
|
||||
• plane → Creates a large <img src="data/manaSymbols/56.png" style="height: 1em; background-color: white;"></img> and shifts the following text to the right. This is designed for planar cards.
|
||||
</div>
|
||||
<div class="extras" id="extras-set">
|
||||
Every set in Magic: The Gathering has an associated 2-3 letter code. For example, Homelands is HM and Innistrad is ISD. This program uses the codes from <a href="http://gatherer.wizards.com" target="_blank">The Gatherer</a>, the official Magic card database. A handy list of all sets and their codes can be found on <a href="https://en.wikipedia.org/wiki/List_of_Magic:_The_Gathering_sets" target="_blank">Wikipedia</a>. These codes aren't caps sensitive.
|
||||
|
Reference in New Issue
Block a user