Revision Difference
DColorMixer#513284
<panel>⤶
<parent>DPanel</parent>⤶
<preview>DColorMixer_ex1.png</preview>⤶
<description>A standard Derma color mixer</description>⤶
⤶
</panel>⤶
⤶
⤶
<example>⤶
<description>Creates a DColorMixer in a DFrame, as seen above</description>⤶
<code>⤶
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⤶
</code>⤶
⤶
</example>⤶
⤶