aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-06 22:05:48 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-06 22:05:48 +0200
commit23c8e2ad407d1889cdb4af38c64f0155f33bb105 (patch)
treeab637738a3b209546d35620e1a5eb3b4df751d4c /src/main/java/at/hannibal2/skyhanni/utils
parent37bf7ad88fdfe9f431a1466a3ec2c86c70762e8a (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt11
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