P.OnMousePressed
From GMod Wiki
Event Hook | |
Hook Name | OnMousePressed |
Syntax | PANEL:OnMousePressed( MouseCode mc ) |
Description | Called when the the mouse is clicked on the panel. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=P.OnMousePressed]P.OnMousePressed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | prints hello every time you click the custom panel. |
---|---|
Used on | |
Code | function PANEL:OnMousePressed() print("hello") end |
Output | N/A |
Additional Notes
- See MouseCode for more information on it.