41 Commits

Author SHA1 Message Date
Manuel Vögele e473fea121 Add defaults for swade game system to generic speed provider 2021-03-18 19:06:35 +01:00
Manuel Vögele 40dde08ddd Allow getTokenShape on gridless maps (fixes #44) 2021-03-18 07:41:30 +01:00
Manuel Vögele 2862643ba8 Add missing check for whether hex-size-support module is present (fixes #43) 2021-03-17 09:25:30 +01:00
Manuel Vögele 4f1dec3089 Support for difficult terrain with tokens larger than 1x1 2021-03-15 20:52:52 +01: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 378401b5bb Merge branch 'master' into develop 2021-03-10 11:55:22 +01:00
Manuel Vögele 0b71504da3 Fix regression introduced in 6e745820 that made colors flicker during measurement 2021-03-10 11:50:55 +01:00
Manuel Vögele 5a7f5531f2 When multiple colors overlap on one square draw the one representing the furthest range with the highest priority 2021-03-09 14:51:55 +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 384de1a1b5 Add support for difficult terrain via Terrain Ruler module (resolves #1) 2021-03-09 10:08:51 +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 544740b697 Pull current speed provider from game settings for non GM users (fixes #34) 2021-03-03 09:49:08 +01:00
Manuel Vögele d5fd5e0d04 Dash multiplier 0 now works again 2021-02-22 05:29:00 +01:00
Manuel Vögele 0fb8aecfdd Refer to additional API capabilities in the readme 2021-02-21 12:41:12 +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
Manuel Vögele b84cdfd7c1 Fix a bug that prevented the Speed Provider Settings Dialog from being shown if an unavailable Speed Provider is configured 2021-02-18 00:13:15 +01:00
Manuel Vögele 75d59171d6 New API, allwing color configuration (resolves #7) and Speed Provider Settings 2021-02-17 16:25:17 +01:00
Manuel Vögele fd5b439ec2 Use foundries builin function to fetch selected tokens 2021-02-16 16:04:47 +01:00
Grygon b29a687fff Add Lancer to systems.js (#21) 2021-02-11 18:36:46 +01:00
Manuel Vögele 6adb69829e Make compatible with Hex Token Size Support (resolves #12) 2021-02-11 09:06:54 +01:00
Manuel Vögele 94f5a49263 Cache canvas.controls.ruler into local variable for readability and performance 2021-02-11 00:27:11 +01:00
Manuel Vögele 2144a536ee Immediately show snapped/unsnapped measuring result when pressing/releasing shift 2021-02-08 19:02:09 +01:00
Manuel Vögele 2b66b43c55 Allow deleting of waypoints with the 'X' key (resolves #14) 2021-02-08 18:30:33 +01:00
Manuel Vögele 4bd1473310 Change ruler color on gridless maps to indecate different speeds (resolves #15) 2021-02-08 18:08:52 +01:00
Manuel Vögele 82685a1a2f Add setting to use a static color for the first speed instead of player color (resolves #10) 2021-02-08 16:27:11 +01:00
Manuel Vögele b671928ade Disable grid snapping while pressing shift (fixes #9) 2021-02-08 15:44:58 +01:00
Manuel Vögele 3d68e324f2 Apply ruler offset when determining destination after deleting a waypoint 2021-02-08 11:36:18 +01:00
Manuel Vögele c30ff10364 Remove defective un-snapping code 2021-02-08 11:27:37 +01:00
Manuel Vögele 8b69cb2f65 Allow swapping of right click and spacebar behavior (resolves #4) 2021-02-08 11:24:48 +01:00
Manuel Vögele 0647fec08f Import the wohle measure function instead of patching it (preparation for future changes) 2021-02-07 12:26:08 +01:00
Manuel Vögele 74c7d74c5a On gridless maps, always start measuring from the tokens center 2021-02-05 11:46:16 +01:00
Manuel Vögele f1542b7789 Start measuring immediately when the token is being dragged 2021-02-05 11:20:41 +01:00
Manuel Vögele 46edfa8ae6 Fix a bug where tokens wouldn't be moved to the corect end position on gridless maps 2021-02-05 00:54:09 +01:00
Manuel Vögele 4149f0e351 Fix #5: Handle installations where foundry.js has CRLF line endings gracefully 2021-02-03 00:52:59 +01:00
Manuel Vögele 5c43651925 Add option to show colors of PCs to anyone, regardless of permissions 2021-02-02 14:37:07 +01:00
Manuel Vögele 33cb9a2ba2 Only show range colors to players who have observer permissions for that token 2021-02-02 11:44:20 +01:00
Manuel Vögele c8a7352d5f Merge branch 'master' into develop 2021-02-02 11:04:18 +01:00
Manuel Vögele 633563b672 Add custom implementation of Ruler.moveToken
This allows us to move multiple tokens at a time
and allows the gm to move tokens through walls again
2021-02-02 10:52:15 +01:00
Manuel Vögele 135a3091b0 Don't show the drag ruler to players who cannot se the dragged token
As a side effect this will now also show the coloring to other players
2021-02-01 21:42:38 +01:00
Manuel Vögele 4b73cd93bf Initial commit 2021-02-01 15:34:42 +01:00