![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The ITouchArea interface.
The ITouchArea object can be created by the ITouchableHandler object.
Set which faces of the touch area are active.
Boolean SetActiveFaces(Murl.IEnums.PolygonFaces faces)
faces | One of the available IEnums::PolygonFaces enumeration values. |
Check which faces of the touch area are active.
Murl.IEnums.PolygonFaces GetActiveFaces()
Set the button's output coordinate range. This method sets the button's start and end output coordinates. In contrast to a button event's local intersection point, which always represents the actual intersection in object-space 3D coordinates, an event's output coordinate represents a 2D intersection on the button's clickable surface. This can be interpreted analogously to a renderable geometry, with 3D vertex coordinates and 2D texture coordinates.
Boolean SetOutCoord(Number x1, Number y1, Number x2, Number y2)
x1 | The start coordinate in X direction. |
y1 | The start coordinate in Y direction. |
x2 | The end coordinate in X direction. |
y2 | The end coordinate in Y direction. |
Set the button's output coordinate start. See SetOutCoord().
Boolean SetOutCoord1(Number x1, Number y1)
x1 | The start coordinate in X direction. |
y1 | The start coordinate in Y direction. |
Set the button's output coordinate end. See SetOutCoord().
Boolean SetOutCoord2(Number x2, Number y2)
x2 | The end coordinate in X direction. |
y2 | The end coordinate in Y direction. |
Set the button's horizontal start output coordinate. See SetOutCoord().
Boolean SetOutCoordX1(Number x1)
x1 | The start coordinate in X direction. |
Set the button's vertical start output coordinates. See SetOutCoord().
Boolean SetOutCoordY1(Number y1)
y1 | The start coordinate in Y direction. |
Set the button's horizontal end output coordinate. See SetOutCoord().
Boolean SetOutCoordX2(Number x2)
x2 | The end coordinate in X direction. |
Set the button's vertical end output coordinates. See SetOutCoord().
Boolean SetOutCoordY2(Number y2)
y2 | The end coordinate in Y direction. |
Get the button's horizontal start output coordinate. See SetOutCoord().
Number GetOutCoordX1()
Get the button's vertical start output coordinate. See SetOutCoord().
Number GetOutCoordY1()
Get the button's horizontal end output coordinate. See SetOutCoord().
Number GetOutCoordX2()
Get the button's vertical end output coordinate. See SetOutCoord().
Number GetOutCoordY2()
Enable or disable output coordinate clipping.
Boolean SetOutCoordClippingEnabled(Boolean enable)
enable | If true, output coordinates are being clipped. |
Check if output coordinate clipping is enabled
Boolean IsOutCoordClippingEnabled()
Set the response button.
SetResponseButton(Murl.IEnums.MouseButton button)
button | The response button. |
Get the response button.
Murl.IEnums.MouseButton GetResponseButton()
Set the pass events state.
SetPassEventsEnabled(Boolean enable)
enable | true for enable passing events. |
Check the pass events state.
Boolean IsPassEventsEnabled()