diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-10-11 19:01:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 19:01:42 +0200 |
commit | 9a2286ac3070e1ba0023445dc8243e618989e86e (patch) | |
tree | 6c4ad95a8df2ce6fff17e5ea96f8df09c4e5ea07 /src/main/java/at/hannibal2/skyhanni/test/command | |
parent | 8c54be95700b224c2f93b549465dbe06bf3bbe86 (diff) | |
download | skyhanni-9a2286ac3070e1ba0023445dc8243e618989e86e.tar.gz skyhanni-9a2286ac3070e1ba0023445dc8243e618989e86e.tar.bz2 skyhanni-9a2286ac3070e1ba0023445dc8243e618989e86e.zip |
Backend: LorenzVec up/down and drawLineToEye (#2056)
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/command')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/TrackParticlesCommand.kt | 10 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TrackParticlesCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TrackParticlesCommand.kt index a48294bd8..bdcb935bb 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TrackParticlesCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TrackParticlesCommand.kt @@ -112,19 +112,19 @@ object TrackParticlesCommand { if (value.size != 1) { event.drawDynamicText(key, "§e${value.size} particles", 0.8) - var offset = -0.2 + var offset = 0.2 value.groupBy { it.type }.forEach { (particleType, particles) -> - event.drawDynamicText(key.up(offset), "§7§l$particleType §7(§e${particles.size}§7)", 0.8) - offset -= 0.2 + event.drawDynamicText(key.down(offset), "§7§l$particleType §7(§e${particles.size}§7)", 0.8) + offset += 0.2 } } else { val particle = value.first() event.drawDynamicText(key, "§7§l${particle.type}", 0.8) event.drawDynamicText( - key.up(-0.2), + key.down(0.2), "§7C: §e${particle.count} §7S: §a${particle.speed.roundTo(2)}", - scaleMultiplier = 0.8 + scaleMultiplier = 0.8, ) } } 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 18cfcf786..c038d8098 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt @@ -114,10 +114,10 @@ object TrackSoundsCommand { if (value.size != 1) { event.drawDynamicText(key, "§e${value.size} sounds", 0.8) - var offset = -0.2 + var offset = 0.2 value.groupBy { it.soundName }.forEach { (soundName, sounds) -> - event.drawDynamicText(key.up(offset), "§7§l$soundName §7(§e${sounds.size}§7)", 0.8) - offset -= 0.2 + event.drawDynamicText(key.down(offset), "§7§l$soundName §7(§e${sounds.size}§7)", 0.8) + offset += 0.2 } } else { val sound = value.first() @@ -129,7 +129,7 @@ object TrackSoundsCommand { event.drawDynamicText(key, "§7§l${sound.soundName}", 0.8) event.drawDynamicText( - key.up(-0.2), + key.down(0.2), "§7P: §e${sound.pitch.roundTo(2)} §7V: $volumeColor${sound.volume.roundTo(2)}", scaleMultiplier = 0.8, ) |