allow same space, massive selectionbox perf fix, 3 multiselect options
This commit is contained in:
20
Settings.cs
20
Settings.cs
@@ -19,6 +19,16 @@ namespace UIFixes
|
||||
Always
|
||||
}
|
||||
|
||||
internal enum MultiSelectStrategy
|
||||
{
|
||||
[Description("First Available Space")]
|
||||
FirstOpenSpace,
|
||||
[Description("Same Row or Below (Wrapping)")]
|
||||
SameRowOrLower,
|
||||
[Description("Keep Original Spacing (Best Effort)")]
|
||||
OriginalSpacing
|
||||
}
|
||||
|
||||
internal class Settings
|
||||
{
|
||||
// Categories
|
||||
@@ -55,6 +65,7 @@ namespace UIFixes
|
||||
|
||||
// Inventory
|
||||
public static ConfigEntry<bool> EnableMultiSelect { get; set; }
|
||||
public static ConfigEntry<MultiSelectStrategy> MultiSelectStrat { get; set; }
|
||||
public static ConfigEntry<bool> ShowMultiSelectDebug { get; set; } // Advanced
|
||||
public static ConfigEntry<bool> SwapItems { get; set; }
|
||||
public static ConfigEntry<bool> SwapImpossibleContainers { get; set; }
|
||||
@@ -283,6 +294,15 @@ namespace UIFixes
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
configEntries.Add(MultiSelectStrat = config.Bind(
|
||||
InventorySection,
|
||||
"Multiselect Item Placement",
|
||||
MultiSelectStrategy.OriginalSpacing,
|
||||
new ConfigDescription(
|
||||
"Controls where multiselected items are placed, relative to the item being dragged. Note that original spacing only refers to items that were in the same grid.",
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
configEntries.Add(ShowMultiSelectDebug = config.Bind(
|
||||
InventorySection,
|
||||
"Show Multiselect Debug",
|
||||
|
||||
Reference in New Issue
Block a user