Problem with "Show Class Portraits" Option

Hey, i got a problem with the "Show Class Portrait Option" you can enable in oQueue.
I am playing with Default UI and using some simple scripts to modify it for me. I also use this script to show Class Portraits for all frames instead of the normal character portrait:

--Class icons instead of portraits
hooksecurefunc("UnitFramePortrait_Update",function(self)
        if self.portrait then
                if UnitIsPlayer(self.unit) then                         
                        local t = CLASS_ICON_TCOORDS[select(2, UnitClass(self.unit))]
                        if t then
                                self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
                                self.portrait:SetTexCoord(unpack(t))
                        end
                else
                        self.portrait:SetTexCoord(0,1,0,1)
                end
        end
end)

This script makes class portraits for every frame. When i enable oQueue it always ends up looking like this for player frame and target of target / focus target frame(it doesn't matter if "Show Class Portrait" Option ist on/off, always looks like in the screen).
When i disable my script oQueue class portraits are shown for target and focus and the rest is normal character portrait.

What can i do, to make Class Portraits in every frame without having to disable oQueue ):

Nobody knows?
do you have other Unit Frame addons ?
No it's default UI with a texture that makes the grey borders look more darker. But this is handled by a texture replacement and not with an addon so it won't interfere.
Then i only use scripts to modify my unitframes like said before. Theres one for class portraits and one for class color behind the target name. I also scaled the unitframes a bit down so they are 0.8 and not 1. (Maybe its because of this? need to test it)

 
Problem fixed. Just diabled LUA code for oQueue ClassPortraits :D
Thanks for your help!
 
I have the same problem.
How do you disabled LUA code for oQueue ClassPortraits?
uncheck: oq / setup / use class portraits
Log in to leave a reply.