Garry's Mod Wiki

Revision Difference

Panel:MakePopup#528822

<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`. <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>⤶ <note>For none derma related mouse focus, you can use <page>gui.EnableScreenClicker</page>.</note> <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.⤶ For none derma related mouse focus, you can use <page>gui.EnableScreenClicker</page>.</note> </description> <realm>Client</realm> </function>