diff options
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 | 11 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/inventory/PageScrollingConfig.java | 30 |
2 files changed, 38 insertions, 3 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 fcdccfab7..45c0a9e98 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 @@ -57,12 +57,12 @@ public class InventoryConfig { @Expose @Category(name = "Chocolate Factory", desc = "Features to help you master the Chocolate Factory idle game.") public ChocolateFactoryConfig chocolateFactory = new ChocolateFactoryConfig(); - + @Expose @Category(name = "Craftable Item List", desc = "") @Accordion public CraftableItemListConfig craftableItemList = new CraftableItemListConfig(); - + @Expose @ConfigOption(name = "Not Clickable Items", desc = "Better not click that item.") @Accordion @@ -109,6 +109,11 @@ public class InventoryConfig { public PocketSackInASackConfig pocketSackInASack = new PocketSackInASackConfig(); @Expose + @ConfigOption(name = "Page Scrolling", desc = "") + @Accordion + public PageScrollingConfig pageScrolling = new PageScrollingConfig(); + + @Expose @ConfigOption(name = "Item Number", desc = "Showing the item number as a stack size for these items.") @ConfigEditorDraggableList public List<ItemNumberEntry> itemNumberAsStackSize = new ArrayList<>(Arrays.asList( @@ -177,7 +182,7 @@ public class InventoryConfig { @Expose @ConfigOption(name = "Quick Craft Confirmation", desc = "Require Ctrl+Click to craft items that aren't often quick crafted " + - "(e.g. armor, weapons, accessories). " + + "(e.g. armor, weapons, accessories). " + "Sack items can be crafted normally." ) @ConfigEditorBoolean diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/PageScrollingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/PageScrollingConfig.java new file mode 100644 index 000000000..098de295d --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/PageScrollingConfig.java @@ -0,0 +1,30 @@ +package at.hannibal2.skyhanni.config.features.inventory; + +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 PageScrollingConfig { + + @Expose + @ConfigOption(name = "Enable", desc = "Enables you to scroll in any inventory with multiple pages.") + @ConfigEditorBoolean + public boolean enable = false; + + @Expose + @ConfigOption(name = "Bypass Key", desc = "When the key is held allows you to scroll even though you are over an item.") + @ConfigEditorKeybind(defaultKey = Keyboard.KEY_LSHIFT) + public int bypassKey = Keyboard.KEY_LSHIFT; + + @Expose + @ConfigOption(name = "Invert Bypass", desc = "Inverts the behaviour of the bypass key. With this option the bypass key blocks scrolling over items instead of allowing it.") + @ConfigEditorBoolean + public boolean invertBypass = false; + + @Expose + @ConfigOption(name = "Invert Scroll", desc = "Inverts the direction of the scrolling.") + @ConfigEditorBoolean + public boolean invertScroll = false; +} |