gui.MouseY

From GMod Wiki

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



Examples

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


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox