DColorCube

From GMod Wiki

Revision as of 20:43, 11 November 2011 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DColorCube
Parent Class:DSlider
Subclasses:
Description:
A cube shaped control for choosing an RGB color.

Examples

DescriptionCreates a basic color cube.
Used onNewerClient.png
Code
 
 
local colorCube = vgui.Create( "DColorCube", frame )
colorCube:SetPos( 10, 30 )
colorCube:SetSize( 100, 100 )
colorCube:SetColor( Color( 255, 0, 0, 255 ))
colorCube:SetBaseRGB( Color( 255, 0, 0 ) )
 
colorCube.OnUserChanged = function()
PrintTable(colorCube:GetRGB())
end
 
 
OutputDColorCube.PNG


Methods

NewerClient.png DColorCube.GetBaseRGB
NewerClient.png DColorCube.GetHue
NewerClient.png DColorCube.GetRGB
NewerClient.png DColorCube.Init
NewerClient.png DColorCube.OnUserChanged
NewerClient.png DColorCube.Paint
NewerClient.png DColorCube.PaintOver
NewerClient.png DColorCube.PerformLayout
NewerClient.png DColorCube.SetBaseRGB
NewerClient.png DColorCube.SetHue
NewerClient.png DColorCube.SetColor
NewerClient.png DColorCube.SetRGB
NewerClient.png DColorCube.UpdateColor

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox