-
Notifications
You must be signed in to change notification settings - Fork 262
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
Extended getTokenByID to search other Maps #4296
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a function that checks only the current map as well, maybe getMapTokenByID() that only searches the current map and returns null if the token is not on the current map.
@ColdAnkles |
Yeah, issue number was a typo. token.isOnCurrentMap() as another option? |
…when getting null for tokens on other maps is desired.
…tTokenByID-searchMaps
Might be worth adding that as well. |
… for tokenID if not found on current Map.
Identify the Bug or Feature request
Closes #3069
Description of the Change
Extends the functionality of the JS MapTool.Tokens.getTokenByID(id) function to attempt a search of other maps if token with id not found on the current map.
Possible Drawbacks
Not great if token on the last map and there's a large quantity of maps.
Documentation Notes
Attempts to get token from current map, if not found, searches all maps for token, returning null if not found at all.
Release Notes
This change is