ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Remove boss health from compass. (https://www.esoui.com/forums/showthread.php?t=9029)

Greevir 03/10/20 05:32 PM

Remove boss health from compass.
 
Is there an addon anywhere that removes the boss health from the compass or how difficult would it be to do so? I already use a UI that has it's own boss bar and I kinda hate how the vanilla one covers the compass anyways.

KLISK 03/10/20 11:34 PM

Perhaps I will add such a setting in PerfectPixel.

Greevir 03/11/20 08:08 AM

Quote:

Originally Posted by KLISK (Post 40513)
Perhaps I will add such a setting in PerfectPixel.

That would be great! Thank you!

Marazota 03/11/20 08:38 AM

i already have this option in one of my addons
dont know which one
mby lui extended
or compass maintenance


ArtOfShred 03/11/20 09:05 AM

You can hide it in LuiExtended. Under the default frames menu in LuiExtended - Unitframes you can toggle the compass boss bar off.

If somebody else wants to implement it in another addon feel free to just snag my code for it.

KLISK 03/11/20 11:47 AM

Since I use LUI, maybe I don’t need to add anything :)

@ArtOfShred do you intercept this function COMPASS_FRAME:GetBossBarActive()?

ArtOfShred 03/11/20 12:29 PM

Quote:

Originally Posted by KLISK (Post 40522)
Since I use LUI, maybe I don’t need to add anything :)

@ArtOfShred do you intercept this function COMPASS_FRAME:GetBossBarActive()?

Edit: Just took a quick look and looks like I hook BOSS_BAR.RefreshBossHealthBar().

And the menu toggle function calls COMPASS_FRAME:SetBossBarActive(true/false) depending on the setting to turn the bar directly on and off - just in case the player toggles it while they are standing in range of a boss.

Searching for "compass" in UnitFrames.lua gets you the two relevant functions for handling.


All times are GMT -6. The time now is 08:44 AM.

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