Panel.DoModal
From GMod Wiki
Function | |
Syntax | Panel:DoModal( ) |
Description: | |
Makes it so the panel has full focus and so that the user cannot switch to another VGUI frame without closing the modal'd one first. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.DoModal]Panel.DoModal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Will make a derma frame that you cannot exit without closing. |
---|---|
Used on | |
Code | local panel = vgui.Create("DFrame") panel:SetSize( 512, 512 ) panel:MakePopup() panel:DoModal() |
Output | N/A |
Additional Notes
- The panel that is modal'd should be deleted when it's closed or weird things happen.