benilla-re systems structs docs

PromoteGuildSortKey

function · ui · primitive

Address
0x4d0fb0 · 119 bytes, up to 0x4d1026
Signature
void __fastcall (uint32_t key)
Meaning
Moves a sort key to slot 0 of the chain, flips its direction when already there, and sorts
Confidence
verified, proof one
Finding
ui/guild#changing-the-order

Finding: Changing the order in ui: the guild roster and its Lua API

SortGuildRoster(field) takes one of the strings rank, level, name, zone, class, group, online or note, compared without case, and an unknown string sorts by name. 0x4d0fb0(key) finds the key in the chain. At slot 0 its direction flips; elsewhere it keeps its remembered direction. It moves the key to slot 0, shifting the earlier slots down, sorts, and signals GUILD_ROSTER_UPDATE without an argument. An argument that is neither a string nor a number raises Usgae: SortGuildRoster("type"). SetGuildRosterShowOffline([flag]) defaults to on; the worker 0x4d0f70 does nothing for an unchanged value and otherwise stores the flag, sorts a nonempty roster and signals.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.