Panel.SetCursor

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:SetCursor( String cursor )
Description:
Changes the cursor when your mouse is over a panel.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.SetCursor]Panel.SetCursor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a panel that changes the appearance of your mouse.
Used onNewerClient.png
Code
local panel = vgui.Create("Panel");
panel:SetPos(0, 0);
panel:SetSize(100, 100);
panel:SetCursor("hand");
OutputChanges your cursor to a hand when you mouse over it.


Additional Notes

user
none
arrow
beam
hourglass
waitarrow
crosshair
up
sizenwse
sizenesw
sizewe
sizens
sizeall
no
hand
blank
last
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox