Script::GetTalentTabInfo
function · ui · primitive
- Address
0x4f3040· 286 bytes, up to0x4f315d- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a tab's name, icon, points spent and background, or nil, nil, 0, nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 7
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.