Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » Developer Discussions » Lua/XML Help » Display a dds image in the UI


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off