WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Portrait(Border) Target/Focus (https://www.wowinterface.com/forums/showthread.php?t=58890)

rulezyx 08-14-21 01:34 AM

Portrait(Border) Target/Focus
 
Hello,

so I noticed that some portraits look a bit off since they dont have real borders.

They are just cut circles and it can look weird for some previews like in this example.

So I want to create borders around them like this.

I tried to set up a black border around the target/focus portraits but I have issues with the frame layers.

If I choose low strata it will hide behind the portrait and with anything higher it will stay infront but also infront of the Target/Focus-TextureFrame:

like Here.

WeakAuras doesn't seem to be a good solution for this so I would need some help with lua.

Is it possible to do something like this so the border just sticks/anchored on the portrait without moving infront (other frames) or behind it (portrait)?

some scuffed example:
Code:

local function SetPortraitTexture (portrait, unit)
        if UnitIsUnit (unit, 'target' 'focus') and portrait then
                portrait:SetBackdrop("Interface\\TargetingFrame\\Ring")
        end
end

Any help is much appreciated. :)

rulezyx 08-14-21 08:15 AM

Ok I noticed some of the TargetingFrame(Textures) have uneven borders and I edited/recolored them and that seems to fix it for this parts.

rulezyx 08-14-21 08:15 AM

Ok I noticed some of the TargetingFrame(Textures) have uneven borders and I edited/recolored them and that seems to fix it for this parts.


All times are GMT -6. The time now is 10:02 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI