diff options
| author | DoKM <mcazzyman@gmail.com> | 2021-07-21 21:57:12 +0200 |
|---|---|---|
| committer | DoKM <mcazzyman@gmail.com> | 2021-07-21 21:57:12 +0200 |
| commit | 4cbf55396f509db89a467f8a4817bb652617f3cf (patch) | |
| tree | 2d279ca42712cd2e00345732595f8387600576f2 /src/main/java/io/github/moulberry/notenoughupdates/options | |
| parent | 473d41068f8e53680f2b3035216c1ba352cc21bf (diff) | |
| download | notenoughupdates-4cbf55396f509db89a467f8a4817bb652617f3cf.tar.gz notenoughupdates-4cbf55396f509db89a467f8a4817bb652617f3cf.tar.bz2 notenoughupdates-4cbf55396f509db89a467f8a4817bb652617f3cf.zip | |
Add Scroll lock for storage gui
so people with scrollable tooltips can scroll in storage gui
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/StorageGUI.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/StorageGUI.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/StorageGUI.java index 17c25117..2b48bc74 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/StorageGUI.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/StorageGUI.java @@ -102,6 +102,28 @@ public class StorageGUI { @ConfigAccordionId(id = 1)
public String selectedStorageColour = "0:255:255:223:0";
+ @Expose
+ @ConfigOption(
+ name = "Scroll Lock",
+ desc = "Stop scrolling when holding the key below.\n"+
+ "Usefull for people using scrollable tooltips."
+ )
+ @ConfigEditorDropdown(
+ values = {"Off", "On"}
+ )
+ @ConfigAccordionId(id = 1)
+ public int scrollLock = 0;
+
+ @Expose
+ @ConfigOption(
+ name = "Scroll Lock Key",
+ desc = "Hold this keep to stop scrolling in the gui.\n" +
+ "Don't forget to enable it above."
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_LSHIFT)
+ @ConfigAccordionId(id = 1)
+ public int slotLockKey = Keyboard.KEY_LSHIFT;
+
@ConfigOption(
name = "Inventory Backpacks",
|
