DForm/AddItem

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Optional second arg)
 
Line 16: Line 16:
 
|name=right
 
|name=right
 
|desc=Right-hand element to add to the DForm.
 
|desc=Right-hand element to add to the DForm.
 +
|default=nil
 
}}
 
}}

Latest revision as of 18:08, 27 May 2019

 DForm:AddItem( )

DescriptionPanelFunc

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

Panel left

Left-hand element to add to the DForm.

Arguments

Panel right=nil

Right-hand element to add to the DForm.
Personal tools
Navigation