fix(nds): remove all top baselines
This commit is contained in:
@@ -117,11 +117,11 @@ const drawTextWithShadow = (
|
||||
y: number,
|
||||
) => {
|
||||
ctx.fillStyle = "#a2a2aa";
|
||||
ctx.fillText(text, x + 1, y);
|
||||
ctx.fillText(text, x + 1, y + 1);
|
||||
ctx.fillText(text, x, y + 1);
|
||||
ctx.fillText(text, x + 1, y + 12);
|
||||
ctx.fillText(text, x + 1, y + 1 + 12);
|
||||
ctx.fillText(text, x, y + 1 + 12);
|
||||
ctx.fillStyle = "#515159";
|
||||
ctx.fillText(text, x, y);
|
||||
ctx.fillText(text, x, y + 12);
|
||||
};
|
||||
|
||||
onRender((ctx) => {
|
||||
@@ -135,7 +135,6 @@ onRender((ctx) => {
|
||||
// text
|
||||
assets.images.projects.bottomScreen.popupTextBackground.draw(ctx, 2, 146);
|
||||
ctx.font = "16px Pokemon DP Pro";
|
||||
ctx.textBaseline = "top";
|
||||
const displayedText = text.value.slice(
|
||||
0,
|
||||
Math.floor(textProgress.value * text.value.length),
|
||||
|
||||
@@ -12,12 +12,12 @@ const drawTextWithShadow = (
|
||||
y: number,
|
||||
) => {
|
||||
ctx.fillStyle = color === "white" ? "#505050" : "#a8b8b8";
|
||||
ctx.fillText(text, x + 1, y + 0);
|
||||
ctx.fillText(text, x + 1, y + 1);
|
||||
ctx.fillText(text, x + 0, y + 1);
|
||||
ctx.fillText(text, x + 1, y + 13 + 0);
|
||||
ctx.fillText(text, x + 1, y + 13 + 1);
|
||||
ctx.fillText(text, x + 0, y + 13 + 1);
|
||||
|
||||
ctx.fillStyle = color === "white" ? "#f8f8f8" : "#101820";
|
||||
ctx.fillText(text, x, y);
|
||||
ctx.fillText(text, x, y + 13);
|
||||
};
|
||||
|
||||
const drawTextWithShadow2Lines = (
|
||||
@@ -58,7 +58,6 @@ const drawTextWithShadow2Lines = (
|
||||
onRender((ctx) => {
|
||||
assets.images.projects.topScreen.background.draw(ctx, 0, 0);
|
||||
|
||||
ctx.textBaseline = "top";
|
||||
ctx.font = "16px Pokemon DP Pro";
|
||||
|
||||
const project = store.projects[store.currentProject];
|
||||
|
||||
Reference in New Issue
Block a user