Required search keybind

This commit is contained in:
Tyfon
2024-09-23 09:26:04 -07:00
parent 3321d9bb02
commit 466f5c24b8
2 changed files with 15 additions and 0 deletions

View File

@@ -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);

View File

@@ -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",