aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/PersonalCompactorConfig.java51
2 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java
index 6c43591a5..dfb8f1f9c 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java
@@ -74,6 +74,11 @@ public class InventoryConfig {
public HideNotClickableConfig hideNotClickable = new HideNotClickableConfig();
@Expose
+ @ConfigOption(name = "Personal Compactor Overlay", desc = "Overlay for the Personal Compactor and Deletor.")
+ @Accordion
+ public PersonalCompactorConfig personalCompactor = new PersonalCompactorConfig();
+
+ @Expose
@ConfigOption(name = "RNG Meter", desc = "")
@Accordion
public RngMeterConfig rngMeter = new RngMeterConfig();
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/PersonalCompactorConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/PersonalCompactorConfig.java
new file mode 100644
index 000000000..3ded2e812
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/PersonalCompactorConfig.java
@@ -0,0 +1,51 @@
+package at.hannibal2.skyhanni.config.features.inventory;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+import org.lwjgl.input.Keyboard;
+
+public class PersonalCompactorConfig {
+
+ @Expose
+ @ConfigOption(name = "Enabled", desc = "Enable showing what items are inside your personal compactor/deletor.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = true;
+
+ @Expose
+ @ConfigOption(name = "Visibility Mode", desc = "Choose when to show the overlay.")
+ @ConfigEditorDropdown
+ public VisibilityMode visibilityMode = VisibilityMode.EXCEPT_KEYBIND;
+
+ public enum VisibilityMode {
+ ALWAYS("Always"),
+ KEYBIND("Keybind Held"),
+ EXCEPT_KEYBIND("Except Keybind Held"),
+ ;
+
+ private final String name;
+
+ VisibilityMode(String name) {
+ this.name = name;
+ }
+
+ @Override
+ public String toString() {
+ return name;
+ }
+ }
+
+ @Expose
+ @ConfigOption(name = "Keybind", desc = "The keybind to hold to show the overlay.")
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_LSHIFT)
+ public int keybind = Keyboard.KEY_LSHIFT;
+
+ @Expose
+ @ConfigOption(name = "Show On/Off", desc = "Show whether the Personal Compactor/Deletor is currently turned on or off.")
+ @ConfigEditorBoolean
+ public boolean showToggle = true;
+}