diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-06 22:05:48 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-06 22:05:48 +0200 |
commit | 23c8e2ad407d1889cdb4af38c64f0155f33bb105 (patch) | |
tree | ab637738a3b209546d35620e1a5eb3b4df751d4c /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | |
parent | 37bf7ad88fdfe9f431a1466a3ec2c86c70762e8a (diff) | |
download | skyhanni-23c8e2ad407d1889cdb4af38c64f0155f33bb105.tar.gz skyhanni-23c8e2ad407d1889cdb4af38c64f0155f33bb105.tar.bz2 skyhanni-23c8e2ad407d1889cdb4af38c64f0155f33bb105.zip |
Fixed Chat peek activating while inside a sign gui
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 11 |
1 files changed, 11 insertions, 0 deletions
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 |