Garry's Mod Wiki

Revision Difference

PANEL:OnMousePressed#517753

<function name="OnMousePressed" parent="PANEL" type="hook"> <ishook>yes</ishook> <description>Called whenever a mouse key was pressed while the panel is focused.</description> <realm>Client</realm> <predicted>No</predicted> <args> <arg name="keyCode" type="number">They key code of the key pressed, see &lt;page&gt;MOUSE&lt;/page&gt;.</arg> <arg name="keyCode" type="number">They key code of the key pressed, see <page>MOUSE</page>.</arg> </args> <rets> <ret name="" type="boolean">Return true to suppress default action such as right click opening edit menu for <page>DTextEntry</page>.</ret> </rets> </function>