gui.MouseX
From GMod Wiki
| Function | |
| Syntax |
gui.MouseX( ) Where is this used? |
| Description: | |
| returns the X coordinate of the cursor | |
| Returns: | Number |
| Part of Library: | gui |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Gui.MouseX]Gui.MouseX [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Checks to see if the cursor is within 0-x. |
|---|---|
| Used on | |
| Code | function MouseXIn( x ) return ( gui.MouseX() <= x ); end |
| Output | If the cursor is within 0 and x. |