Panel/MakePopup

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
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.}}

Revision as of 15: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.

Popup state can be removed by calling Panel:SetVisible(false).

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