Garry's Mod Wiki

Revision Difference

Panel:MakePopup#528579

<function name="MakePopup" parent="Panel" type="classfunc"> <description> Focuses the panel and enables it to receive input. This automatically calls <page>Panel:SetMouseInputEnabled</page> and <page>Panel:SetKeyboardInputEnabled</page> and sets them to true. This automatically calls <page>Panel:SetMouseInputEnabled</page> and <page>Panel:SetKeyboardInputEnabled</page> and sets them to `true`. <note>Panels derived from <page>Panel</page> will not work properly with this function. Due to this, any children will not be intractable with keyboard. Derive from <page>EditablePanel</page> instead.</note> </description> <realm>Client</realm> </function>