Manuel Vögele
46c504341c
Remove getCostForStep SpedProvider function in favor or the Enhanced Terrain Layer API
2022-10-13 08:18:59 +02:00
Manuel Vögele
ff9b187d90
v10 compat: Use the new way of checking a wall collision
2022-10-13 08:07:08 +02:00
Manuel Vögele
7a00d6fcc2
Stop pathfinding if the measurement is canceled mid-pathfinding
2022-10-04 21:32:26 +02:00
Manuel Vögele
4957188630
If a previous pathfinding job is done, reset it to undefined
2022-10-04 10:25:55 +02:00
Manuel Vögele
944ff96a26
Add comment about identical an identical function in another module
2022-10-03 10:51:09 +02:00
Manuel Vögele
58565b7011
v10 compat: Update to new token animation name
2022-10-01 07:56:20 +02:00
Manuel Vögele
25fc6258e7
Cancel running pathfinding jobs before scheduling a new one
2022-09-30 22:47:51 +02:00
Manuel Vögele
ac00aac85b
Gracefully handle situations where no path exists
2022-09-30 22:36:48 +02:00
Manuel Vögele
c43b0bfd64
Rename js/ to src/ since the rust component is now gone
2022-09-30 22:04:41 +02:00
Manuel Vögele
fb702cd850
Add support for gridless pathfinding
2022-02-15 17:56:08 +01:00
Manuel Vögele
58946096a6
Remove debugging output
2022-02-12 18:25:50 +01:00
Manuel Vögele
f59b0f9d2d
When changing the measurement mode via a keybinding send the updated ruler state to other players immediately ( fixes #152 )
2022-02-09 10:51:19 +01:00
Manuel Vögele
443cfd4317
Don't apply snapping to rulers received from other players ( fixes #150 )
2022-02-09 10:41:01 +01:00
Manuel Vögele
fb3665d758
If no measurement has been performed yet before dropping the token, schedule a measurement on drop ( fixes #153 )
2022-02-09 10:30:17 +01:00
Manuel Vögele
96cb690431
Use foundries new, improved way of wainting for animations when moving tokens ( fixes #156 )
2022-02-09 08:57:30 +01:00
Manuel Vögele
56e15be4ca
Don't perform pathfinding on other player's rulers
2022-02-03 17:59:35 +01:00
Manuel Vögele
1509307313
Show the setting for automatic pathfinding to players if they are allowed to use pathfinding
2022-02-03 17:59:09 +01:00
Manuel Vögele
68885385ea
Formatting fix
2022-02-03 17:42:35 +01:00
Manuel Vögele
a252da620a
Always allow the GM to use pathfinding
2022-02-01 11:33:33 +01:00
Johannes Loher
41c8979925
Add support for Dungeonslayers 4 ( #146 )
2022-02-01 10:32:54 +01:00
Manuel Vögele
39f9204fa7
Destroy labels that are no longer used
2022-02-01 02:58:55 +01:00
Manuel Vögele
7ac1c828b6
Perform pathfinding on grid-corner to grid-corner basis for tokens with size divisible by two ( fixes #144 )
2022-01-30 10:51:58 +01:00
Manuel Vögele
1972498b05
Avoid unnecessary diagonal calculation on hex grids
2022-01-30 10:16:19 +01:00
Manuel Vögele
d467fe5bcf
Add pathfinidng support for square and hex grids
2022-01-30 00:06:48 +01:00
Manuel Vögele
fa62e1d9c4
Resetting the token drag vision moved from token drop to token cancel in foundry 9.245
2022-01-27 12:47:39 +01:00
Manuel Vögele
34cead5cba
Clean up vision of clones when dropping a token ( fixes #140 )
2022-01-17 13:42:48 +01:00
Manuel Vögele
eeb6db76a6
Measure the full path to determine highlight color ( fixes #142 )
2022-01-17 12:50:05 +01:00
Manuel Vögele
1b3f563c4e
Keybindings no longer break if no scene is active ( fixes #113 )
2022-01-07 15:10:17 +01:00
Manuel Vögele
84c18a6221
Organzie imports
2022-01-03 00:44:16 +01:00
Manuel Vögele
f918e148fe
Add support for difficult terrain measurements on euclidean gridded scenes ( resolves #134 )
2022-01-03 00:23:35 +01:00
Manuel Vögele
52d77ba0a4
Code changes for v9 compatibility (moves keybindings into the new foundry API)
2022-01-02 18:32:30 +01:00
Manuel Vögele
b06169f149
Remove migration from unnamed version
2022-01-02 18:32:00 +01:00
Manuel Vögele
c914eb23ae
Port to libwrapper
2022-01-02 18:32:00 +01:00
Manuel Vögele
c8a7c73ace
Immediately override the Ruler after extension to increase interoperability with other modules
2022-01-02 18:32:00 +01:00
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