CNamePlateHealthBar::WatchUnit
function · ui · orchestration
- Address
0x7cc510· 89 bytes, up to0x7cc568- Meaning
- Watches the unit's health and maximum health fields
- Confidence
- verified, proof one
- Finding
- ui/nameplates#bar-colour-and-values
Finding: Bar colour and values in ui: the nameplate frame
0x7cbaa0 sets the bar colour: red 0xffff0000 when the unit's reaction toward the player is 1 or less, else blue 0xff0000ff for a player unit, green 0xff00ff00 when the reaction is 4 or more, else yellow 0xffffff00. 0x7cc3d0 sets the bar range 0 to UNIT_FIELD_MAXHEALTH and the value to UNIT_FIELD_HEALTH, so GetValue() is the health and not a fraction;
watchers on both fields (0x7cc510) keep them current through 0x7cc570.
The derivation is in the doc.
Callers 1
Callees 1
- ClntObjMgrSetObjectMirrorHandler objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.