DgsSetMultiClickInterval: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
This function sets the determine time between 2 clicks of double click.
This function sets the interval among (n) times clicks.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool dgsSetDoubleClickInterval( int interval )
bool dgsSetMultiClickInterval( int interval )
</syntaxhighlight>
</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''interval:''' An int of the interval of double click (ms).
*'''interval:''' An int of the interval among clicks (ms).


===Returns===
===Returns===
Line 17: Line 17:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
DGS = exports.dgs
DGS = exports.dgs
DGS:dgsSetDoubleClickInterval(1000) -- Now, 2 clicks in 1 second will trigger double click event.
DGS:dgsSetMultiClickInterval(1000) -- Now, 2 clicks in 1 second will trigger double click event.
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{DGSFUNCTIONS}}
{{DGSFUNCTIONS}}

Revision as of 10:55, 22 January 2021

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

Syntax

bool dgsSetMultiClickInterval( int interval )

Required Arguments

  • interval: An int of the interval among clicks (ms).

Returns

Returns true if successful, false otherwise

Example

DGS = exports.dgs
DGS:dgsSetMultiClickInterval(1000) -- Now, 2 clicks in 1 second will trigger double click event.

See Also

Custom Cursor Functions

Multi Language Supports

Animation

3D Element

3D Interface

3D Line

3D Image

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Drag'N Drop

Grid List

Image

Memo

Menu

Label

Layout

Line

Progress Bar

Radio Button

Scale Pane

Scroll Bar

Scroll Pane

Selector

Style

Switch Button

Tab Panel

Window

Basic Shape Plugins

Circle

Quadrilateral

Rounded Rectangle

Other Plugins

Blur Box

Canvas

Chart

Color Picker

Effect 3D

Gradient

Mask

Media Browser

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Screen Source

SVG

Tooltips