Garry's Mod Wiki

ControlPanel:ColorPicker

ControlPanel:ColorPicker

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

Just Added

This was just added in the latest version (2021.12.15). It might only be available on the Dev Branch right now.

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.

Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 2
Generate Html 12
SaveChanges (1) 8
Render Body 0
Render Sidebar 7