aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt
index b925950ed..4742bd45d 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt
@@ -112,14 +112,18 @@ object TrackSoundsCommand {
}
} else {
val sound = value.first()
- val volumeColor = when(sound.volume) {
- in 0.0..0.25 -> ChatFormatting.RED.toString()
- in 0.25..0.5 -> ChatFormatting.GOLD.toString()
- else -> ChatFormatting.GREEN.toString()
- }
+ val volumeColor = when (sound.volume) {
+ in 0.0..0.25 -> ChatFormatting.RED
+ in 0.25..0.5 -> ChatFormatting.GOLD
+ else -> ChatFormatting.GREEN
+ }.toString()
event.drawDynamicText(key, "§7§l${sound.soundName}", 0.8)
- event.drawDynamicText(key.up(-0.2), "§7P: §e%.2f §7V: $volumeColor%.2f".format(sound.pitch, sound.volume), 0.8)
+ event.drawDynamicText(
+ key.up(-0.2),
+ "§7P: §e%.2f §7V: $volumeColor%.2f".format(sound.pitch, sound.volume),
+ scaleMultiplier = 0.8
+ )
}
}
}