View Single Post
05/02/23, 11:24 AM   #12
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
total necro but is ontopic so worth it.

Im looking at using some of this to add the currency images for gold, ap, telvar and writ vouchers to my bank balance output.

My question is would i need to make 4 seperate top level windows or 4 controls within it? Or can i reuse the same one and change the image being used on the fly in the same line of text output?

Code:
local tlw = WINDOW_MANAGER:CreateTopLevelWindow("WindowName")
tlw:SetDimensions(256,256)
tlw:SetAnchor(CENTER)
tlw:SetHidden(true)
 
local image = WINDOW_MANAGER:CreateControl("WindowNameImage", tlw, CT_TEXTURE)
image:SetAnchorFill(tlw)
WindowNameImage:SetTexture("QuestVisions/Maps/auridon.dds")
ideally what Id like to end up with is something that allows me to do something like this to display each of them:

Code:
df(tlwap .. "gold amount here" .. tlwap .. "ap amount here" .. tlwtelvar .. "telvar amount here" .. tlwwv .. "writ voucher amount here")
while changing the "WindowNameImage:SetTexture("QuestVisions/Maps/auridon.dds")" for each one? or have to make 4 controls with seperate images?

**EDIT

nevermind I think I may have found a way with something like this: |t120:120:esoui/art/icons/pet_081.dds|t

Last edited by sinnereso : 05/02/23 at 02:36 PM.
  Reply With Quote