Script::SetBagPortaitTexture
function · ui · primitive
- Address
0x4fa4f0· 374 bytes, up to0x4fa665- Signature
int __fastcall (lua_State *L)- Meaning
- Sets a texture to the circular portrait of a bag's icon, clearing it first
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/portraittextures#bag-portrait
Finding: Bag portrait in ui: portrait textures
SetBagPortaitTexture(texture, id) (the client's spelling) is 0x4fa4f0. Argument 1 must be a texture table, else it raises
the frame script object errors; argument 2 must be a number, else
Usage: SetBagPortaitTexture(texture, slot). The id is truncated and reduced by 1.
A result below 0 (id 0, the backpack, and the keyring) returns without touching the texture; 10 or more raises
Invalid slot in SetBagPortaitTexture. Otherwise the texture is cleared, and the container at cache index id - 1
(0x4f93e0) is resolved with mask 4. An empty slot, a missing container or a closed bank (ids 5 to 10) leaves the
texture cleared; else the path <StringLookups row 3>\<InventoryIcon_1> goes to the sink. Nothing is returned.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 15
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- GetContainerGuid ui
- SetPortraitTexture ui
- ClientDBStringLookup unassigned
- CGItem_C::GetInventoryIcon objectlayer
- SStrPrintf storm
- lua_settop lua
- lua_type lua
- lua_isnumber lua
- lua_tonumber lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CSimpleTexture::SetImage ui
Calls and jumps by a bare address, from tables/calls.tsv.