DFrame

From GMod Wiki

Revision as of 20:46, 9 November 2011 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DFrame
Parent Class:Panel
Subclasses:None
Description:
A positionable, sizable frame. This is essentially a window.

Examples

DescriptionCreate a frame half the size of the screen.
Used onNewerClient.png
Code
 
local DermaPanel = vgui.Create( "DFrame" ) -- Creates the frame itself
DermaPanel:SetPos( 50,50 ) -- Position on the players screen
DermaPanel:SetSize( 1000, 900 ) -- Size of the frame
DermaPanel:SetTitle( "Testing Derma Stuff" ) -- Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true ) -- Draggable by mouse?
DermaPanel:ShowCloseButton( true ) -- Show the close button?
DermaPanel:MakePopup() -- Show the frame
 
OutputEX GMOD10 DFRAME.png


Additional Notes

Methods

DFrame

DFrame.Center
DFrame.Close
DFrame.GetBackgroundBlur
DFrame.GetDeleteOnClose
DFrame.GetDraggable
DFrame.GetScreenLock
DFrame.GetSizable
DFrame.Init
DFrame.IsActive
DFrame.OnMousePressed
DFrame.OnMouseReleased
DFrame.Paint
DFrame.PerformLayout
DFrame.SetBackgroundBlur
DFrame.SetDeleteOnClose
DFrame.SetDraggable
DFrame.SetMinWidth
DFrame.SetMinHeight
DFrame.SetScreenLock
DFrame.SetSizable
DFrame.SetTitle
DFrame.SetVisible
DFrame.ShowCloseButton
DFrame.Think

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox