P.Frame

From GMod Wiki

Jump to: navigation, search
Warning 64.pngThis page needs to be edited as it contains information that is unclear or incorrect. Improvement can be discussed on the talk page. Find more pages that need work here.
Details: None given.
Function
Syntax Panel:Frame( String )
Description:
Your window that in which you can place just about every other component and even another frame.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=P.Frame]P.Frame [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Usage

Empty frame for any use.

DescriptionCreates a simple frame thats centered and titled "Simple Frame" and the X button in the corner.
Used onNewerClient.png
Code
 
local frame = vgui.Create("Frame")
frame:SetSize( ScrW()*0.25, ScrH()*0.25 )
frame:Center()
frame:SetVisible( true )
frame:MakePopup()
 
OutputNone
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox