Garry's Mod Wiki

Revision Difference

GM:VGUIMousePressed#517787

<function name="VGUIMousePressed" parent="GM" type="hook"> <ishook>yes</ishook> <description>Called when a mouse button is pressed on a VGUI element or menu.</description> <realm>Client</realm> <predicted>No</predicted> <file line="71">lua/derma/derma_menus.lua</file> <args> <arg name="pnl" type="Panel">Panel that currently has focus.</arg> <arg name="mouseCode" type="number">The key that the player pressed using &lt;page&gt;MOUSE&lt;/page&gt;.</arg> <arg name="mouseCode" type="number">The key that the player pressed using <page>MOUSE</page>.</arg> </args> </function>