aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-26 13:29:55 +0200
committerGitHub <noreply@github.com>2024-08-26 13:29:55 +0200
commitfaadba9341743843c999057e5413b8aedbd49e3f (patch)
treef661ca99ccefbe67a327ff886866938e7ac423c5 /src/main/java/at/hannibal2/skyhanni/features
parente7a4ba8bee43ccdcaee5192f4d2a0034db9f488f (diff)
downloadskyhanni-faadba9341743843c999057e5413b8aedbd49e3f.tar.gz
skyhanni-faadba9341743843c999057e5413b8aedbd49e3f.tar.bz2
skyhanni-faadba9341743843c999057e5413b8aedbd49e3f.zip
Fix: Fossil Solver texture pack (#2409)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt
index ababbf3e1..82fc73030 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt
@@ -12,6 +12,7 @@ import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent
import at.hannibal2.skyhanni.events.RenderInventoryItemTipEvent
import at.hannibal2.skyhanni.features.mining.fossilexcavator.FossilExcavatorAPI
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
+import at.hannibal2.skyhanni.utils.ColorUtils.addAlpha
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LorenzColor
@@ -34,11 +35,11 @@ object FossilSolverDisplay {
private val patternGroup = RepoPattern.group("mining.fossilexcavator")
private val chargesRemainingPattern by patternGroup.pattern(
"chargesremaining",
- "Chisel Charges Remaining: (?<charges>\\d+)"
+ "Chisel Charges Remaining: (?<charges>\\d+)",
)
private val fossilProgressPattern by patternGroup.pattern(
"fossilprogress",
- "Fossil Excavation Progress: (?<progress>[\\d.]+%)"
+ "Fossil Excavation Progress: (?<progress>[\\d.]+%)",
)
private val inExcavatorMenu get() = FossilExcavatorAPI.inExcavatorMenu
@@ -156,14 +157,14 @@ object FossilSolverDisplay {
}
@SubscribeEvent
- fun onBackgroundDrawn(event: GuiContainerEvent.BackgroundDrawnEvent) {
+ fun onBackgroundDrawn(event: GuiContainerEvent.ForegroundDrawnEvent) {
if (!isEnabled()) return
if (inExcavatorMenu) return
if (slotToClick == null) return
for (slot in InventoryUtils.getItemsInOpenChest()) {
if (slot.slotIndex == slotToClick) {
- slot highlight LorenzColor.GREEN
+ slot highlight LorenzColor.GREEN.toColor().addAlpha(90)
}
}
}