Garry's Mod Wiki

Garry's Mod Wiki

  DForm:AddItem( Panel left, Panel right = nil )

Description

Adds one or two items to the DForm. If this method is called with only one argument, it is added to the bottom of the form. If two arguments are passed, they are placed side-by-side at the bottom of the form.

Internally, this function is used by the various DForm functions to, for example, add labels to the left of buttons.

Arguments

1 Panel left
Left-hand element to add to the DForm.
2 Panel right = nil
Right-hand element to add to the DForm.

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 twice a day. Edits and history are not available.

Last Parsed: Loading...