Script::SetPortraitToTexture
function · ui · primitive
- Address
0x48d780· 290 bytes, up to0x48d8a1- Signature
int __fastcall (lua_State *L)- Meaning
- Sets a texture, named by a global or given as a table, to the circular portrait of a path
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/portraittextures#portrait-by-name
Finding: Portrait by name in ui: portrait textures
SetPortraitToTexture(target, path) is 0x48d780. The target is a name (a string or a number, turned into a string and
looked up as a global that must be a texture) or a texture table; the failures raise
SetPortraitToTexture(): Couldn't find texture named '%s', Couldn't find 'this' in texture object and
Wrong object type, expected texture. A table where a name was wanted reports the name as (null). A second argument
that is not a string or number returns silently; the texture is left alone and no error is raised. Otherwise the
path goes to the sink 0x525d30.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- SetPortraitTexture ui
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- FindFrameOfType ui
Calls and jumps by a bare address, from tables/calls.tsv.