benilla-re systems structs docs

s_questHeaderExpanded

global · ui

Address
0xbb748c · 4 bytes, up to 0xbb748f
Type
uint32_t
Meaning
Holds a bit per header, set while the header is expanded
Confidence
verified, proof one
Finding
ui/questlog#the-collapse-state

Finding: The collapse state in ui: the quest log list

Each header has a bit in the expanded mask 0xbb748c, by its position in the header id array. Before a rebuild the old ids are snapshotted, an id kept as it is when its bit is clear (collapsed) and negated when set; after the new array is sorted, a new id equal to a snapshot entry has its bit cleared, so collapsed state follows the id and not the position. A header whose id is 0 is always forced collapsed, and an expanded header with id -N matches a collapsed one with id N.

The derivation is in the doc.