Replies: 1 comment
-
I do something similar to color a border around the nameplates based on what I've targeted, and the nameplate callback function is enough to color and "uncolor" the target when I swap targets. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I not really sure if this is suggestion or just asking for help.
Describe the solution you'd like
I use oUF to style nameplates, and I would like to set a specific color to the nameplate which is my current target.
Perhaps by adding an option to health element like
health.colorTarget = oUF:CreateColor(1.00, 1.00, 1.00)
would work?When
UnitIsUnit("nameplate%d", "target") == true
, thecolorTarget
would be applied, overriding other colors such ascolorThread
,colorReaction
, etc.Describe alternatives you've considered
I have tried a few different approaches without success:
.PostUpdateColor
, but it seems the health element does not listen toPLAYER_TARGET_CHANGED
event. While the color change when I target the nameplate, it does not change back when I switch targets.PLAYER_TARGET_CHANGED
event. However, the color does not revert when switching targets.If its possible to implement this behavior on the current version, I would appreciate an explanation of how can I achieve it.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions