PokerDice

PokerDice

401 Downloads

Upgrading to the modern UI template

Onirim opened this issue ยท 2 comments

commented

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() 
commented

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)
commented

image
Done!