Texture::SetDrawLayer
function · ui · primitive
- Address
0x79a780· 270 bytes, up to0x79a88d- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Texture method SetDrawLayer
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/texture#draw-layer-and-blend-mode
Finding: Draw layer and blend mode in ui: texture colour and drawing
SetDrawLayer(layer) moves the texture to one of the five draw layers and GetDrawLayer() answers the layer's name. The names
are BACKGROUND, BORDER, ARTWORK, OVERLAY and HIGHLIGHT, matched ignoring case. A texture starts on the layer its
creator gives it with the blend mode BLEND. SetBlendMode(mode) takes DISABLE, ALPHAKEY, BLEND, ADD or MOD, which are
modes 0 to 4 in the order 0 DISABLE, 1 ALPHAKEY, 2 BLEND, 3 ADD, 4 MOD, and GetBlendMode() answers the name, UNKNOWN
for any other value. A name that is not a string or not in the list raises Usage: %s:SetDrawLayer("layer") or
Usage: %s:SetBlendMode("mode") and changes nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- DrawLayerNameToId ui
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CScriptRegion::SetRegionParent ui
Calls and jumps by a bare address, from tables/calls.tsv.