fix bug with elements.text.tick

This commit is contained in:
redbirdly 2024-06-23 13:06:22 +08:00 committed by GitHub
parent c4030b14c9
commit 9f322a9c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ elements.text = {
textToPlace = prompt("Input Text\n(Previous element = Text's element)", textToPlace); textToPlace = prompt("Input Text\n(Previous element = Text's element)", textToPlace);
textElement = previousValidTextElement; textElement = previousValidTextElement;
}, },
tick: function() { tick: function(pixel) {
if (pixel.start == pixelTicks) { if (pixel.start == pixelTicks) {
deletePixel(pixel.x, pixel.y); deletePixel(pixel.x, pixel.y);
drawText(font, textToPlace, { drawText(font, textToPlace, {
@ -678,4 +678,4 @@ var font = {
"#", "#",
"#", "#",
], ],
}; };