gui.MouseX

From GMod Wiki

Jump to: navigation, search
Function
Syntax gui.MouseX( )
Where is this used?
Description:
returns the X coordinate of the cursor
Returns: Number
Part of Library: gui
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gui.MouseX]Gui.MouseX [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionChecks to see if the cursor is within 0-x.
Used onNewerClient.png
Code
function MouseXIn( x )
	return ( gui.MouseX() <= x );
end
OutputIf the cursor is within 0 and x.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox