P.OnMouseReleased

From GMod Wiki

(Redirected from DSlider.OnMouseReleased)
Jump to: navigation, search
Event Hook
Hook NameOnMouseReleased
SyntaxPANEL:OnMouseReleased( (MouseCode mc) )
DescriptionCalled when the the mouse is released on the panel.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=P.OnMouseReleased]P.OnMouseReleased [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

Descriptionprints hello every time you release the mouse on the custom panel.
Used onNewerClient.png
Code
function PANEL:OnMouseReleased(mc)
     print("hello")
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox