P.OnMousePressed

From GMod Wiki

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


Examples

Descriptionprints hello every time you click the custom panel.
Used onNewerClient.png
Code
function PANEL:OnMousePressed()
    print("hello")
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox