Manuel Vögele
ab1f5b4c9b
Restore rulerOffset for all uses except hex grids ( fixes #332 )
...
This restores the functinality of gridless, but it is not a proper fix. Most likely all the functionality in foundry_imports.js has to be re-imported at this point
2024-07-28 09:28:13 +02:00
Manuel Vögele
1974e6e4a3
Revert to pre-v12 maeasureDistances to restore gridless functionality
2024-07-28 09:04:41 +02:00
Manuel Vögele
6da3e65301
Fix some deprecation warnings
2024-07-27 23:14:40 +02:00
Manuel Vögele
18cf63895c
Remove v11 compatibility code
2024-07-27 22:03:48 +02:00
n0q
0e2ab35db7
fix hex calculations in v12
2024-07-27 21:55:29 +02:00
pkonshik
9af692566c
Apply changes for v11 compatibility ( #277 )
2023-06-11 13:17:36 +02:00
Manuel Vögele
a9c15d779b
v10 compat: Make Drag Ruler play nice with Foundry v10's hex grid and the new hex-size-support module
2022-10-15 16:00:38 +02:00
Manuel Vögele
01b9941c16
Export getRangesFromSpeedProvider
2022-10-15 10:33:32 +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
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
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
84c18a6221
Organzie imports
2022-01-03 00:44:16 +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
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
32b38d8efe
Make tokens snap to their speed ranges on gridless scenes ( resolves #71 )
2021-11-23 11:10:21 +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
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
Michael Clavell
e1265ad6fb
Add support for the Toggle Snap To Grid module ( #97 )
2021-07-30 10:16:27 +02:00
Manuel Vögele
7ba89e4229
Update code for Foundry 0.8.5
2021-05-22 21:57:59 +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
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
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
e8ab77a62e
Update active rulers when the movement history changes
2021-05-05 16:01:13 +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
1acc012d65
Cache the output of SpeedProvider.getRanges during a drag to increase speed provider performance
2021-04-29 12:40:17 +02:00
Manuel Vögele
70b166d844
Add a context menu entry that the gm can use to reset the movement history
2021-04-26 11:09:56 +02:00
Manuel Vögele
667259d5d6
If a token has no actor, use the user's color for highlighting grid spaces ( fixes #58 )
2021-04-19 11:22:13 +02:00
Manuel Vögele
b734257515
Check if all required dependencies are present and show an error if this is not the case
2021-04-14 16:37:46 +02:00
Manuel Vögele
ff5d46ebbe
Add a setting to disable the movement history
2021-04-14 16:10:11 +02:00
Manuel Vögele
5d93c61f0c
Merge branch 'master' into develop
2021-04-11 14:31:44 +02:00
Manuel Vögele
d2f2307e4d
Update the ruler before dropping the token to get a more precise target location if the token has been moved very quickly ( fixes #51 )
2021-04-11 14:24:23 +02:00
Manuel Vögele
35624a37aa
Add api endpoint to determine the distance that a token has moved already
2021-04-10 14:25:01 +02:00
Manuel Vögele
c66ec46aed
Track the path taken by tokens in combat and display it when reactivating DragRuler in the same turn
2021-04-08 09:35:04 +02:00
Manuel Vögele
305a6116bc
Refactor: Override ruler class instead of hooking each function individually
2021-03-31 17:19:12 +02:00
Manuel Vögele
c4d089e8ff
Always draw the ruler from the token's center for larger tokens (even on grids). Highlight all spaces occupied by larger tokens.
2021-03-15 20:17:09 +01:00
Manuel Vögele
862477c698
Add a setting that allows hiding the GM's drag ruler from non gm players ( resolves #23 )
2021-03-09 12:54:28 +01:00
Manuel Vögele
6e74582089
Stop patching _highlightMeasurement and import it instead to increase compatibility with other modules
2021-03-09 09:09:50 +01:00
Manuel Vögele
bb5fe94439
Allow speed providers to disable Drag Ruler on a per-token basis ( resolves #24 )
2021-02-21 12:13:14 +01:00
Manuel Vögele
8110a1b78b
Add setting migration
2021-02-18 00:38:55 +01:00