Garry's Mod Wiki

Revision Difference

GM:VGUIMousePressAllowed#518833

<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 <page>MOUSE</page></arg>⤶ <arg name="button" type="number">The button that was pressed, see <page>Enums/MOUSE</page></arg>⤶ </args> <rets> <ret name="" type="boolean">Return true if the mouse click should be ignored or not.</ret> </rets> </function>