Unload ammo keybind
This commit is contained in:
@@ -66,6 +66,12 @@ namespace UIFixes
|
||||
}
|
||||
}
|
||||
|
||||
if (Settings.UnloadAmmoKeyBind.Value.IsDown())
|
||||
{
|
||||
__instance.GetItemContextInteractions(itemContext, null).ExecuteInteraction(EItemInfoButton.UnloadAmmo);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Settings.FilterByKeyBind.Value.IsDown())
|
||||
{
|
||||
__instance.GetItemContextInteractions(itemContext, null).ExecuteInteraction(EItemInfoButton.FilterSearch);
|
||||
|
||||
13
Settings.cs
13
Settings.cs
@@ -41,12 +41,12 @@ namespace UIFixes
|
||||
public static ConfigEntry<bool> UseHomeEnd { get; set; }
|
||||
public static ConfigEntry<bool> RebindPageUpDown { get; set; }
|
||||
public static ConfigEntry<int> MouseScrollMulti { get; set; }
|
||||
|
||||
public static ConfigEntry<KeyboardShortcut> InspectKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> OpenKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> TopUpKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> UseKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> UseAllKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> UnloadAmmoKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> FilterByKeyBind { get; set; }
|
||||
public static ConfigEntry<KeyboardShortcut> LinkedSearchKeyBind { get; set; }
|
||||
public static ConfigEntry<bool> UseRaidMouseScrollMulti { get; set; } // Advanced
|
||||
@@ -203,7 +203,7 @@ namespace UIFixes
|
||||
"Use Item Shortcut",
|
||||
new KeyboardShortcut(KeyCode.None),
|
||||
new ConfigDescription(
|
||||
"Keybind to use an item, such a consumable.",
|
||||
"Keybind to use an item, such a consumable",
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
@@ -216,6 +216,15 @@ namespace UIFixes
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
configEntries.Add(UnloadAmmoKeyBind = config.Bind(
|
||||
InputSection,
|
||||
"Unload Ammo Shortcut",
|
||||
new KeyboardShortcut(KeyCode.None),
|
||||
new ConfigDescription(
|
||||
"Keybind to unload the ammo in a magazine",
|
||||
null,
|
||||
new ConfigurationManagerAttributes { })));
|
||||
|
||||
configEntries.Add(FilterByKeyBind = config.Bind(
|
||||
InputSection,
|
||||
"Filter by Item Shortcut",
|
||||
|
||||
Reference in New Issue
Block a user