1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-27 04:15:38 -05:00

Remove unnecessary text in leaderboard graph

This commit is contained in:
toast-ts 2024-04-17 10:55:42 +10:00
parent 1292fe26a6
commit 254ffeaf76

View File

@ -126,7 +126,7 @@ export default class CanvasBuilder {
this.ctx.fillText(type === 'leaderboard' ? '0 msgs' : '0', origin[0] + size[0] + textSize / 2, origin[1] + size[1] + (textSize / 3)); this.ctx.fillText(type === 'leaderboard' ? '0 msgs' : '0', origin[0] + size[0] + textSize / 2, origin[1] + size[1] + (textSize / 3));
// 30 day (minute for /mp players) // 30 day (minute for /mp players)
this.ctx.fillText(type === 'leaderboard' ? '30 days ago' : '30 mins ago', lastStart, origin[1] - (textSize / 2)); this.ctx.fillText(type === 'players' ? '30 mins ago' : '', lastStart, origin[1] - (textSize / 2));
// Time // Time
this.ctx.fillText('time ->', origin[0] + (textSize / 2), origin[1] + size[1] + (textSize)); this.ctx.fillText('time ->', origin[0] + (textSize / 2), origin[1] + size[1] + (textSize));