diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-26 12:32:51 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-26 12:32:51 +0200 |
commit | effd69e9f113c808dae5e51e2b55574886d0e230 (patch) | |
tree | 11cc6b5241a1937b2f76729468fec4e80d2b0552 /src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt | |
parent | 7fc421dc3e81d0cf60387516c74768db2bde9658 (diff) | |
download | skyhanni-effd69e9f113c808dae5e51e2b55574886d0e230.tar.gz skyhanni-effd69e9f113c808dae5e51e2b55574886d0e230.tar.bz2 skyhanni-effd69e9f113c808dae5e51e2b55574886d0e230.zip |
ugly workaround: duplicating the methods drawFilledBoundingBox draw3DLine with a variant before nea made the parkour changes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt b/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt index 410c29aca..6013dec6f 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt @@ -4,9 +4,9 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.test.command.CopyErrorCommand import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzUtils.toSingletonListOrEmpty -import at.hannibal2.skyhanni.utils.RenderUtils.draw3DLine +import at.hannibal2.skyhanni.utils.RenderUtils.draw3DLine_nea import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText -import at.hannibal2.skyhanni.utils.RenderUtils.drawFilledBoundingBox +import at.hannibal2.skyhanni.utils.RenderUtils.drawFilledBoundingBox_nea import at.hannibal2.skyhanni.utils.RenderUtils.drawString import at.hannibal2.skyhanni.utils.RenderUtils.expandBlock import at.hannibal2.skyhanni.utils.RenderUtils.outlineTopFace @@ -81,7 +81,7 @@ class ParkourHelper( val inProgressVec = getInProgressPair().toSingletonListOrEmpty() for ((prev, next) in locations.asSequence().withIndex().zipWithNext().drop(current) .take(lookAhead - 1) + inProgressVec) { - event.draw3DLine( + event.draw3DLine_nea( prev.value.offsetCenter(), next.value.offsetCenter(), colorForIndex(prev.index), @@ -95,12 +95,12 @@ class ParkourHelper( if (shortCut.from in nextShortcuts && shortCut.to in locations.indices) { val from = locations[shortCut.from].offsetCenter() val to = locations[shortCut.to].offsetCenter() - event.draw3DLine(from, to, Color.RED, 3, false) + event.draw3DLine_nea(from, to, Color.RED, 3, false) val textLocation = from.add(to.subtract(from).normalize()) event.drawDynamicText(textLocation.add(-0.5, 1.0, -0.5), "§cShortcut", 1.8) val aabb = axisAlignedBB(locations[shortCut.to]) - event.drawFilledBoundingBox(aabb, Color.RED, 1f) + event.drawFilledBoundingBox_nea(aabb, Color.RED, 1f) if (outline) event.outlineTopFace(aabb, 2, Color.BLACK, true) } @@ -112,10 +112,10 @@ class ParkourHelper( if (isMovingPlatform && showEverything) continue if (isMovingPlatform) { val aabb = axisAlignedBB(location).expandBlock() - event.drawFilledBoundingBox(aabb, colorForIndex(index), .6f) + event.drawFilledBoundingBox_nea(aabb, colorForIndex(index), .6f) } else { val aabb = axisAlignedBB(location) - event.drawFilledBoundingBox(aabb, colorForIndex(index), 1f) + event.drawFilledBoundingBox_nea(aabb, colorForIndex(index), 1f) if (outline) event.outlineTopFace(aabb, 2, Color.BLACK, true) } if (SkyHanniMod.feature.dev.waypoint.showPlatformNumber) { |