Syntax
Lua |
---|
function Control:PointToClient(x, y); |
Parameters
- x
-
Type:
number
The X coordinate.
- y
-
Type:
number
The Y coordinate.
Returns
Type: number, numberThe control coordinate for the screen coordinate specified.
Remarks
Converts a coordinate from screen space to control space. The coordinate is relative to the top left of the game client window and the returned coordinate will be relative to the top left of the control.