Upgrading to the modern UI template
Onirim opened this issue ยท 2 comments
I use the old UI template at this time, but for since DragonFlight, the templates used for UI pannels are differents.
I can use this:
ButtonFrameTemplate_HidePortrait(frame)
ButtonFrameTemplate_HideButtonBar(frame)
frame.Inset:Hide()
Can help!
myFrame:SetPortraitToUnit(unitToken)
myFrame:SetPortraitToClassIcon() (which doesn't seem to work???)
myFrame:SetPortraitToAsset(texturePathOrFileID)
myFrame:SetPortraitTextureRaw(texturePathOrFileID) (same as above but doesn't have as much baggage)