mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update creator.js
This commit is contained in:
@@ -670,7 +670,13 @@ function writeText(textObject, targetContext) {
|
|||||||
manaPlacementCounter ++;
|
manaPlacementCounter ++;
|
||||||
newLine = true;
|
newLine = true;
|
||||||
}
|
}
|
||||||
lineContext.drawImage(manaSymbol.image, manaSymbolX, manaSymbolY, manaSymbolWidth, manaSymbolHeight);
|
//fake shadow begins
|
||||||
|
var fakeShadow = lineCanvas.cloneNode();
|
||||||
|
var fakeShadowContext = fakeShadow.getContext('2d');
|
||||||
|
fakeShadowContext.clearRect(0, 0, fakeShadow.width, fakeShadow.height);
|
||||||
|
fakeShadowContext.drawImage(manaSymbol.image, manaSymbolX, manaSymbolY, manaSymbolWidth, manaSymbolHeight);
|
||||||
|
lineContext.drawImage(fakeShadow, 0, 0);
|
||||||
|
//fake shadow ends (thanks, safari)
|
||||||
currentX += manaSymbolWidth + manaSymbolSpacing * 2;
|
currentX += manaSymbolWidth + manaSymbolSpacing * 2;
|
||||||
} else {
|
} else {
|
||||||
wordToWrite = word;
|
wordToWrite = word;
|
||||||
|
Reference in New Issue
Block a user