diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-09-07 20:59:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 20:59:56 +0200 |
commit | f40863a821218938b8f53f17a4441ad5c973d0e3 (patch) | |
tree | 7fad36578e589dafa9cc828c51088fae9cc4834e /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | e3b39759ad89a91dda2ef0549d0a62b58598ec1c (diff) | |
download | skyhanni-f40863a821218938b8f53f17a4441ad5c973d0e3.tar.gz skyhanni-f40863a821218938b8f53f17a4441ad5c973d0e3.tar.bz2 skyhanni-f40863a821218938b8f53f17a4441ad5c973d0e3.zip |
Feature: Personal Compactor Overlay (#1869)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: ItsEmpa <itsempa@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/InventoryConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/inventory/PersonalCompactorConfig.java | 51 |
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; +} |