Garry's Mod Wiki

Garry's Mod Wiki

  DShape:SetType( string type )

Description

Sets the shape to be drawn.

Arguments

1 string type
The render type of the DShape. Only rectangles (Rect) work currently. If you don't define a type immediately, the PANEL:Paint method will generate errors until you do.

Example

Creates a DShape and sets the render type.

local Shape = vgui.Create( "DShape" ) Shape:SetType( "Rect" ) Shape:SetSize(500,500) Shape:SetPos(10, 10)

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...