Add server-side ELO ratings

This commit is contained in:
hz
2026-07-11 02:05:43 -05:00
parent bdd32c9dac
commit c716b16c53
21 changed files with 688 additions and 47 deletions
+3 -3
View File
@@ -131,6 +131,7 @@ func _build_ui() -> void:
screens["profile"] = profile
ProfileService.profile_changed.connect(_refresh_header_stats)
QuestionBankService.ratings_changed.connect(_refresh_header_stats)
AuthState.auth_changed.connect(_refresh_header_stats)
_refresh_header_stats()
_build_app_menu()
@@ -148,9 +149,8 @@ func _refresh_header_stats() -> void:
if header_stats == null:
return
var profile := ProfileService.get_profile()
header_stats.text = "LV %d | %d XP | Streak %d" % [
profile.get("level", 1),
profile.get("xp", 0),
header_stats.text = "ELO %d | Streak %d" % [
QuestionBankService.overall_elo,
profile.get("current_streak", 0)
]
if user_label != null: