From 45837469817266951b72cea054430c19c0fc7126 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:50:21 +0100 Subject: Showing burrow guess point more clearly with distance --- .../hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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) } } } -- cgit