Garry's Mod Wiki

Panel:SetMouseInputEnabled

Panel:SetMouseInputEnabled

  Panel:SetMouseInputEnabled( boolean mouseInput )

Description

Enables or disables the mouse input for the panel.

Panels parented to the context menu will not be clickable unless Panel:SetKeyboardInputEnabled is enabled or Panel:MakePopup has been called. If you want the panel to have mouse input but you do not want to prevent players from moving, set Panel:SetKeyboardInputEnabled to false immediately after calling Panel:MakePopup.

Arguments

1 boolean mouseInput
Whenever to enable or disable mouse input.

Special Pages


Wikis

?

Render Time: 62ms

DB GetPage 41
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 8