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
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
Description
Lakoeris