Panel.CursorPos
From GMod Wiki
Function | |
Syntax | Panel:CursorPos( ) |
Description: | |
Returns the position of the cursor local to the Panel. | |
Returns: | Integer x, Integer y |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.CursorPos]Panel.CursorPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints where the cursor is to the console. |
---|---|
Used on | |
Code | local x, y = Panel:CursorPos(); print("Cursor Pos: ".. x .." ".. y ); |
Output | N/A |
Additional Notes
- The positions are local to the panel's origin.