Releases: caewok/fvtt-elevation-ruler
Fix the "elevation" in "elevation ruler"!
Improve path cleaning algorithm to remove multiple straight-line points. Closes issue #40.
Refactor measurement of distances and move distances to better account for 3d distance. Closes issue #41.
Remove animation easing for intermediate segments while keeping easing-in for the first segment and easing-out for the last segment.
Add CONFIG
settings to change the unicode symbol displayed when the ruler is over terrain (or tokens, if tokens count as difficult terrain). Thanks @Aedif for the Font Awesome code example!
CONFIG.elevationruler.SPEED.terrainSymbol
: You can use any text string here. Paste in a unicode symbol if you want a different symbol. For Font Awesome icons, use, e.g., "\uf0e7".CONFIG.elevationruler.SPEED.useFontAwesome
: Set to true to interpet theterrainSymbol
as FA unicode.
Update geometry lib to v0.2.15.
Breaking changes
The added methods Ruler.measureDistance
and Ruler.measureMoveDistance
were refactored and now take different parameters.
Full Changelog: 0.8.3...0.8.4
Movement choices and token avoidance
New features
- Add setting for pathfinder to avoid all tokens or hostile tokens. Closes issue #37.
- Add selector to Token HUD to choose between walk/fly/burrow movement types. Default is to automatically choose based on elevation. Closes issue #33.
- Add getter
Token.prototype.lastMoveDistance
that tracks the last token move. If combat is active, this returns 0 if the token has not yet moved this round. UseToken.prototype._lastMoveDistance
to find the actual last distance moved regardless of combat. - Add setting to round ruler measurements, for use with gridless scenes. Thanks @Larkinabout for the PR!
Bug fixes and other improvements
- Misc. fixes to pathfinding to reduce likelihood of it failing to find a path or finding an incorrect path.
- Fix for waypoint elevations not finite. Closes issue #38.
- Refactor of elevation handling to account for Token Ruler tokens versus primary ruler.
- Move settings related to speed properties to
CONFIG.elevationruler.SPEED
.
What's Changed
- Add Round to Multiple setting for Gridless by @Larkinabout in #39
New Contributors
- @Larkinabout made their first contribution in #39
Full Changelog: 0.8.2...0.8.3
Distance and Speed Highlighting Improvements
Improvements to calculating distance on a grid. Improvements to splitting ruler segments when highlighting based on token speed. Closes issue #35. Improvements to treating tokens as difficult terrain for purposes of token speed highlighting.
Added a "hiking boot" displaying token movement distance in the ruler when difficult terrain is encountered (tokens or from Terrain Mapper module).
Full Changelog: 0.8.1...0.8.2
Bug fixes to pathfinding
Fix toggling pathfinding between waypoints.
Various fixes to display of ruler for other users.
Fixes for display of distance calculations between waypoints.
Possible fix for issue #33 (undefined token.bounds
).
Full Changelog: 0.8.0...0.8.1
Pathfinding
Added pathfinding toggle. Pathfinding works on gridded (both hex and square) and gridless maps. Works when dragging tokens, if Token Ruler is enabled, or when using the Ruler control and you start at a token.
To benchmark pathfinding in a scene:
api = game.modules.get("elevationruler").api;
api.pathfinding.benchPathfinding();
Refactored movement highlighting to work better with pathfinding.
Full Changelog: 0.7.8...0.8.0
Token dragging origin/destination tweaks
Tokens as difficult terrain
Allow GM to move tokens using the ruler regardless of obstacle. Closes issue #27.
Cancel the ruler when canceling the drag. Closes issue #28.
Add setting to treat tokens as difficult terrain. Closes issue #29.
Force the ruler to use the center of the (dragged) token. Closes issue #30.
Fix error message re setting when using Levels. Closes issue #31.
Import file fix
Fix incorrect Ruler.js
import. Closes issue #26.
Unsnapping the Ruler
Fix for pause/unpause game not working due to conflict with token move using spacebar.
Add handling for unsnapping from the grid. If shift is held, unsnap ruler waypoints and destination. If measuring from a token, set the origin point of the ruler to the (possibly unsnapped) token center.
Fix incorrect case on Ruler.js. Closes issue #25.
Token Ruler and Token Speed Highlighting
Add option to enable a Token Ruler when dragging tokens.
Add option to use a token speed attribute to highlight in differing colors when using the ruler (from a token) or dragging tokens.