View Single Post
05/21/14, 06:36 PM   #2
thelegendaryof
 
thelegendaryof's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 161
Originally Posted by Tar000un View Post
Hi,

from http://www.esoui.com/forums/showthread.php?t=1541

i ve a lua code like the Clear / SetAnchor,

Code:
AddOnUI:ClearAnchors();
AddOnUI:SetAnchor( TOPLEFT, GuiRoot, TOPLEFT, 0, 0);
I ve also other control in. A texture and a label, with and anchorfill in a backdrop. I tryed to clear / set the backdrop without any success.

As exemple, see 1.2.{3.1,3.2}. Where 2:SetAnchor( _, 1, _,_,_);
I clear from 3.2, then 3.1, then 2, then 1 and reset in the first order.

But that works once and after my UI get bad offset (typically, my label go to the cursor), and UI's position isnt reset.
I'm not sure if I understand you correctly - however like I've posted the other thread (deleted it there now since it was OT)
just reapply your above code in OnUpdate for every Frame (and dont forget the Buffer)

Last edited by thelegendaryof : 05/21/14 at 06:39 PM.
  Reply With Quote