Garry's Mod Wiki

DProperties:CreateRow

  Panel DProperties:CreateRow( string category, string name )

Description

Creates a row in the properties panel.

Arguments

1 string category
The category to list this row under
2 string name
The label of this row

Returns

1 Panel
An internal Row panel. It has 2 methods of interest:

  • Setup( string type, table vars )
    • Call to set up the panel as one of the DProperty_<type> panels. vars parameter is directly fed into the created DProperty_<type> panels' Setup function.
  • SetValue( any value )
    • Call to set the value on the created DProperty_<type> panel.