Fix leaderboard submission display issue: update frontend to correctly handle score vs points

This commit is contained in:
2026-01-17 21:22:34 +08:00
parent 45d6b1d9de
commit e52baf2555
5 changed files with 370 additions and 3 deletions

View File

@@ -380,7 +380,8 @@ class Leaderboard {
this.ctx.fillText(displayName, modalX + 140, y + 2)
// Score with formatting
var score = entry.score && entry.score.score ? entry.score.score : 0
// Score with formatting
var score = entry.score_value !== undefined ? entry.score_value : (entry.score && entry.score.score ? entry.score.score : 0)
this.ctx.fillStyle = rank <= 3 ? "#1a1a1a" : "#555555"
this.ctx.font = (rank <= 3 ? "bold " : "") + "20px " + (strings.font || "sans-serif")
this.ctx.textAlign = "right"