Originally Posted by Tar000un
Hmm i m reseting a position UI with a reloadui, and i find it very trashy but functionnal...
I tryed first with this way (clear and reset anchor), but the function works once and never do it again. :/
|
Just copy&paste that code to the end of any .lua file of any addon you use, it should work just fine.
But if you want stand-alone version you should have something like this:
MoveInteract.txt:
Code:
## Title: Move "Hold to Interact"
## APIVersion: 100003
MoveInteract.lua
MoveInteract.lua:
Lua Code:
EVENT_MANAGER:RegisterForEvent("MoveInteract_OnLoad", EVENT_ADD_ON_LOADED,
function(code, name)
if name ~= "MoveInteract" then return end
ZO_PlayerToPlayerAreaPromptContainer:ClearAnchors()
ZO_PlayerToPlayerAreaPromptContainer:SetAnchor(BOTTOM, ZO_PlayerToPlayerArea, BOTTOM, 0, -350)
EVENT_MANAGER:UnregisterForEvent("MoveInteract_OnLoad", EVENT_ADD_ON_LOADED)
end)