Garry's Mod Wiki

Garry's Mod Wiki

  Panel ControlPanel:ColorPicker( string label, string convarR, string convarG, string convarB, string convarA )

Description

Creates a CtrlColor (a color picker) panel and adds it as an item.

Arguments

1 string label
The label for this color picker.
2 string convarR
Name of the convar that will store the R component of the selected color.
3 string convarG
Name of the convar that will store the G component of the selected color.
4 string convarB
Name of the convar that will store the B component of the selected color.
5 string convarA
Name of the convar that will store the A component of the selected color.

Returns

1 Panel
The created CtrlColor panel.

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...