summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-03-24 00:52:51 +0100
committerGitHub <noreply@github.com>2024-03-24 00:52:51 +0100
commit46c973abbaafdc814b3aa0a9627fe655464e339d (patch)
tree14f104c44f8bf010ff49125f173ead2e40ab2907 /src/main/java/at/hannibal2/skyhanni/features
parent65b76e59d80f290c0b398830dc1cdd02a48b44f4 (diff)
downloadskyhanni-46c973abbaafdc814b3aa0a9627fe655464e339d.tar.gz
skyhanni-46c973abbaafdc814b3aa0a9627fe655464e339d.tar.bz2
skyhanni-46c973abbaafdc814b3aa0a9627fe655464e339d.zip
Improvement: Added wireframe as Totem of Corruption outline (#1248)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
index 2deb676af..11a114a7c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.features.fishing
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.config.features.fishing.TotemOfCorruptionConfig.OutlineType
import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.events.LorenzTickEvent
@@ -12,6 +13,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.sendTitle
import at.hannibal2.skyhanni.utils.LorenzVec
import at.hannibal2.skyhanni.utils.RenderUtils.drawSphereInWorld
+import at.hannibal2.skyhanni.utils.RenderUtils.drawSphereWireframeInWorld
import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings
import at.hannibal2.skyhanni.utils.SoundUtils.playPlingSound
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
@@ -81,8 +83,18 @@ class TotemOfCorruption {
val color = config.color.toChromaColor()
for (totem in totems) {
- // The center of the totem is the upper part
- event.drawSphereInWorld(color, totem.location.add(y = 1), 16f)
+ // The center of the totem is the upper part of the armor stand
+ when (config.outlineType) {
+ OutlineType.FILLED -> {
+ event.drawSphereInWorld(color, totem.location.add(y = 1), 16f)
+ }
+
+ OutlineType.WIREFRAME -> {
+ event.drawSphereWireframeInWorld(color, totem.location.add(y = 1), 16f)
+ }
+
+ else -> return
+ }
}
}
@@ -132,7 +144,7 @@ class TotemOfCorruption {
private fun isOverlayEnabled() = LorenzUtils.inSkyBlock && config.showOverlay
private fun isHideParticlesEnabled() = LorenzUtils.inSkyBlock && config.hideParticles
- private fun isEffectiveAreaEnabled() = LorenzUtils.inSkyBlock && config.showEffectiveArea
+ private fun isEffectiveAreaEnabled() = LorenzUtils.inSkyBlock && config.outlineType != OutlineType.NONE
}
class Totem(