Ui::setCursorSprite: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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><br>
None = 0,
<br>
Normal = 1,
<br>
TransparentNormal = 2,
<br>
PreGrab = 3,
<br>
Grab = 4,
<br>
MiddleFinger = 5,
<br>
LeftArrow = 6,
<br>
RightArrow = 7,
<br>
UpArrow = 8,
<br>
DownArrow = 9,
<br>
HorizontalExpand = 10,
<br>
Add = 11,
<br>
Remove = 12,
<br><br>
 
==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 36:
==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:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:15, 5 March 2019

Changes the mouse cursor's sprite.

None = 0,
Normal = 1,
TransparentNormal = 2,
PreGrab = 3,
Grab = 4,
MiddleFinger = 5,
LeftArrow = 6,
RightArrow = 7,
UpArrow = 8,
DownArrow = 9,
HorizontalExpand = 10,
Add = 11,
Remove = 12,

Syntax

mp.game.ui.setCursorSprite(spriteId);

Required Arguments

  • spriteId: int

Return value

  • Undefined

Example

// todo

See also