P.OnMouseReleased
From GMod Wiki
Revision as of 15:58, 19 November 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | OnMouseReleased |
Syntax | PANEL:OnMouseReleased( (MouseCode mc) ) |
Description | Called when the the mouse is released on the panel. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=P.OnMouseReleased]P.OnMouseReleased [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | prints hello every time you release the mouse on the custom panel. |
---|---|
Used on | |
Code | function PANEL:OnMouseReleased(mc) print("hello") end |
Output | N/A |
Additional Notes
- See MouseCode for more info on it.
- Unlike P.DoClick it doesn't matter if the mouse is not over the button when you release the mouse button