From 23c8e2ad407d1889cdb4af38c64f0155f33bb105 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 6 May 2023 22:05:48 +0200 Subject: Fixed Chat peek activating while inside a sign gui --- src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 2437174c3..d605c294e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -6,6 +6,8 @@ import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimal import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import io.github.moulberry.notenoughupdates.NEUManager import io.github.moulberry.notenoughupdates.NotEnoughUpdates +import io.github.moulberry.notenoughupdates.overlays.AuctionSearchOverlay +import io.github.moulberry.notenoughupdates.overlays.BazaarSearchOverlay import io.github.moulberry.notenoughupdates.recipes.CraftingRecipe import io.github.moulberry.notenoughupdates.recipes.NeuRecipe import io.github.moulberry.notenoughupdates.util.ItemResolutionQuery @@ -216,4 +218,13 @@ object NEUItems { recipesCache[minionId] = recipes return recipes } + + // TODO add support for neu item list + fun neuHasFocus(): Boolean { + if (AuctionSearchOverlay.shouldReplace()) return true + if (BazaarSearchOverlay.shouldReplace()) return true + if (InventoryUtils.inStorage()) return true + + return false + } } \ No newline at end of file -- cgit