OnDgsMouseLeave: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is fired when the user moves the mouse away from a DGS element. ==Parameters== <syntaxhighlight lang="lua"> int absoluteX, int absolut...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
==Source== | ==Source== | ||
The [[event system#Event source|source]] of this event is the DGS element that the mouse was moved from. | The [[event system#Event source|source]] of this event is the DGS element that the mouse was moved away from. | ||
==Example== | ==Example== | ||
This example shows a message when you move the mouse away from a DGS element. | This example shows a message when you move the mouse away from a DGS element. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addEventHandler(" | addEventHandler("onDgsMouseLeave", root, function(aX, aY) | ||
outputChatBox("You're no longer pointing at a DGS element at (" .. tostring(aX) .. ", " .. tostring(aY) .. ")") | outputChatBox("You're no longer pointing at a DGS element at (" .. tostring(aX) .. ", " .. tostring(aY) .. ")") | ||
end) | end) |
Latest revision as of 11:51, 11 February 2023
This event is fired when the user moves the mouse away from a DGS 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.
- enteredGUI: is the DGS element that was switched from, or nil if it doesn't exist
Source
The source of this event is the DGS element that the mouse was moved away from.
Example
This example shows a message when you move the mouse away from a DGS element.
addEventHandler("onDgsMouseLeave", root, function(aX, aY) outputChatBox("You're no longer pointing at a DGS element at (" .. tostring(aX) .. ", " .. tostring(aY) .. ")") end)
See Also
DGS events
General
- onDgsBlur
- onDgsCreate
- onDgsCursorTypeChange
- onDgsCursorStateChange
- onDgsDestroy
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsElementEnter
- onDgsElementLeave
- onDgsFocus
- onDgsKey
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTextChange
- onDgsWindowClose
- onDgsPropertyChange
Check Box
Combo Box
Drag'N Drop
Edit
Grid List
Menu
Selector
Mouse
- onDgsMousePreClick
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDoubleClickDown
- onDgsMouseDoubleClickUp
- onDgsMouseDown
- onDgsMouseHover
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMultiClick
- onDgsMouseMove
- onDgsMouseStay
- onDgsMouseUp
- onDgsMouseWheel
Radio Button
Switch Button
Tab
Animation
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaLoaded
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn
Color Picker
QRCode
Remote Image
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled