Category:DColorMixer

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

A standard Derma color mixer

Inherited Functions

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


Examples

Example

Creates a DColorMixer in a DFrame, as seen above

local Frame = vgui.Create("DFrame")
Frame:SetSize(267,186) --good size for example
Frame:Center()
Frame:MakePopup()

local Mixer = vgui.Create("DColorMixer", Frame)
Mixer:Dock(FILL)			--Make Mixer fill place of Frame
Mixer:SetPalette(true)  		--Show/hide the palette			DEF:true
Mixer:SetAlphaBar(true) 		--Show/hide the alpha bar		DEF:true
Mixer:SetWangs(true)	 		--Show/hide the R G B A indicators 	DEF:true
Mixer:SetColor(Color(30,100,160))	--Set the default color


Personal tools
Navigation