MouseClick
From LoTROInterface Wiki
(Difference between revisions)
(→Parameters: Added args explanation) |
Current revision (20:57, 24 September 2023) (view source) (→Parameters: switched to template) |
||
Line 11: | Line 11: | ||
{{API_Parameter|args|table|The event arguments}} | {{API_Parameter|args|table|The event arguments}} | ||
- | + | {{API_ArgMouseClick}} | |
- | + | ||
==Remarks== | ==Remarks== |
Current revision
API Reference > Turbine.UI.Control.MouseClick()
Event fired when a mouse button is clicked.
Syntax
Lua | |
---|---|
function Control:MouseClick(sender, args); |
Parameters
sender
Type: table
The event sender.
args
Type: table
The event arguments
- args.X, args.Y: Integers. Contain the coordinates of the mouse event relative to the upper-left corner of
sender
. - args.Button: Integer. Indicates which mouse button was clicked.