wasabee-project / Wasabee-IITC

ENL DrawTools and Op Management
Apache License 2.0
30 stars 21 forks source link

hook refinements: second pass #254

Closed le-jeu closed 3 years ago

le-jeu commented 3 years ago

This follows #250, reversing the logic caller/callee with the benefit of some factorization.

Event Description
wasabee:agentlocations when we should have/get new teammate locations
wasabee:crosslinks to run crosslinks
wasabee:crosslinks:done when crosslink is done
wasabee:defensivekeys when we should have new defensive keys
wasabee:fullsync on full sync
wasabee:login on login
wasabee:logout on logout/purge
wasabee:op:background on background map toggle
wasabee:op:change on operation (current) changes
wasabee:op:delete on operation deletion
wasabee:op:select when the user selects another operation
wasabee:op:showhide on operation visibility change (in ops list)
wasabee:pane:clear on dialog close (when a pane, used to clear and close the pane)
wasabee:pane:set on dialog open (when a pane, used to set wasabee pane content)
wasabee:portal:click on portal click (bypass IITC portalSelected hook)
wasabee:teams on teams update
wasabee:team:update on team member update
wasabee:ui:lang on lang change
wasabee:ui:skin on skin change

Additional feature:

cloudkucooland commented 3 years ago

can you add "wasabee:op:zone" for when the zone list or polygons change?

le-jeu commented 3 years ago

how and where would you use them ? wasabee:op:change covers all changes on the current op, including zones (it's basically fired on any .update (thus by hand after .store)