Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player activity tracker: refactoring #768

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

modos189
Copy link
Contributor

I looked at what changes the Player Tracker add-on was making and updated the Player activity tracker code at some points. This was to use this add-on as an example to make it easier for other plugins to make changes to Player activity tracker. On the other hand, I made only those changes that will not be unnecessary in our code base.

What's done:

  1. The ago function has been moved to window.formatAgo and has more possibilities, tests for the function have been written
  2. Instead of polyLineByAgeEnl and polyLineByAgeRes the polyLineByPlayerAndAge is used, specifying the player's name.
  3. Added window.PLAYER_TRACKER_MAX_DISPLAY_EVENTS variable containing the maximum number of displayed actions
  4. Added window.plugin.playerTracker.getDrawnTracesByTeam function to refer to layers

These changes should not affect the plugin's functionality, but will simplify the development of third-party plugins that use Player activity tracker

Copy link

🤖 Pull request artifacts

file commit
IITC_Mobile-test.apk 78f3307
test-0.39.1.20241026.143026.zip 78f3307

See build on website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants