P.OnMouseReleased

From GMod Wiki

Revision as of 15:58, 19 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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