Thread Tools Display Modes
08-14-21, 01:34 AM   #1
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
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.
  Reply With Quote
08-14-21, 08:15 AM   #2
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
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.
  Reply With Quote
08-14-21, 08:15 AM   #3
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
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.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Portrait(Border) Target/Focus

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off