manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
40 stars 55 forks source link

Drag ruler not showing color coding with waypoints. #308

Open Lockbox313 opened 11 months ago

Lockbox313 commented 11 months ago

When using the Drag Ruler module with RuneQuest system the color coding from movement green/yellow/red is not working when waypoints are used. Does this have something to with Drag Ruler's API no longer supporting the function getCostForStep as noted in the release notes.

manuelVo commented 11 months ago

That function is only relevant when both Enhanced Terrain Layer and Terrain Ruler are installed as well. As neither of those modules has been ported to v11, it's unlikely that the change you mentioned will have any effect nowadays. (Unless you're using an older version of Foundry).

When the coloring breaks, take a look at the JavaScript console (it opens with F12). Are there any errors in there?

Lockbox313 commented 11 months ago

Nothing in the console. image

manuelVo commented 9 months ago

I notice that the ruler doesn't start form the token's center, which is unusual behavior for Drag Ruler. Did you create that ruler by dragging the token or by using Ctrl+Drag?

Lockbox313 commented 9 months ago

CTRL-Drag is there a different way of placing waypoints when drag ruler is used? Ah-ha apparently so. I changed the right click action to create waypoint and can now place way points.

manuelVo commented 9 months ago

I suppose this is solved then? (Small hint: There are more keybindings you can configure for Drag Ruler in Foundrys Keyboard Settings Dialog)

Lockbox313 commented 9 months ago

Yes. It could be helpful to put a note in the README that standard Foundry ctrl-click waypoints don't work with drag ruler. Thanks for the help.