Panel/MakePopup

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
m (Revert. I was wrong)
 
Line 3: Line 3:
  
 
This automatically calls {{ClassFunction|Panel|SetMouseInputEnabled}} and {{ClassFunction|Panel|SetKeyboardInputEnabled}} and sets them to true.
 
This automatically calls {{ClassFunction|Panel|SetMouseInputEnabled}} and {{ClassFunction|Panel|SetKeyboardInputEnabled}} and sets them to true.
 
Popup state can be removed by calling {{ClassFunction|Panel|SetVisible}}(false).
 
  
 
{{Note|Panels derived from {{Type|Panel}} will not work properly with this function. Due to this, any children will not be intractable with keyboard. Derive from {{Type|EditablePanel}} instead.}}
 
{{Note|Panels derived from {{Type|Panel}} will not work properly with this function. Due to this, any children will not be intractable with keyboard. Derive from {{Type|EditablePanel}} instead.}}

Latest revision as of 16:36, 27 November 2019

 Panel:MakePopup( )

Description

Focuses the panel and enables it to receive input.

This automatically calls Panel:SetMouseInputEnabled and Panel:SetKeyboardInputEnabled and sets them to true.

NOTE

Panels derived from Panel will not work properly with this function. Due to this, any children will not be intractable with keyboard. Derive from EditablePanel instead.

Personal tools
Navigation