Ui::setCursorSprite: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Changes the mouse cursor's sprite. <br>1 = Normal<br>6 = Left Arrow<br>7 = Right Arrow
Changes the mouse cursor's sprite. <br>1 = Normal<br>6 = Left Arrow<br>7 = Right Arrow
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.setCursorSprite(spriteId);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.setCursorSprite(spriteId);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''spriteId:''' int
*'''spriteId:''' int
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:33, 6 May 2017

Changes the mouse cursor's sprite.
1 = Normal
6 = Left Arrow
7 = Right Arrow

Syntax

mp.game.ui.setCursorSprite(spriteId);

Required Arguments

  • spriteId: int

Return value

  • Undefined

Example

// todo

See also