benilla-re systems structs docs

BuildTalentTabs

function · ui · primitive

Address
0x4f2c00 · 580 bytes, up to 0x4f2e43
Signature
void __cdecl ()
Meaning
Builds the player's talent tabs from TalentTab.dbc in file order and links each tab's run of Talent.dbc rows
Confidence
verified, proof one
Finding
ui/talents#talent-tabs

Finding: Talent tabs in ui: talents

The tab list is built once, on the first call, from TalentTab.dbc in file order: a row is kept when both its race mask (+0x2c) and class mask (+0x30) accept the player's race and class (0 accepts all, else bit race-1 or class-1 of the mask). The order field of the row is not read. A tab record is 16 bytes: the row id, the points spent (+4), the talent count (+8) and a pointer to the first Talent.dbc row of that tab (+0xc). GetNumTalentTabs() returns the count. GetTalentTabInfo(tab) returns four values: the localized name, the icon (nil when the row has none), the points spent and the background string; an invalid tab returns nil, nil, 0, nil.

The derivation is in the doc.

Callers 1

Callees 7

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