Thread Tools Display Modes
03/31/20, 04:54 PM   #1
oriaxaurusrex
Join Date: Mar 2020
Posts: 3
Health bar glow!

I am very new at trying to fiddle with scripts. Is there anyone who can point me in the right direction in order to disable the glow around the health bar when you have some sort of buff or debuff?

After exhaustive research I think its due to these:

ZO_UnitVisualizer_ArmorDamage:PlayPowerIncreaseAnimation(bar, info, instant)

ZO_UnitVisualizer_ArmorDamage:PlayPowerDecreaseAnimation(bar, info, instant)

How do I disable these in the lua?! Please help! I have no idea what sort of command to use. I looked at how people disable attribute bars but something tells me this isn't the same.
  Reply With Quote
03/31/20, 05:30 PM   #2
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
without real testings, i guess you could simply do:

Lua Code:
  1. /script EVENT_MANAGER:UnregisterForEvent("ZO_UnitAttributeVisualizerplayer", EVENT_UNIT_ATTRIBUTE_VISUAL_ADDED)
  Reply With Quote
03/31/20, 07:39 PM   #3
oriaxaurusrex
Join Date: Mar 2020
Posts: 3
That worked!

Thank you! That certainly works however I also lose the shielding animation. While I think I am willing to lose that functionality, I would still be interested in an approach that can target just the health glow animation (if that is even possible).
  Reply With Quote
04/01/20, 06:41 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
At this line the attribute bars are build:
https://github.com/esoui/esoui/blob/...ebars.lua#L452

The class ZO_UnitAttributeVisualizerplayer (defined here: ) will later take the control with the variable "healthControl" to apply the glow etc.

The global variable for the attribute bars is PLAYER_ATTRIBUTE_BARS, defined here
https://github.com/esoui/esoui/blob/...ebars.lua#L714

So you can get the healthControl of the global var like this:
Lua Code:
  1. local healthControl = GetControl(PLAYER_ATTRIBUTE_BARS, "Health")

Maybe you can then check the child controls of the healthControl (e.g. via the addons zgoo or merTorchbug to get a list of functions, attributes and childs) and there exists one with the name Glow somewhere, which you can try to assign to a variable and use glowControl:SetHidden(true)
  Reply With Quote
04/01/20, 04:52 PM   #5
oriaxaurusrex
Join Date: Mar 2020
Posts: 3
Wow!

Sweet, that is not something I considered (as you can tell, I barely understand what I'm doing). I will take a look and see if I can isolate it.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Health bar glow!

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