View Single Post
08/30/23, 04:54 PM   #4
Anna Lee
Join Date: Aug 2023
Posts: 4
Added another line to the code for the color filling and changed the imageControl:SetTexture(“”) but still without success. Not sure what else I could try at this point.

Lua Code:
  1. function addon.InitializeUI()
  2.     -- Create a control for the image
  3.     local imageControl = WINDOW_MANAGER:CreateControl("MyAddonImage", GuiRoot, CT_TEXTURE)
  4.     imageControl:SetTexture("/esoui/art/ava/ava_allianceflag_neutral.dds")
  5.     imageControl:SetDimensions(100, 100)
  6.     imageControl:SetAnchor(CENTER, GuiRoot, CENTER, 0, 0)
  7.     imageControl:SetHidden(false)
  8.     imageControl:SetColor(1, 0, 0, 0.5)
  Reply With Quote