CNamePlateHealthBar::OnFieldChanged
function · ui · orchestration
- Address
0x7cc570· 95 bytes, up to0x7cc5ce- Meaning
- Resets the bar range and value from the unit's 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 0
None by a direct call or jump.
Callees 2
- ClntObjMgrObjectPtr objectlayer
- CSimpleStatusBar::SetMinMaxValues ui
Calls and jumps by a bare address, from tables/calls.tsv.