DgsGetMouseStayDelay: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ This function gets the delay time that from mouse stops moving and cursor stays at a DGS element to onDgsMouseStay event triggers. ==Syntax== <syntaxhighlight lang="lua"> int dgsGetMouseStayDelay( ) </syntaxhighlight> ===Returns=== Returns a ''integer'' indicates the delay of staying of mouse. ==Example== <syntaxhighlight lang="lua"> DGS = exports.dgs local interval = DGS:dgsGetMouseStayDelay() outputChatBox(interval) </syntaxhighli...")
 
No edit summary
 
Line 9: Line 9:


===Returns===
===Returns===
Returns a ''integer'' indicates the delay of staying of mouse.
Returns a ''integer'' indicates the delay time.


==Example==  
==Example==  

Latest revision as of 11:25, 24 December 2022

This function gets the delay time that from mouse stops moving and cursor stays at a DGS element to onDgsMouseStay event triggers.

Syntax

int dgsGetMouseStayDelay( )

Returns

Returns a integer indicates the delay time.

Example

DGS = exports.dgs
local interval = DGS:dgsGetMouseStayDelay()
outputChatBox(interval)

See Also

General Functions

General Events