View Single Post
04/04/14, 10:25 AM   #3
Sharp
 
Sharp's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 32
Originally Posted by ingeniousclown View Post
Spend some time to study the "Controls" part of the wiki: http://wiki.esoui.com/Controls

It's not laid out in the absolute best way and is sometimes confusing, but it has (almost) all of the information you will need.

A few general tips:
In most cases you'll only ever need to call WINDOW_MANAGER:CreateControl(name, parent, type) or :CreateTopLevelWindow(name)
Created controls/windows can be accessed directly by name after they're created, regardless of their place in the hierarchy.
:SetDimensions(), :SetHidden(), :SetColor(), :SetTexture(), :SetAnchor(), :ClearAnchors(), and :SetTexture() are a few (but not all!) of the important calls for controls. (I didn't include arguments in that list in the interest of time, you can look them up on the wiki )
Thanks for the input I really appreciate it! I am really looking for some insight on the SetAnchor function, as I am not sure how to position it. Also, I see a lot of people using a CHAIN function to create controls, is that needed? What is the best way to position control relevant to the previous control?
  Reply With Quote