A bar to select the opacity (alpha level) of a color.
Derives methods, etc not listed on this page from DPanel.
Called when user changes the desired alpha value with the control.
Returns the base color of the alpha bar. This is the color for which the alpha channel is being modified.
Sets the base color of the alpha bar. This is the color for which the alpha channel is being modified.
Sets the alpha value or the alpha bar.
Creates a DAlphaBar and sets its value to 25%.
DAlphaBar = vgui
( 20, 30 )
( 25, 125 )
( 0.25 )
.OnChange = function
( self, newvalue )
( "DAlphaBar value changed to " ..