OnClientMouseLeave: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
==Parameters== | ==Parameters== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
int absoluteX, int absoluteY | int absoluteX, int absoluteY, element enteredGUI | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''absoluteX''': the X position of the mouse cursor, in pixels, measured from the left side of the screen. | * '''absoluteX''': the X position of the mouse cursor, in pixels, measured from the left side of the screen. |
Revision as of 22:50, 2 April 2014
This event is fired when the user moves the mouse away from a GUI element.
Parameters
int absoluteX, int absoluteY, element enteredGUI
- 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 the mouse was moved from.
Example
This example shows a message when you move the mouse away from a GUI element.
addEventHandler("onClientMouseLeave", getRootElement(), function(aX, aY) outputChatBox("You're no longer pointing at a GUI element at (" .. tostring(aX) .. ", " .. tostring(aY) .. ")") end)
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
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled