-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from telvarost/8-port-in-mousetweak-configs
8 port in mousetweak configs
- Loading branch information
Showing
5 changed files
with
729 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 89 additions & 5 deletions
94
src/main/java/com/github/telvarost/inventorytweaks/Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,100 @@ | ||
package com.github.telvarost.inventorytweaks; | ||
|
||
import blue.endless.jankson.Comment; | ||
import net.glasslauncher.mods.api.gcapi.api.ConfigCategory; | ||
import net.glasslauncher.mods.api.gcapi.api.ConfigName; | ||
import net.glasslauncher.mods.api.gcapi.api.GConfig; | ||
|
||
public class Config { | ||
|
||
@GConfig(value = "config", visibleName = "InventoryTweaks Config") | ||
public static ConfigFields config = new ConfigFields(); | ||
@GConfig(value = "inventoryTweaks", visibleName = "InventoryTweaks Config", primary = true) | ||
public static InventoryTweaksConfig INVENTORY_TWEAKS_CONFIG = new InventoryTweaksConfig(); | ||
|
||
public static class ConfigFields { | ||
public static class InventoryTweaksConfig { | ||
|
||
// @ConfigName("Fix double doors") | ||
// public static Boolean FIX_DOUBLE_DOORS = true; | ||
@ConfigCategory("Modern Minecraft Config") | ||
public static ModernMinecraftConfig MODERN_MINECRAFT_CONFIG = new ModernMinecraftConfig(); | ||
|
||
@ConfigCategory("MouseTweaks Config") | ||
public static final MouseTweaksConfig MOUSE_TWEAKS_CONFIG = new MouseTweaksConfig(); | ||
} | ||
|
||
public static class ModernMinecraftConfig { | ||
|
||
@ConfigName("Enable [Click + Drag] graphics") | ||
public static Boolean EnableDragGraphics = true; | ||
|
||
@ConfigName("Enable [Left-Click + Drag]") | ||
public static Boolean EnableLeftClickDrag = true; | ||
|
||
@ConfigName("Enable [Right-Click + Drag]") | ||
public static Boolean EnableRightClickDrag = true; | ||
|
||
@ConfigName("Prefer [Shift-Click] over [Left-Click + Drag]") | ||
public static Boolean LMBPreferShiftClick = true; | ||
|
||
@ConfigName("Prefer [Shift-Click] over [Right-Click + Drag]") | ||
public static Boolean RMBPreferShiftClick = true; | ||
|
||
@ConfigName("Use [DROP_KEY] to drop inventory items") | ||
@Comment("Cursor must not be holding any items") | ||
public static Boolean UseDropKeyInInventory = true; | ||
|
||
@ConfigName("Use [LCtrl + DROP_KEY] to drop entire stack") | ||
public static Boolean LCtrlStackDrop = true; | ||
|
||
@ConfigName("Use [NUMBER_KEYS] to swap items to hotbar") | ||
@Comment("Hover over the slot or swap cursor item") | ||
public static Boolean NumKeyHotbarSwap = true; | ||
} | ||
|
||
public static class MouseTweaksConfig { | ||
|
||
@ConfigCategory("Scroll Wheel Config") | ||
public static final ScrollWheelConfig SCROLL_WHEEL_CONFIG = new ScrollWheelConfig(); | ||
|
||
@ConfigName("Empty cursor [Shift + Left-Click + Drag]") | ||
@Comment("[Shift-Click] items of any type") | ||
public static Boolean LMBTweakShiftClickAny = true; | ||
|
||
@ConfigName("Item in cursor [Shift + Left-Click + Drag]") | ||
@Comment("[Shift-Click] items of the held type") | ||
public static Boolean LMBTweakShiftClick = true; | ||
|
||
@ConfigName("[Right-Click + Drag] over existing slots") | ||
public static Boolean RMBTweak = true; | ||
|
||
@ConfigName("[Left-Click + Drag] to pick up items") | ||
public static Boolean LMBTweakPickUp = true; | ||
} | ||
|
||
public static class ScrollWheelConfig { | ||
|
||
@ConfigName("Enable Scroll Wheel Tweaks") | ||
public static Boolean enableScrollWheelTweaks = true; | ||
|
||
@ConfigName("Invert scroll direction: cursor/slot") | ||
@Comment("For cursor/slot item transfer") | ||
public static Boolean invertScrollCursorSlotDirection = false; | ||
|
||
// @ConfigName("Invert scroll direction: inventories") | ||
// @Comment("For item transfer between inventories") | ||
// public static Boolean invertScrollInventoryDirection = false; | ||
// | ||
// @ConfigName("Position aware scrolling inventory transfer") | ||
// @Comment("Slot position will determine scroll direction") | ||
// public static Boolean positionAwareScrolling = false; | ||
// | ||
// @ConfigName("Wheel slot search order (see comment)") | ||
// @Comment("true = first to last, false = last to first") | ||
// public static Boolean wheelSearchOrder = true; | ||
// | ||
// @ConfigName("[ScrollWheel] transfer (see comment)") | ||
// @Comment("true = cursor/slot, false = inventories") | ||
// public static Boolean scrollWheelBehavior = true; | ||
// | ||
// @ConfigName("[Shift + ScrollWheel] transfer (see comment)") | ||
// @Comment("true = inventories, false = cursor/slot") | ||
// public static Boolean shiftScrollWheelBehavior = true; | ||
} | ||
} |
Oops, something went wrong.