aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
diff options
context:
space:
mode:
authorLulonaut <lulonaut@tutanota.de>2022-11-11 13:39:16 +0100
committerGitHub <noreply@github.com>2022-11-11 23:39:16 +1100
commit160f6d40ba3e0ce13e06533561f567f389547511 (patch)
tree2b44924b829b808a7976c0ba9f47fd131f2decdd /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
parent3ffff3428b72371b35ea3067ae33588d89e7fc85 (diff)
downloadnotenoughupdates-160f6d40ba3e0ce13e06533561f567f389547511.tar.gz
notenoughupdates-160f6d40ba3e0ce13e06533561f567f389547511.tar.bz2
notenoughupdates-160f6d40ba3e0ce13e06533561f567f389547511.zip
ctrl +f support (#423)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
index 87ce915b..cff83cca 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -1035,14 +1035,30 @@ public class NEUOverlay extends Gui {
return false;
}
- if ((Keyboard.isKeyDown(Keyboard.KEY_Y) && !Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) && NotEnoughUpdates.INSTANCE.config.hidden.dev) {
- displayInformationPane(new DevInfoPane(this, manager));
+ if (NotEnoughUpdates.INSTANCE.config.hidden.dev && (Keyboard.isKeyDown(Keyboard.KEY_Y) && !Keyboard.isKeyDown(
+ Keyboard.KEY_LCONTROL)) && !searchBarHasFocus) {
+ DevInfoPane devInfoPane = new DevInfoPane(this, manager);
+ if (devInfoPane.getText().isEmpty()) {
+ Utils.addChatMessage(EnumChatFormatting.AQUA + "[NEU] No missing items!");
+ } else {
+ displayInformationPane(devInfoPane);
+ }
}
if (Keyboard.getEventKeyState()) {
if (!NotEnoughUpdates.INSTANCE.config.toolbar.searchBar) {
searchBarHasFocus = false;
}
+
+ if (Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) && Keyboard.isKeyDown(Keyboard.KEY_F) &&
+ NotEnoughUpdates.INSTANCE.config.toolbar.searchBar && NotEnoughUpdates.INSTANCE.config.toolbar.ctrlF) {
+ searchBarHasFocus = !searchBarHasFocus;
+ if (searchBarHasFocus) {
+ itemPaneOpen = true;
+ }
+ return true;
+ }
+
if (searchBarHasFocus) {
if (keyPressed == 1) {
searchBarHasFocus = false;