Oh! I see the icon at the top left of my screen. I'll work on fixing that.
EDIT:
Adding the anchor back in the XML texture fixed it (along with changing LEFT to TOPLEFT for both point and relPoint). I'm assuming though there is something wrong with how I structured it overall? I now can't seem to lie two textures side by side by increasing the loop to i=2 via:
Lua Code:
local temp = BarTracker.guiFront;
local relPoint = TOPLEFT
for i=1, 2, 1 do
d("Putting slot")
d(relPoint)
local slot = wm:CreateControlFromVirtual("Bar_Slot_" .. i, BarTracker.guiFront, BarTracker.guiTemplate)
slot:SetAnchor(TOPLEFT, temp, relPoint, 0, 0)
slot:SetHidden(false)
local tex = slot:GetChild(1)
tex:SetTexture("/esoui/art/icons/ability_templar_purifying_light.dds")
temp = slot;
relPoint = TOPRIGHT
end
I got a much better feel for Anchors from a
page on the wiki but I don't see where my logic is flawed.