Only works on a reload
This small sample of code is just a small experiment to pull the protrait. It works, but requires a reload of the ui...First load shows nothing, but it shows up if I reload the UI...
Lua Code:
I'm not at all sure...any ideas? |
I guess you mean it all works, but the SetPortraitTexture() doesn't add the player to the portrait on first startup? If so it might be because for some reason you can't get the texture at startup. Try to delay the creation abit i.e:
Code:
local ADDON_NAME, ns = ... Lua Code:
|
That worked like a charm. Thank you so much!
...was drivin me crazy... |
All times are GMT -6. The time now is 09:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI