P.OnCursorMoved

From GMod Wiki

(Redirected from DSlider.OnCursorMoved)
Jump to: navigation, search
Event Hook
Hook NameOnCursorMoved
SyntaxPANEL:OnCursorMoved( Number x, Number y )
DescriptionCalled whenever the the mouse is moved within the panel.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=P.OnCursorMoved]P.OnCursorMoved [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

Descriptionprints hello every time you move the mouse within the panel.
Used onNewerClient.png
Code
function PANEL:OnCursorMoved(x, y)
    print("hello")
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox