aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-07-26 13:03:35 +0200
committerGitHub <noreply@github.com>2024-07-26 13:03:35 +0200
commit4558f7b79dbd6097747e4742e13dcbdec623612f (patch)
tree3cae43f22220ad7fc08d76f1ea9ad90a58ec9c3c /src/main/java/at/hannibal2/skyhanni/features/event
parent19d4d4e1eaa06d4ff2a170cad7ebf9e6441dc048 (diff)
downloadskyhanni-4558f7b79dbd6097747e4742e13dcbdec623612f.tar.gz
skyhanni-4558f7b79dbd6097747e4742e13dcbdec623612f.tar.bz2
skyhanni-4558f7b79dbd6097747e4742e13dcbdec623612f.zip
Improvement: Made Hoppity Egg Waypoint Color customizable (#2259)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggLocator.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggLocator.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggLocator.kt
index aa291eb92..dcf56aac6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggLocator.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggLocator.kt
@@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.features.fame.ReminderUtils
import at.hannibal2.skyhanni.features.garden.GardenAPI
import at.hannibal2.skyhanni.features.inventory.chocolatefactory.ChocolateFactoryAPI
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
+import at.hannibal2.skyhanni.utils.ColorUtils.toChromaColor
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer
@@ -140,7 +141,7 @@ object HoppityEggLocator {
if (eyeLocation.distance(it) > 2) {
drawWaypointFilled(
it,
- LorenzColor.GREEN.toColor(),
+ config.waypointColor.toChromaColor(),
seeThroughBlocks = true,
)
drawDynamicText(it.add(y = 1), "§aGuess", 1.5)
@@ -158,7 +159,7 @@ object HoppityEggLocator {
&& HoppityEggLocations.hasCollectedEgg(location)
val possibleDuplicateLabel = if (shouldMarkDuplicate) "$label §c(Duplicate Location)" else label
if (!shouldMarkDuplicate) {
- drawWaypointFilled(location, LorenzColor.GREEN.toColor(), seeThroughBlocks = true)
+ drawWaypointFilled(location, config.waypointColor.toChromaColor(), seeThroughBlocks = true)
} else {
drawColor(location, LorenzColor.RED.toColor(), false, 0.5f)
}