Custom Interactions 1.5.0

Please do not ask when mod authors will update their mods to 3.9.X
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

(Library) Add custom context menu items to existing context menus, including adding custom submenus.

Installation:


Extract the ZIP to your SPT-AKI installation folder.


Note: This mod doesn't do anything on its own. It's a library for other mods to depend on.


Description:


A client-side mod that allows mod developers to add their own custom context menu items and custom submenus.
Currently, only item-related context menus are supported, and you can decide when your context menu items are added (inventory, handbook, modding screen, etc.).

"Interactions" is the game's term for context menu items, and this mod piggybacks on the game's "DynamicInteractions" that are used for dynamic menu items, such as the items in the Load Ammo submenu for magazines.


You can use the source code of my "Item Context Menu Extended" mod as an example of how to use this library.

  • hi bro , your mod is great ! i’m a mod carrier from a Chinese website,can i carry your mod to 逃离塔科夫中文社区 (oddba.cn)?

  • Would it be possible to add a "Disable" option to flashlights/lasers that would cause them to not turn on when the keybind is pressed? Would come in handy if you're running a white light during a night raid and only want to use IR, while still having the capability of white light when needed.

    • You're commenting on a library that doesn't add anything on its own...

      Also, adding keybinds is not the purpose of this library.

    • I meant to comment on your other mod, "Item Context Menu Extended" - didn't realize till just now, my apologies!


      I do not mean to add a keybind, I mean to add a context menu option that basically disables that flashlight/laser until it is enabled again via the context menu. Would be useful when running a light/laser combo and you want to switch between having white light capability or just using the IR from the laser.

    • I have no idea what you mean, or what prevents you from already being able to do that using "Item Context Menu Extended".

    • Item Context Menu Extended allows you to turn on or turn off the light/laser, I am requesting an option to disable the attachment entirely essentially until it gets re-enabled again via the context menu. This is just a QoL instead of the alternative of always having the IR on/flashlight off or vice versa.


      For example, say you have an IR laser with a white light combo during a night raid - you are running a pair of nods, so you do not need the white light majority of the time. You could disable the flashlight in the beginning of the raid, so now every time you press your tactical keybind - only the IR laser turns on (because the flashlight has been disabled). During that raid, you get into situations where your nods are not ideal and you would like to use white light - you could then re-enable the flashlight via the context menu and it would continue to function as normal (the light turns on when the tactical keybind is pressed).


      Totally understand if this is too big of an ask or outside of the scope of what you would like to achieve with your mod though, sorry for all of the confusion!

    • I just don't understand the use case.

      What's the difference between "turn on or turn off the light/laser" and "disable the attachment entirely"? You can already turn on/off and switch between the mods per attachment...

  • This mod is not installing properly with SP-EFT Manager.

    do manual install

    • Sounds like SP-EFT Manager ignores the "patchers" folder, for whatever reason.

    • Will be fixed.

      Thumbs Up 1
    • yes i reported - it was strange because i could not right click any lasers so did a manual install. but in case someone else comes across this issue.

  • is it possible to hide the context menu items?

    • The purpose of this mod is to add items, not remove items...

  • Hey man, this mod isn't working for me. I have custom interactions installed but when I click on "trader modding", the game freezes a bit but doesn't do anything when it resumes. Do you know what might be happening?

    • Nope. Never seen anything like it.

  • Is this mod and your backward compatible with 3.5.8?

    • It's a client mod, so it depends on EFT version.

      Version 1.1.1 is compatible with client version 0.13.0.5.23399 (SPT-AKI 3.5.7-3.5.8)

      Version 1.2.0 is compatible with client version 0.13.1.3.25206 (APT-AKI 3.6.0-3.6.1)

      Thumbs Up 1
  • @IcyClawz, Hello. Is this REQUIRED for your mods (i.e. Magazine Inspector, Item Attribute Fix,....) Thanks in advance.

    • It's only required for Item Context Menu Extended, as the description specifies. It's not needed at all for the other mods.

    • Thanks for the explanation. Sorry, I didn't realize that [You can use the source code of my "Item Context Menu Extended" mod as an example of how to use this library.] was referring to a mod requiring this.

  • cant wait for your mod!!