mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
ffs
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class AchievementCommand extends Command {
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.font = '17px Minecraftia';
|
||||
ctx.fillStyle = '#ffff00';
|
||||
ctx.fillText('Achievement Get!', 60, 37);
|
||||
ctx.fillText('Achievement Get!', 60, 40);
|
||||
let shorten;
|
||||
if (ctx.measureText(text).width > 230) shorten = true;
|
||||
while (ctx.measureText(text).width > 230) text = text.substr(0, text.length - 1);
|
||||
|
||||
Reference in New Issue
Block a user