CGNamePlateFrame::UpdateLevel
function · ui · orchestration
- Address
0x7cbb40· 408 bytes, up to0x7cbcd7- Meaning
- Shows the level text or the skull for the unit and colours the level by difficulty
- Confidence
- verified, proof one
- Finding
- ui/nameplates#level-text-and-skull
Finding: Level text and skull in ui: the nameplate frame
0x7cbb40 refreshes the level text and the skull from the displayed level L (unitlevels#the-level-on-a-plate) and the active player's level P; with no player it does nothing. A world boss (rank 3) shows the skull and no level. A hostile unit (reaction 1 or less) with P at most L minus 10 shows the skull and no level. Every other unit shows the level and no skull. A shown level is written as decimal text in the difficulty colour of P and L.
The derivation is in the doc.
Callers 3
- CGUnit_C::UpdateNamePlate objectlayer
- CGUnit_C::OnLevelChanged objectlayer
- CGNamePlateFrame::Bind ui
Callees 12
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- IsTrivialUnit objectlayer
- CGUnit_C::GetCreatureRank objectlayer
- CGUnit_C::UnitReaction objectlayer
- SStrPrintf storm
- CSimpleFontString::SetText ui
- CScriptRegion::SetVertexColor ui
- CScriptRegion::Unregister ui
- CScriptRegion::Register ui
- DisplayedLevel ui
- DifficultyColor ui
Calls and jumps by a bare address, from tables/calls.tsv.