View Single Post
08-04-21, 06:28 AM   #3
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
Ok ty, I forgot that SetPortraitToTexture exist.

I already changed the Classes-Circles texture to squares but it doesn't seem to affect the outcome.

At first I thought it will use the texture as a template to create the round shape.

Latest Blizzard-textures in my UI are custom made and I also tried to get most of my issues done by making matching textures for almost everything possible.

local _, class = UnitClass("player");
self:SetPortraitTextureRaw("Interface\\TargetingFrame\\UI-Classes-Circles");
self:SetPortraitTexCoord(unpack(CLASS_ICON_TCOORDS[strupper(class)]));
The last part seems to apply the metrics.

Basically I want to make all the round icons back to squares without affecting the portraits(avatar-prieview)frames which are supposed to be round like my targetframes.

There are quite a few frames:

Talentframe (Icons)
PvPQueue (Rewards, Icons)
ChallangesFrame (Affixes)
Encounterjournal (Suggesting-, Legendarypage)
Store (Icons)

Do you know any easy solution to achieve this?

Miiru did something similar with MiirGui but with changing Playerportraits too.

Last edited by rulezyx : 08-04-21 at 06:33 AM.
  Reply With Quote