Manuel Vögele
1c8ce20a45
Move fallback to default color to a location where it's accessible ( fixes #137 )
2021-12-28 16:17:52 +01:00
Manuel Vögele
752b8375ab
Non-square tokens are now fully supported on square grids ( fixes #116 )
2021-11-24 09:14:27 +01:00
Manuel Vögele
32b38d8efe
Make tokens snap to their speed ranges on gridless scenes ( resolves #71 )
2021-11-23 11:10:21 +01:00
Manuel Vögele
c3a62e3646
Only switch to the next color once the distance is 0.01 above the allowed distance
...
The goal of this is to reduce color flickering noise due to floating number errors
2021-11-21 22:55:02 +01:00
Manuel Vögele
39f7bab4b6
Pass enableTerrainRuler option to all measureDistances calls
...
This fixes a regression introduced with e1265ad6fb
2021-11-21 20:58:18 +01:00
Manuel Vögele
a3be4ceb03
Remove support for TerrainLayer (Enhanced Terrain Layer stays supported)
2021-11-21 16:52:55 +01:00
Manuel Vögele
b275e777db
Ignore space key presses if there is no active canvas ( fixes #123 )
2021-11-21 15:13:45 +01:00
Manuel Vögele
035cfb8969
Add API function to receive the color for a given distance and token
2021-11-17 12:16:36 +01:00
Argonius-Angelus
24f1e78092
Updated getFlag behaviour ( #114 )
...
Updated getFlag behaviour to use Document#getFlag rather than the depreciated PlaceableObject#getFlag. Due to the min core version being marked as 0.8.5, this won't cause a 0.7 compatability issue.
2021-09-15 07:48:00 +02:00
Joe
232eca74de
Update lancer settings to system v1.0 ( #110 )
2021-09-06 09:42:59 +02:00
Manuel Vögele
a91c3c1b8c
setSnapParameterOnOptions was still using the old parameters here (fixes #102 )
2021-08-03 10:17:13 +02:00
Manuel Vögele
63b13cbb34
Abort the drag when pressing ESC ( resolves #73 )
2021-08-02 15:51:12 +02:00
Manuel Vögele
f1a153a2eb
Only execute "toLowerCase" once
2021-08-02 15:47:10 +02:00
Manuel Vögele
59c12d017b
When Ctrl+Z undoes a movement, remove that movement form the movement history as well ( resolves #64 )
2021-08-02 15:43:22 +02:00
Manuel Vögele
9552c25e6e
Add a setting that disables Drag Ruler by default and only activates it once the button to add a waypoint is being pressed
2021-08-02 15:23:49 +02:00
Manuel Vögele
461e1d0818
Cancel scheudled measurements then the ruler is being cleared
2021-07-30 12:40:32 +02:00
Michael Clavell
e1265ad6fb
Add support for the Toggle Snap To Grid module ( #97 )
2021-07-30 10:16:27 +02:00
Manuel Vögele
b8b97ac27a
Update generic speed provider default for swade ( resolves #93 )
2021-07-08 22:01:29 +02:00
José E. Lozano
530a16ca5d
CoC support ( #92 )
2021-07-08 17:27:34 +02:00
Manuel Vögele
01d01f9887
Movement speeds can be floats ( fixes #85 )
2021-06-22 23:14:53 +02:00
Manuel Vögele
3897577756
Allow the "Monk's Active Tile Triggers" module to interrupt a token movement early
2021-06-18 13:37:26 +02:00
irbian
5c29f401d6
Support D&D 3.5 ( #76 )
2021-05-27 01:09:12 +02:00
Manuel Vögele
1328d52f94
Send the info whether the dragged entity is a token or a template to the other players (fixes a snapping issue in other players clients)
2021-05-26 16:17:23 +02:00
Manuel Vögele
7ba89e4229
Update code for Foundry 0.8.5
2021-05-22 21:57:59 +02:00
Manuel Vögele
4d2e4b7715
Calculate the correct snappig for measured templates when placing a waypoint
2021-05-21 14:41:33 +02:00
Manuel Vögele
3cbe41e2be
If a measurement is being skipped because of the ruler's rate limiting, schedule the measurement for later to ensure the ruler sticks to the token
2021-05-21 14:38:54 +02:00
Manuel Vögele
7cee1e7af0
Rename a function call that was forgotten during the the renaming from Token to Entity ( fixes #74 )
2021-05-18 22:25:19 +02:00
Manuel Vögele
acd2e74064
Implement measurement template support ( resolves #13 )
2021-05-18 14:11:24 +02:00
Manuel Vögele
fd81833583
Rename Ruler.draggedToken to Ruler.draggedEntity in preparation of measurement template suppport
2021-05-18 13:03:42 +02:00
Manuel Vögele
a413d44795
Don't re-measure when the shift key is being pressed while a token is following the currently active ruler
2021-05-18 13:03:04 +02:00
Manuel Vögele
e63ee1988d
Deprecate the old (prior to 1.3.0) Drag Ruler API
2021-05-18 12:57:55 +02:00
Manuel Vögele
4aab6eec95
Improve the positioning of labels aroud the ruler graphic
2021-05-18 12:57:51 +02:00
Manuel Vögele
38b7df0248
Don't set Token._noAnimate. It has no effect and will be removed in future foundry versions
...
https://gitlab.com/foundrynet/foundryvtt/-/issues/5094
2021-05-18 07:23:56 +02:00
Manuel Vögele
78c96f9059
Merge branch 'master' into develop
2021-05-16 18:43:59 +02:00
Manuel Vögele
9f70e5bc27
If not token is selected, use the dragged token as selected token ( fixes #70 )
2021-05-15 20:04:22 +02:00
Manuel Vögele
d2876671cf
Add default values for Starfinder to the Generic Speed Provider
2021-05-12 16:20:05 +02:00
Manuel Vögele
286aaf7ada
Properly store terrain ruler's state in the movement history
2021-05-11 19:01:51 +02:00
Manuel Vögele
85e167af45
Allow difficult terrain measurements on girdless maps
2021-05-11 18:21:39 +02:00
Manuel Vögele
1242035744
Catch all errors thrown by a Speed Provider's getCostForStep function
2021-05-10 09:11:29 +02:00
Manuel Vögele
49542a68e5
Simplify foundry fixes
2021-05-06 09:00:50 +02:00
Manuel Vögele
e8ab77a62e
Update active rulers when the movement history changes
2021-05-05 16:01:13 +02:00
Manuel Vögele
7bed5abd0a
Add default settings for shadowrun 5e
2021-05-03 19:39:22 +02:00
Manuel Vögele
891bb1b4d8
undefined cannot be transmitted via json, so we use null to reset the movement history instead
2021-05-03 10:52:57 +02:00
Manuel Vögele
39a0787c79
Add documentation about what needs to be awaited in SpeedProvider.onMovementHistoryUpdate
2021-04-30 10:26:37 +02:00
Manuel Vögele
3be898e49c
First move the token, then store it's path. This ensures that getMovedDistance always returns a valid result.
2021-04-30 09:53:53 +02:00
Manuel Vögele
817662bf30
Send a proper token to onMovementHistoryUpdate
2021-04-30 09:51:05 +02:00
Manuel Vögele
56527ccf75
Add a hook that's called when the movement history is updated to the API
2021-04-30 00:10:45 +02:00
Manuel Vögele
6bf8083f7a
Add a function for resetting the movement history to the public api
2021-04-30 00:00:15 +02:00
Manuel Vögele
afbe5f9473
Don't animate tokens when they are dropped with the alt key being pressed ( resolves #3 )
2021-04-29 13:18:35 +02:00
Manuel Vögele
1acc012d65
Cache the output of SpeedProvider.getRanges during a drag to increase speed provider performance
2021-04-29 12:40:17 +02:00