Panel.MakePopup

From GMod Wiki

Revision as of 19:47, 29 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.MakePopup]Panel.MakePopup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes a frame
Used onNewerClient.png
Code
local panel = vgui.Create("DFrame");
panel:SetSize( 512, 512 );
panel:MakePopup();
OutputYou see a box in the corner of your screen and you can't move


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox