Garry's Mod Wiki

Revision Difference

GM:VGUIMousePressAllowed#517788

<function name="VGUIMousePressAllowed" parent="GM" type="hook"> <ishook>yes</ishook> <description>Called when user clicks on a VGUI panel.</description> <realm>Client</realm> <predicted>No</predicted> <args> <arg name="button" type="number">The button that was pressed, see &lt;page&gt;MOUSE&lt;/page&gt;</arg> <arg name="button" type="number">The button that was pressed, see <page>MOUSE</page></arg> </args> <rets> <ret name="" type="boolean">Return true if the mouse click should be ignored or not.</ret> </rets> </function>