WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Show Player, Pet and Target Vitals on specific conditions (https://www.wowinterface.com/forums/showthread.php?t=59237)

Elrigh 09-26-22 09:11 PM

Show Player, Pet and Target Vitals on specific conditions
 
As Title says - I use Easyframes as Vitals right now and want to use the new implemented Frames in Dragonflight. There is an Option to hide the Vitals out of Combat but IŽd like additional conditions:
  • Hide when Out Of Combat OR
  • Hide When Vitals are 100% full OR
  • Hide when no Target is selected

Explanation: I want to see the Vitals as soon as I have a target, if the health (Pet as well) is not full, or when I enter Combat. Otherwise they should stay hidden. I already use MoveAnything to switch Vitals on and off with a Macro on a button, but this is annoying.

If possible, the vitals should be checked and shown individual.
If Target Exists then show all Vitals
If Target Does not Exist but Combat is true then show all Vitals
If Target Does not Exist and Combat is False and Health is 100% then hide Vital. (sepearate for Player, Pet, Focus).

I know that the conditions are available in different Addons so it should not be that hard to create an Addon which does exactly this. But it goes way over my ability to create one.

Is someone out there kind enough to pick up that task?

Elrigh 09-30-22 05:01 PM

I knew I had seen this feature a while ago. Here is the Addon which made it possible back then:
https://www.wowinterface.com/downloa...Fade.html#info

Sadly it is broken. Error:

Message: Interface\AddOns\daftFrameFade\daftFrameFade.lua:10: Attempt to register unknown event "UNIT_HEALTH_FREQUENT"
Time: Sat Oct 1 00:51:36 2022
Count: 1
Stack: Interface\AddOns\daftFrameFade\daftFrameFade.lua:10: Attempt to register unknown event "UNIT_HEALTH_FREQUENT"
[string "=[C]"]: in function `RegisterUnitEvent'
[string "@Interface\AddOns\daftFrameFade\daftFrameFade.lua"]:10: in main chunk

Locals: (*temporary) = <unnamed> {
0 = <userdata>
}
(*temporary) = "UNIT_HEALTH_FREQUENT"

Elrigh 10-02-22 04:54 AM

Fixed it by replacing UNIT_HEALTH_FREQUENT with UNIT_HEALTH.
Addon now works as intended. Does not work for Dragonflight Beta, producing loads of errors as expected.


All times are GMT -6. The time now is 12:06 AM.

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