As you can see by the grayed out keybind, interaction is disabled
Lua Code:
local registerOnTryHandlingInteraction = LibInteractionHook.RegisterOnTryHandlingInteraction
local wayshrineString = GetString(SI_DEATH_PROMPT_WAYSHRINE):lower()
registerOnTryHandlingInteraction("Addon_Name", SI_LIB_IF_GAMECAMERAACTION5, function(action, interactableName, interactionBlocked, isOwned, additionalInteractInfo, context, contextLink, isCriminalInteract, currentFrameTimeSeconds)
if interactableName:lower():match(wayshrineString) then -- This is in theory
return true -- to disable it
end
end)
Here it is also hidden.
Lua Code:
local registerOnTryHandlingInteraction = LibInteractionHook.RegisterOnTryHandlingInteraction
local hideInteraction = LibInteractionHook.HideInteraction
local wayshrineString = GetString(SI_DEATH_PROMPT_WAYSHRINE):lower()
registerOnTryHandlingInteraction("Addon_Name", SI_LIB_IF_GAMECAMERAACTION5, function(action, interactableName, interactionBlocked, isOwned, additionalInteractInfo, context, contextLink, isCriminalInteract, currentFrameTimeSeconds)
if interactableName:lower():match(wayshrineString) then -- This is in theory
hideInteraction()
return true -- to disable it
end
end)
Either one of those could be pasted in a blank addon's lua and it will work. As in, nothing else is needed to be done.
No need to modify INTERACTIVE_WHEEL_MANAGER.StartInteraction
The only other thing that must be done is adding this to the manifest.
## DependsOn: LibInteractionHook>=3