Change ruler color on gridless maps to indecate different speeds (resolves #15)

This commit is contained in:
Manuel Vögele
2021-02-08 18:08:52 +01:00
parent 24620bd604
commit 4bd1473310
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ function nativeSpeedProvider(token, playercolor) {
return [{range: tokenSpeed, color: playercolor}, {range: tokenSpeed * dashMultiplier, color: 0xFFFF00}]
}
function getColorForDistance(startDistance, subDistance) {
export function getColorForDistance(startDistance, subDistance=0) {
if (!this.isDragRuler)
return this.color
// Don't apply colors if the current user doesn't have at least observer permissions