github Jehree/SPT-InteractableExfilsAPI v1.4.0

latest releases: v1.5.0, v1.4.1
8 days ago

For players

nothing really new here but doing this update is heavily recommended since new features for modders has been added.

New changes for modders

Please note that there is no breaking changes in this version so you don't necessarily need to update your code.

  • new RefreshPrompt public method on CustomExfilTrigger that will remember last selected item index.
  • added DisableVanillaActions public boolean on InteractableExfilsService
  • added IsFirstRender static method that will allow to make the difference between first render and re-renders (very conveniant to initialize a local state in your action handler)
  • automatic refresh of the prompt once an action is executed
  • automatic refresh of the prompt when BepInEx config is changed
  • InteractableExfilsService instance can be retrieved with InteractableExfilsService.Instance()
  • fix: RefreshPrompt is now ignored when called inside the handler (to avoid infinite loop)
  • fix: RequiresManualActivation not working as intended the first time player enter an exfil zone (WIP)

Docs for modders

Don't miss a new SPT-InteractableExfilsAPI release

NewReleases is sending notifications on new releases.