OnClientGUIMouseDown: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Client event}} __NOTOC__ This event is fired when the user clicks certain mouse button on a GUI element. ==Parameters== <syntaxhighlight lang="lua"> string button, int absoluteX, int absoluteY </code...) |
(No difference)
|
Revision as of 08:08, 25 June 2009
This event is fired when the user clicks certain mouse button on a GUI element.
Parameters
string button, int absoluteX, int absoluteY
- button: the name of the mouse button that the GUI element was clicked with, can be left, right, or middle.
- 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 clicked.
Example
-- TODO
See Also
GUI events
Input
GUI
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIFocus
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
Client event functions
Shared