View Single Post
07/15/21, 02:23 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Could be this one:
https://github.com/esoui/esoui/blob/...ayer.lua#L1981

PLAYER_TO_PLAYER is the global and the function would e.g. be:
https://github.com/esoui/esoui/blob/...ayer.lua#L1850

ShowPlayerInteractMenu(isIgnored)
To get the target's character and displayname you can use:
Lua Code:
  1. local currentTargetCharacterName = self.currentTargetCharacterName
  2.         local currentTargetCharacterNameRaw = self.currentTargetCharacterNameRaw
  3.         local currentTargetDisplayName = self.currentTargetDisplayName
where self is PLAYER_TO_PLAYER


But PLEASE: Do NOT override this function but just use a ZO_PreHook or SecurePostHook (called after original code then) instead.
If you want to suppress the menu to show a ZO_PreHook could be used, do your checks and if the menu should not be shown return true then so the original func won't be called anymore.

Last edited by Baertram : 07/15/21 at 02:29 AM.
  Reply With Quote