Garry's Mod Wiki

Revision Difference

Panel:DoModal#528578

<function name="DoModal" parent="Panel" type="classfunc"> <description> Makes the panel "lock" the screen until it is removed. It will silently fail if used while cursor is not visible. Call <page>Panel:MakePopup</page> before calling this function. ⤶ <bug issue="3457">You can still click in the world even if locked.</bug>⤶ Makes the panel "lock" the screen until it is removed. All input will be directed to the given panel. ⤶ It will silently fail if used while cursor is not visible.Call <page>Panel:MakePopup</page> before calling this function.⤶ This must be called on a panel derived from <page>EditablePanel</page>.⤶ ⤶ ⤶ <bug issue="3457">You can still click in the world even if locked.</bug>⤶ </description> <realm>Client</realm> </function>