diff options
| author | DoKM <mcazzyman@gmail.com> | 2021-08-02 18:21:33 +0200 |
|---|---|---|
| committer | DoKM <mcazzyman@gmail.com> | 2021-08-02 18:21:33 +0200 |
| commit | b1de14337c4481eb922ecbe5a5c008b308fdfa68 (patch) | |
| tree | 64b02b41d80a14257ad76ef199b10bc51183c013 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | 7b45f7826968ca8c3c5fde108f0af4e56fb96033 (diff) | |
| download | notenoughupdates-b1de14337c4481eb922ecbe5a5c008b308fdfa68.tar.gz notenoughupdates-b1de14337c4481eb922ecbe5a5c008b308fdfa68.tar.bz2 notenoughupdates-b1de14337c4481eb922ecbe5a5c008b308fdfa68.zip | |
Add explanation to search highlight feature
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 4859e5a6..9872e70e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -191,6 +191,18 @@ public class NEUOverlay extends Gui { } else { if(System.currentTimeMillis() - millisLastLeftClick < 300) { searchMode = !searchMode; + if (searchMode && NotEnoughUpdates.INSTANCE.config.hidden.firstTimeSearchFocus) { + NEUEventListener.displayNotification(Lists.newArrayList( + "\u00a7eSearch Highlight", + "\u00a77In this mode NEU will gray out non matching items in", + "\u00a77your inventory or chests.", + "\u00a77This allows you easily find items as the item will stand out.", + "\u00a77To toggle this please double click on the search bar in your inventory.", + "\u00a77", + "\u00a77Press X on your keyboard to close this notifcation"), true, true); + NotEnoughUpdates.INSTANCE.config.hidden.firstTimeSearchFocus = false; + + } } textField.setCursorPosition(getClickedIndex(mouseX, mouseY)); millisLastLeftClick = System.currentTimeMillis(); |
