aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-08 21:33:52 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-08 21:33:52 +0200
commit4013efcfc85e5ce4e16b2492d235373ed5caa958 (patch)
tree1a028bc373e4b2506cfc469e628055267eee30b9 /src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java
parente5959b506165086e507b41a1fdfc4e3d96d1da43 (diff)
downloadnotenoughupdates-4013efcfc85e5ce4e16b2492d235373ed5caa958.tar.gz
notenoughupdates-4013efcfc85e5ce4e16b2492d235373ed5caa958.tar.bz2
notenoughupdates-4013efcfc85e5ce4e16b2492d235373ed5caa958.zip
Redo config so its less cluttered
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java
new file mode 100644
index 00000000..2cdbc0ab
--- /dev/null
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Toolbar.java
@@ -0,0 +1,64 @@
+package io.github.moulberry.notenoughupdates.options.seperateSections;
+
+import com.google.gson.annotations.Expose;
+import io.github.moulberry.notenoughupdates.core.config.annotations.*;
+
+public class Toolbar {
+ @Expose
+ @ConfigOption(
+ name = "Edit Toolbar Positions",
+ desc = "Edit the position of the QuickCommands / Search Bar"
+ )
+ @ConfigEditorButton(runnableId = 6, buttonText = "Edit")
+ public boolean positionButton = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Show Quick Commands",
+ desc = "Show QuickCommands\u2122 in the NEU toolbar"
+ )
+ @ConfigEditorBoolean
+ public boolean quickCommands = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Show Search Bar",
+ desc = "Show Itemlist search bar in the NEU toolbar"
+ )
+ @ConfigEditorBoolean
+ public boolean searchBar = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Search Bar Width",
+ desc = "Change the width of the search bar"
+ )
+ @ConfigEditorSlider(
+ minValue = 50f,
+ maxValue = 300f,
+ minStep = 10f
+ )
+ public int searchBarWidth = 200;
+
+ @Expose
+ @ConfigOption(
+ name = "Search Bar Height",
+ desc = "Change the height of the search bar"
+ )
+ @ConfigEditorSlider(
+ minValue = 15f,
+ maxValue = 50f,
+ minStep = 1f
+ )
+ public int searchBarHeight = 40;
+
+ @Expose
+ @ConfigOption(
+ name = "Quick Commands Click Type",
+ desc = "Change the click type needed to trigger quick commands"
+ )
+ @ConfigEditorDropdown(
+ values = {"Mouse Up", "Mouse Down"}
+ )
+ public int quickCommandsClickType = 0;
+}