vgui.CursorVisible

From GMod Wiki

Jump to: navigation, search
Function
Syntax vgui.CursorVisible( )
Where is this used?
Description:
Returns whether or not the cursor is visible
Returns: Boolean state (Whether it's visible or not
Part of Library: vgui
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vgui.CursorVisible]Vgui.CursorVisible [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Descriptionvgui.CursorVisible example.
Used onNewerClient.png
Code
/*
	Renders my stuff on top of the Gui 
*/
 
function draw_vgui()
	// I don't actually have any code for this...
	// I would asume you would only use this in a function where you draw
	// something that uses the mouse for input
	if (!vgui.CursorVisible()) then return end
end
 
hook.Add("PostRenderVGUI","maah GUI!",draw_vgui)
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox