View Single Post
06/13/20, 07:39 AM   #7
QuantumPie
AddOn Author - Click to view addons
Join Date: Sep 2019
Posts: 32
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:
  1. local temp = BarTracker.guiFront;
  2.     local relPoint = TOPLEFT
  3.     for i=1, 2, 1 do
  4.         d("Putting slot")
  5.         d(relPoint)
  6.         local slot = wm:CreateControlFromVirtual("Bar_Slot_" .. i, BarTracker.guiFront, BarTracker.guiTemplate)
  7.         slot:SetAnchor(TOPLEFT, temp, relPoint, 0, 0)
  8.         slot:SetHidden(false)
  9.         local tex = slot:GetChild(1)
  10.         tex:SetTexture("/esoui/art/icons/ability_templar_purifying_light.dds")
  11.         temp = slot;
  12.         relPoint = TOPRIGHT
  13.     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.

Last edited by QuantumPie : 06/13/20 at 08:11 AM.
  Reply With Quote