OnClientGUIDoubleClick: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[Category:Incomplete Event]] | [[Category:Incomplete Event]] | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event is fired when the user double clicks a GUI element. | This event is fired when the user double clicks a GUI element. | ||
==Parameters== | ==Parameters== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string button, string state, int absoluteX, int absoluteY | |||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''button:''' the name of the mouse button that the GUI element was double clicked with. | |||
*'''state:''' the state of the mouse button. "down" or "up". | |||
*'''absoluteX:''' the X position of the mouse cursor, in pixels, measured from the left side of the screen. | |||
*'''absoluteY:''' the Y position of the mouse cursor, in pixels, measured from the top of the screen. | |||
==Source== | |||
The source of this event is the GUI element that was double clicked. | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 17:14, 30 December 2007
This event is fired when the user double clicks a GUI element.
Parameters
string button, string state, int absoluteX, int absoluteY
- button: the name of the mouse button that the GUI element was double clicked with.
- state: the state of the mouse button. "down" or "up".
- absoluteX: the X position of the mouse cursor, in pixels, measured from the left side of the screen.
- absoluteY: the Y position of the mouse cursor, in pixels, measured from the top of the screen.
Source
The source of this event is the GUI element that was double clicked.