aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-10-06 06:09:41 +0100
committerGitHub <noreply@github.com>2023-10-06 16:09:41 +1100
commitebdc4df69093d29c3334537f9267374773464a30 (patch)
tree015b8c637cd671fdca141223c67a873faddd6f22 /src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java
parent778e868ae93651b7280289af14a812eec7f2ecb1 (diff)
downloadnotenoughupdates-ebdc4df69093d29c3334537f9267374773464a30.tar.gz
notenoughupdates-ebdc4df69093d29c3334537f9267374773464a30.tar.bz2
notenoughupdates-ebdc4df69093d29c3334537f9267374773464a30.zip
Cleanup: Refactor for naming conventions (#856)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java153
1 files changed, 153 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java
new file mode 100644
index 00000000..8b23e57a
--- /dev/null
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/WardrobeKeybinds.java
@@ -0,0 +1,153 @@
+/*
+ * Copyright (C) 2022 NotEnoughUpdates contributors
+ *
+ * This file is part of NotEnoughUpdates.
+ *
+ * NotEnoughUpdates is free software: you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation, either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * NotEnoughUpdates is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with NotEnoughUpdates. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+package io.github.moulberry.notenoughupdates.options.separatesections;
+
+import com.google.gson.annotations.Expose;
+import io.github.moulberry.moulconfig.annotations.ConfigAccordionId;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorAccordion;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind;
+import io.github.moulberry.moulconfig.annotations.ConfigOption;
+import org.lwjgl.input.Keyboard;
+
+public class WardrobeKeybinds {
+
+ @Expose
+ @ConfigOption(
+ name = "Enable Wardrobe Keybinds",
+ desc = "Lets you use your number keys to quickly change your wardrobe"
+ )
+ @ConfigEditorBoolean
+ public boolean enableWardrobeKeybinds = false;
+
+ @ConfigOption(
+ name = "Wardrobe Keybinds",
+ desc = ""
+ )
+ @ConfigEditorAccordion(id = 2)
+ public boolean wardrobeKeybindAccordion = false;
+ @Expose
+ @ConfigOption(
+ name = "Slot 1",
+ desc = "Keybind to toggle the first set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_1)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot1 = Keyboard.KEY_1;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 2",
+ desc = "Keybind to toggle the second set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_2)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot2 = Keyboard.KEY_2;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 3",
+ desc = "Keybind to toggle the third set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_3)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot3 = Keyboard.KEY_3;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 4",
+ desc = "Keybind to toggle the fourth set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_4)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot4 = Keyboard.KEY_4;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 5",
+ desc = "Keybind to toggle the fifth set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_5)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot5 = Keyboard.KEY_5;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 6",
+ desc = "Keybind to toggle the sixth set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_6)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot6 = Keyboard.KEY_6;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 7",
+ desc = "Keybind to toggle the seventh set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_7)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot7 = Keyboard.KEY_7;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 8",
+ desc = "Keybind to toggle the eighth set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_8)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot8 = Keyboard.KEY_8;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 9",
+ desc = "Keybind to toggle the ninth set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_9)
+ @ConfigAccordionId(id = 2)
+ public int wardrobeSlot9 = Keyboard.KEY_9;
+
+ @Expose
+ @ConfigOption(
+ name = "Unequip Wardrobe Slot",
+ desc = "Keybind to unequip the currently active set in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_0)
+ @ConfigAccordionId(id = 2)
+ public int wardrobePageUnequip = Keyboard.KEY_0;
+
+ @Expose
+ @ConfigOption(
+ name = "Previous Page",
+ desc = "Keybind to open the previous page in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_MINUS)
+ @ConfigAccordionId(id = 2)
+ public int wardrobePagePrevious = Keyboard.KEY_MINUS;
+
+ @Expose
+ @ConfigOption(
+ name = "Next Page",
+ desc = "Keybind to open the next page in your wardrobe"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_EQUALS)
+ @ConfigAccordionId(id = 2)
+ public int wardrobePageNext = Keyboard.KEY_EQUALS;
+}