aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 19:50:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 19:50:21 +0100
commitcd170c01627f4045ac0a84572d82d2f0169158e7 (patch)
tree14f695d680d1f9c968c4912df172d17f8ec7d6e0
parent4ff0ed2e6f4b75cfc425cec741557765048bf358 (diff)
downloadSkyHanni-cd170c01627f4045ac0a84572d82d2f0169158e7.tar.gz
SkyHanni-cd170c01627f4045ac0a84572d82d2f0169158e7.tar.bz2
SkyHanni-cd170c01627f4045ac0a84572d82d2f0169158e7.zip
Showing burrow guess point more clearly with distance
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt6
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)
}
}
}