Color Health Bar and Unit Name

Color Health Bar and Unit Name

0 Downloads

This Plater mod does two things.

* It sets the color of the health bar based on the percentage health remaining. The values passed into the ColorGradient function specify the color of the health bar at low, medium, and high percentages. As currently configured, it moves from Grey, to Yellow, to Red to match my Unit Frames, but this can be customized however you'd like.

* It sets the color of the Unit Name based on the reaction of the target. The Unit Name is red if the target is hostile, yellow if the target is neutral, and green if the target is friendly. The colors can be customized with the HostileUnitNameColor, FriendlyUnitNameColor, and NeutralUnitNameColor variables.

The UpdateUnitFrameColorFlag and UpdateUnitNameColorFlag can be used to turn the two features on/off.