View Single Post
05/21/14, 04:20 PM   #9
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Tar000un View Post
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:
  1. EVENT_MANAGER:RegisterForEvent("MoveInteract_OnLoad", EVENT_ADD_ON_LOADED,
  2.    function(code, name)
  3.       if name ~= "MoveInteract" then return end
  4.       ZO_PlayerToPlayerAreaPromptContainer:ClearAnchors()
  5.       ZO_PlayerToPlayerAreaPromptContainer:SetAnchor(BOTTOM, ZO_PlayerToPlayerArea, BOTTOM, 0, -350)
  6.       EVENT_MANAGER:UnregisterForEvent("MoveInteract_OnLoad", EVENT_ADD_ON_LOADED)
  7.    end)
  Reply With Quote