Category:DShape

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

Draw a shape on a derma panel. Only one kind of shape, a rectangle, is available for use.

Inherited Functions

Inherits the following functions from DPanel and its parents up to 3 levels deep:


Examples

Example

Creates the DShape rectangle within a small popup frame

local Frame = vgui.Create( "DFrame" ) -- Create a frame 
Frame:SetTitle( "Test panel" )
Frame:SetSize(400,400)
Frame:Center()			
Frame:MakePopup()

local Shape = vgui.Create( "DShape", Frame )
Shape:SetType( "Rect" ) -- This is the only type it can be
Shape:SetPos( 100, 100 ) 
Shape:SetColor( Color(0, 255, 0, 255) )
Shape:SetSize( 200, 200 )


Pages in category "DShape"

The following 6 pages are in this category, out of 6 total.

Personal tools
Navigation