View Single Post
11/12/14, 03:38 PM   #6
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Perhaps we're talking about different things. If you have 2 textures for example:
Lua Code:
  1. tex1:SetDimensions(100, 100)
  2. tex2:SetAnchor(TOPLEFT, tex1, TOPLEFT, 1, 1)
  3. tex2:SetAnchor(BOTTOMRIGHT, tex1, BOTTOMRIGHT, -1, -1)

1) doesn't mean tex1 is 100x100px; it can be 67x67px, if GetUIGlobalScale() == 0.67
2) doesn't mean there's 1 px border between tex1 and tex2. Could be 1px, 0px or 2px, depending on the scale and alignment.
  Reply With Quote