Panel.MakePopup
From GMod Wiki
Function | |
Syntax | Panel:MakePopup( ) |
Description: | |
Makes the frame focusable, shows the cursor and enables keyboard input (meaning the player freezes) | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.MakePopup]Panel.MakePopup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Makes a frame |
---|---|
Used on | |
Code | local panel = vgui.Create("DFrame"); panel:SetSize( 512, 512 ); panel:MakePopup(); |
Output | You see a box in the corner of your screen and you can't move |