summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-06-16 17:31:50 +0200
committerGitHub <noreply@github.com>2024-06-16 17:31:50 +0200
commite9ea84e533f5db928a47850e87000f63bad49c45 (patch)
tree332596fc17517a97b38d3d263d5b08dba385c4e5 /src/main/java/at/hannibal2/skyhanni/config/features
parent37bb14382e8aac7798de1e567b8e9410727ef5fd (diff)
downloadskyhanni-e9ea84e533f5db928a47850e87000f63bad49c45.tar.gz
skyhanni-e9ea84e533f5db928a47850e87000f63bad49c45.tar.bz2
skyhanni-e9ea84e533f5db928a47850e87000f63bad49c45.zip
Improvement: Add Keybinds to Custom Wardrobe (#2105)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/CustomWardrobeConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/KeybindConfig.java91
2 files changed, 96 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/CustomWardrobeConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/CustomWardrobeConfig.java
index 0d8212e3a..36f1d68d0 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/CustomWardrobeConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/CustomWardrobeConfig.java
@@ -63,4 +63,9 @@ public class CustomWardrobeConfig {
@ConfigOption(name = "Spacing", desc = "")
@Accordion
public SpacingConfig spacing = new SpacingConfig();
+
+ @Expose
+ @ConfigOption(name = "Keybinds", desc = "")
+ @Accordion
+ public KeybindConfig keybinds = new KeybindConfig();
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/KeybindConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/KeybindConfig.java
new file mode 100644
index 000000000..95b5fd627
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/KeybindConfig.java
@@ -0,0 +1,91 @@
+package at.hannibal2.skyhanni.config.features.inventory.customwardrobe;
+
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+import org.lwjgl.input.Keyboard;
+
+public class KeybindConfig {
+
+ @Expose
+ @ConfigOption(
+ name = "Slot Keybinds Toggle",
+ desc = "Enable/Disable the slot keybinds.\n§cThis only works inside the Custom Wardrobe GUI."
+ )
+ @ConfigEditorBoolean
+ public boolean slotKeybindsToggle = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 1",
+ desc = "Keybind for slot 1"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_1)
+ public int slot1 = Keyboard.KEY_1;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 2",
+ desc = "Keybind for slot 2"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_2)
+ public int slot2 = Keyboard.KEY_2;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 3",
+ desc = "Keybind for slot 3"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_3)
+ public int slot3 = Keyboard.KEY_3;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 4",
+ desc = "Keybind for slot 4"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_4)
+ public int slot4 = Keyboard.KEY_4;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 5",
+ desc = "Keybind for slot 5"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_5)
+ public int slot5 = Keyboard.KEY_5;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 6",
+ desc = "Keybind for slot 6"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_6)
+ public int slot6 = Keyboard.KEY_6;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 7",
+ desc = "Keybind for slot 7"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_7)
+ public int slot7 = Keyboard.KEY_7;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 8",
+ desc = "Keybind for slot 8"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_8)
+ public int slot8 = Keyboard.KEY_8;
+
+ @Expose
+ @ConfigOption(
+ name = "Slot 9",
+ desc = "Keybind for slot 9"
+ )
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_9)
+ public int slot9 = Keyboard.KEY_9;
+
+}