benilla-re systems structs docs

s_reputationVisibleCount

global · ui

Address
0xb73764 · 4 bytes, up to 0xb73767
Type
uint32_t
Meaning
Holds the number of visible list entries, what GetNumFactions returns
Confidence
verified, proof one
Finding
ui/reputation#sorting-and-counts

Finding: Sorting and counts in ui: the reputation list

0x4d5c40 counts the children of each header (entries with the header's key and no header bit; an inactive entry counts under -1), sorts the header objects, then gives each entry its header's position in the sorted array. The visible count is the entry count less every child of a collapsed header and less every header with no children. The entries are sorted last and UPDATE_FACTION (372) is signalled. Headers with children come first, ordered by the localized name; a header without a row comes after one with a row; two without rows order by the larger key first. Rows order by header position, a collapsed child after everything, the header row before its children, then children by name.

The derivation is in the doc.