MarkPortraitDirty
function · ui · orchestration
- Address
0x524e10· 321 bytes, up to0x524f50- Meaning
- Queues a GUID for the portrait events and marks its cached portrait dirty
- Confidence
- verified, proof one
- Finding
- ui/portraits#marking-and-draining
Finding: Marking and draining in ui: unit portraits
0x524e10(&guid) marks a portrait dirty. A GUID already on the pending list (0xc0cdd0, head 0xc0cdd4) returns at once and keeps its place. Otherwise the mark links a new node at the head of the list, with the GUID at +8 and +0xc, and sets the dirty byte of the GUID cache entry, if one exists.
Each frame 0x524cd0 walks the list from the head, so the newest mark drains first. A node whose unit is held but not ready (the latches below) stays, and every other node leaves the list and signals the unit events UNIT_PORTRAIT_UPDATE (0xb8) and UNIT_MODEL_CHANGED (0xb9) for the GUID. 0x524f60 returns at once for a unit whose GUID is on the pending list.
The derivation is in the doc.
Callers 3
- RefreshPortrait ui
- BakePortrait ui
- CGPlayer_C::OnPlayerFlagsChanged objectlayer
Callees 3
- NextLink526a20 ui
- LinkOrEnd5272b0 ui
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.