diff options
author | Kimbrian Marshall <cimbraien@gmail.com> | 2023-10-26 23:36:55 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 18:36:55 +0200 |
commit | a2c94dc799bbcfc20c94c03890f94024c0c3246b (patch) | |
tree | 8ff83fc472bd32ca98366710205ad3f8e4d9bbea /src/main/java/at/hannibal2/skyhanni | |
parent | 78ca5e7d082886ca3ede79761657d14e91c2030a (diff) | |
download | skyhanni-a2c94dc799bbcfc20c94c03890f94024c0c3246b.tar.gz skyhanni-a2c94dc799bbcfc20c94c03890f94024c0c3246b.tar.bz2 skyhanni-a2c94dc799bbcfc20c94c03890f94024c0c3246b.zip |
Feature: Highlighted Motes Orbs Size (#611)
+ Added configuration to set the size of highlighted motes orbs and make them smaller by default. #611
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/RiftConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/RiftConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/RiftConfig.java index 1785518b0..8f732c078 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/RiftConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/RiftConfig.java @@ -694,6 +694,11 @@ public class RiftConfig { public boolean enabled = true; @Expose + @ConfigOption(name = "Highlight Size", desc = "Set render size for highlighted Motes Orbs.") + @ConfigEditorSlider(minStep = 1, minValue = 1, maxValue = 5) + public int size = 5; + + @Expose @ConfigOption(name = "Hide Particles", desc = "Hide normal Motes Orbs particles.") @ConfigEditorBoolean @FeatureToggle diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt index abbea2a5a..15273cdc4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt @@ -82,12 +82,15 @@ class RiftMotesOrb { val location = orb.location + val sizeOffset = (5 - config.size) * -0.1 if (orb.pickedUp) { - event.drawDynamicText(location.add(0.0, 0.5, 0.0), "§7Motes Orb", 1.5, ignoreBlocks = false) - event.drawWaypointFilled(location, LorenzColor.GRAY.toColor()) + event.drawDynamicText(location.add(0.0, 0.5, 0.0), "§7Motes Orb", 1.5 + sizeOffset, ignoreBlocks = + false) + event.drawWaypointFilled(location, LorenzColor.GRAY.toColor(), extraSize = sizeOffset) } else { - event.drawDynamicText(location.add(0.0, 0.5, 0.0), "§dMotes Orb", 1.5, ignoreBlocks = false) - event.drawWaypointFilled(location, LorenzColor.LIGHT_PURPLE.toColor()) + event.drawDynamicText(location.add(0.0, 0.5, 0.0), "§dMotes Orb", 1.5 + sizeOffset, ignoreBlocks = + false) + event.drawWaypointFilled(location, LorenzColor.LIGHT_PURPLE.toColor(), extraSize = sizeOffset) } } } |