Script::SetCursor
function · ui · primitive
- Address
0x489490· 285 bytes, up to0x4895ac- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function SetCursor
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/worldcursor#setcursor
Finding: SetCursor in ui: the pointer picture
SetCursor(name) takes a string, a number or nil to reset. A number converts to its text (0x6f3690 through
0x6f7c80) and is then a name like any other, so SetCursor(5) loads a custom cursor named 5. Called with no argument,
or with a value of another type, it raises Usage: SetCursor("cursor" or nil). Eight names, compared without case, give a mode:
POINT_CURSOR 1, CAST_CURSOR 2, BUY_CURSOR 3, ATTACK_CURSOR 4, and the same names with _ERROR_CURSOR
for 21, 22, 23 and 24. Any other name is a custom cursor. A mode, or a custom cursor that loads, returns the
number 1; a custom cursor that fails to load returns nil. Nil sets the base mode with 0x523d30 and returns
nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- SetCursorMode ui
- SetCustomCursor ui
- ShowBaseCursor ui
- SStrCmpI storm
- lua_type lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.