keybind events aren't mutually exclusive; fix object focus cancelling keybinds; bindable selection box key

This commit is contained in:
Tyfon
2024-06-21 01:10:37 -07:00
parent 83a88e6ae6
commit c5f90f2f43
4 changed files with 15 additions and 15 deletions

View File

@@ -66,6 +66,7 @@ namespace UIFixes
// Inventory
public static ConfigEntry<bool> EnableMultiSelect { get; set; }
public static ConfigEntry<KeyboardShortcut> SelectionBoxKey { get; set; }
public static ConfigEntry<MultiSelectStrategy> MultiSelectStrat { get; set; }
public static ConfigEntry<bool> ShowMultiSelectDebug { get; set; } // Advanced
public static ConfigEntry<bool> SwapItems { get; set; }
@@ -304,6 +305,15 @@ namespace UIFixes
null,
new ConfigurationManagerAttributes { })));
configEntries.Add(SelectionBoxKey = config.Bind(
InventorySection,
"Selection Box Key",
new KeyboardShortcut(KeyCode.Mouse0),
new ConfigDescription(
"Mouse button or keyboard key to hold while dragging to create a selection box. Press Reset to use Mouse0 (left mouse button)",
null,
new ConfigurationManagerAttributes { })));
configEntries.Add(MultiSelectStrat = config.Bind(
InventorySection,
"Multiselect Item Placement",