Panel.DoModal

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.DoModal]Panel.DoModal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionWill make a derma frame that you cannot exit without closing.
Used onNewerClient.png
Code
local panel = vgui.Create("DFrame")
panel:SetSize( 512, 512 )
panel:MakePopup()
panel:DoModal()
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox