Skip to content

Feature - Improve Team leaderboard #3330

@Lako-Lako

Description

@Lako-Lako

Purpose

Currently the team leaderboard is neither sortable nor does clicking on the teams do anything. This PR allows sorting by "Owned", "Gold", "Max troops", "Launchers", "SAMs", "Warships" and "Cities". Additionally clicking on a team, now focuses the view on the largest member of each team.


Objectives

  • Add the arrow marking what is being sorted as seen in the normal leader board
  • Sort the lists
  • Add focus on player

Description

  • All changes in the src/client/graphics/layers/TeamStats.ts
  • Added a test at tests/client/graphics/layers/TeamStatsModal.test.ts
  • To get the sorting working, I added a new variable per unit as currently only the written form i.e. 1.5k where stored.

Lakoeris

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions