View Single Post
06/13/20, 07:35 AM   #6
QuantumPie
AddOn Author - Click to view addons
Join Date: Sep 2019
Posts: 32
Good to know Zgoo is a thing. I checked the component and noticed GetNamedChild was Blacklisted so I switched to using GetChild. The updated snippet is:

Lua Code:
  1. local slot = wm:CreateControlFromVirtual("Bar_Slot_" .. i, BarTracker.guiFront, BarTracker.guiTemplate)
  2. slot:SetAnchor(TOPLEFT, BarTracker.guiFront, TOPLEFT, 0, 0)
  3. slot:SetHidden(false)
  4. local tex = slot:GetChild(1)
  5. tex:SetTexture("/esoui/art/icons/ability_templar_purifying_light.dds")

Upon inspecting the texture component, GetTextureFileName now returns the correct path (as opposed to empty string) but I still don't see the texture, nor a white square. I have also removed the anchor within the texture component from the XML file.

Here is what the UI looks like:
  Reply With Quote