target/focus portrait flash/fade
Hello,
with the default UI a player target- and focus-portrait will start to flash/fade when at lower health. I guess it will start flashing under 15% hp and the fade starts under 30%. Is it possible to disable this function somehow? I couldnt find any CVar related to this. Example (Portrait): https://imgur.com/a/1FSuQqI |
Looks like it's handled by TargetFrame_HealthUpdate(). It looks like it's safe to redirect to a dummy function. Other than that, there's no setting to configure it.
|
Thank you :)
I was looking up the same part of the code yesterday but I didnt thought it is related to that function/even copied it.:rolleyes: So theres no way to stop this from happening? I was hoping/searching for a code/script but couldn't find anything related.:confused: Since I am not good with lua (only ripping/editing codes) I am not sure if theres anything I can do about that. The main reason for me is that it is not necessary, annoying and it can cause issues with other addons. For example with BigDebuffs which shows icon/timers in portraits and the fade-function is messing with the alpha of the icons. The Focus-Frame Portrait stays tainted even back at full health until manually refreshing and other things like that. It would be great to just disable it somehow. If theres something to brute force this I would appreciate it. |
Here's an example 0f what I was talking about; redirecting the function to a dummy function.
I added a couple other functions to redirect and a 4th to hook and reset the color. Lua Code:
|
Ty so much:)
I didnt even know that DoNothing exists.:rolleyes: That really makes disabling for not important functions much easier. What I dont understand is the correlation between the TargetFrame and the FocusFrame related to these functions. Why is the FocusFrame affected by the function and those changes when its not called at all? It would make sense for me when I have to target something in order to get it on Focus but it is possible to do that with mouseover/scripts/macros and keybinds (arenas/bg) without targeting anything. Maybe it is a stupid question but it would help me to understand the process. |
Quote:
Blizzard has a similar function called nop(). You could use that instead if you prefer. Quote:
Quote:
Behind these are the /target and /focus commands. Both commands work the exact same way on their respective units and are very powerful when combined with macro conditionals. |
Ok got it :)
Thank you for your help and the exact explanation. Btw. I love your addons/work. |
All times are GMT -6. The time now is 04:23 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI