DgsGetMultiClickInterval: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ This function gets the determine time between 2 clicks of double click. ==Syntax== <syntaxhighlight lang="lua"> int dgsGetDoubleClickInterval(...")
 
(DGS (OOP Syntax)/(Template Organization) Mission)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
This function gets the determine time between 2 clicks of double click.
This function gets the interval among (n) times clicks.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int dgsGetDoubleClickInterval( )
int dgsGetMultiClickInterval( )
</syntaxhighlight>
</syntaxhighlight>
{{DGS/OOP|
    Method = '''dgsRootInstance''':getMultiClickInterval|
    Counterpart = dgsSetMultiClickInterval
}}


===Returns===
===Returns===
Returns a ''integer'' indicates the double click interval.
Returns a ''integer'' indicates the click interval (ms).


==Example==  
==Example==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
DGS = exports.dgs
DGS = exports.dgs
local button = DGS:dgsCreateButton(0.2,0.2,0.2,0.1,"test",true)
local interval = DGS:dgsGetMultiClickInterval()
DGS:dgsAddSizeHandler(button,0.2,0.2,0.2,0.2)
outputChatBox(interval)
local state = DGS:dgsIsSizeHandled(button)
outputChatBox( tostring(state) )
</syntaxhighlight>
</syntaxhighlight>


==See Also==
=See Also=
{{DGSFUNCTIONS}}
 
==<span style="color:#eb3f00;text-shadow:0.05em 0.05em 0.2em #00000099;">General Functions</span>==
{{DGS General Functions}}
 
==<span style="color:#eb3f00;text-shadow:0.05em 0.05em 0.2em #00000099;">General Events</span>==
{{DGS Events/General}}

Latest revision as of 23:17, 3 May 2021

This function gets the interval among (n) times clicks.

Syntax

int dgsGetMultiClickInterval( )

DGS OOP Syntax Help! I don't understand this!

Method: dgsRootInstance:getMultiClickInterval(...)
Counterpart: dgsSetMultiClickInterval

Returns

Returns a integer indicates the click interval (ms).

Example

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

See Also

General Functions

General Events