Required search keybind
This commit is contained in:
@@ -101,6 +101,11 @@ public static class ContextMenuShortcutPatches
|
||||
TryInteraction(__instance, itemContext, EItemInfoButton.LinkedSearch);
|
||||
}
|
||||
|
||||
if (Settings.RequiredSearchKeyBind.Value.IsDown())
|
||||
{
|
||||
TryInteraction(__instance, itemContext, EItemInfoButton.NeededSearch);
|
||||
}
|
||||
|
||||
if (Settings.SortingTableKeyBind.Value.IsDown())
|
||||
{
|
||||
MoveToFromSortingTable(itemContext, __instance);
|
||||
|
@@ -105,6 +105,7 @@ internal class Settings
|
||||
public static ConfigEntry<KeyboardShortcut> UnpackKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> FilterByKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> LinkedSearchKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> RequiredSearchKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> AddOfferKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> SortingTableKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> SearchKeyBind { get; set; }
|
||||
@@ -457,6 +458,15 @@ internal class Settings
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
configEntries.Add(RequiredSearchKeyBind = config.Bind(
|
||||
InputSection,
|
||||
"Required Search Shortcut",
|
||||
new KeyboardShortcut(KeyCode.None),
|
||||
new ConfigDescription(
|
||||
"Keybind to search flea market for items to barter for this item",
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
configEntries.Add(AddOfferKeyBind = config.Bind(
|
||||
InputSection,
|
||||
"Add Offer Shortcut",
|
||||
|
Reference in New Issue
Block a user