Garry's Mod Wiki

Revision Difference

Panel:SetMouseInputEnabled#550894

<function name="SetMouseInputEnabled" parent="Panel" type="classfunc"> <description>Enables or disables the mouse input for the panel. <note>Panels parented to the context menu will not be clickable unless <page text="Panel:SetKeyboardInputEnabled">Panel:SetKeyboardInputEnabled(lowercase)</page> is enabled or <page>Panel:MakePopup</page> has been called. If you want the panel to have mouse input but you do not want to prevent players from moving, set <page text="Panel:SetKeyboardInputEnabled">Panel:SetKeyboardInputEnabled(lowercase)</page> to false immediately after calling <page>Panel:MakePopup</page>.</note> </description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="mouseInput" type="boolean">Whenever to enable or disable mouse input.</arg> </args> </function>