Category:DColorCombo

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

The DColorCombo allows the user to choose color, without alpha, using DColorMixer or DColorPalette in a tabbed view.

Inherited Functions

Inherits the following functions from DPropertySheet and its parents up to 3 levels deep:


Examples

Example

Creates a DColorCombo and sets its initial value.

local frame = vgui.Create( "DFrame" )
frame:SetSize( 500, 300 )
frame:Center()
frame:MakePopup()

local DermaColorCombo = vgui.Create( "DColorCombo", frame )
DermaColorCombo:SetPos( 5, 30 )
DermaColorCombo:SetColor( Color( 255, 255, 255 ) )

local DColorButton = frame:Add( "DColorButton" )
DColorButton:SetPos( 300, 50 )
DColorButton:SetSize( 64, 64 )
function DermaColorCombo:OnValueChanged( col )
	DColorButton:SetColor( col )
end


Pages in category "DColorCombo"

The following 5 pages are in this category, out of 5 total.

Personal tools
Navigation