diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 19:50:21 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 19:50:21 +0100 |
commit | 45837469817266951b72cea054430c19c0fc7126 (patch) | |
tree | 14f695d680d1f9c968c4912df172d17f8ec7d6e0 /src | |
parent | bfbafd913659f9d55585f02da8a0ae08dd7ca433 (diff) | |
download | skyhanni-45837469817266951b72cea054430c19c0fc7126.tar.gz skyhanni-45837469817266951b72cea054430c19c0fc7126.tar.bz2 skyhanni-45837469817266951b72cea054430c19c0fc7126.zip |
Showing burrow guess point more clearly with distance
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index 187b66249..a446dca17 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -132,8 +132,10 @@ class GriffinBurrowHelper { val guessLocation = findBlock(it) val distance = guessLocation.distance(playerLocation) event.drawColor(guessLocation, LorenzColor.WHITE, distance > 10) - if (distance < 10) { - event.drawString(guessLocation.add(0.5, 1.5, 0.5), "§fSoopy Guess", true) + event.drawDynamicText(guessLocation, "Guess", 1.5) + if (distance > 5) { + val formattedDistance = LorenzUtils.formatDouble(distance) + event.drawDynamicText(guessLocation, "§e${formattedDistance}m", 1.3, yOff = 12f) } } } |