Centering
This commit is contained in:
parent
36064a2cdc
commit
96acd4a8c5
1 changed files with 4 additions and 4 deletions
|
@ -172,14 +172,14 @@ class CardCreator {
|
||||||
const mountsMeasure = ctx.measureText(`${mountsPct}%`);
|
const mountsMeasure = ctx.measureText(`${mountsPct}%`);
|
||||||
const minionsMeasure = ctx.measureText(`${minionsPct}%`);
|
const minionsMeasure = ctx.measureText(`${minionsPct}%`);
|
||||||
|
|
||||||
ctx.fillText(`${mountsPct}%`, 480, 162);
|
ctx.fillText(`${mountsPct}%`, 480, 163);
|
||||||
ctx.fillText(`${minionsPct}%`, 685, 162);
|
ctx.fillText(`${minionsPct}%`, 685, 163);
|
||||||
|
|
||||||
ctx.fillStyle = grey;
|
ctx.fillStyle = grey;
|
||||||
ctx.font = small;
|
ctx.font = small;
|
||||||
|
|
||||||
ctx.fillText("Mounts", 480 + mountsMeasure.width + 5, 162);
|
ctx.fillText("Mounts", 480 + mountsMeasure.width + 5, 163);
|
||||||
ctx.fillText("Minions", 685 + minionsMeasure.width + 5, 162);
|
ctx.fillText("Minions", 685 + minionsMeasure.width + 5, 163);
|
||||||
|
|
||||||
ctx.drawImage(this.imgMount, 620, 140, 32, 32);
|
ctx.drawImage(this.imgMount, 620, 140, 32, 32);
|
||||||
ctx.drawImage(this.imgMinion, 834, 140, 19, 32);
|
ctx.drawImage(this.imgMinion, 834, 140, 19, 32);
|
||||||
|
|
Loading…
Reference in a new issue