Revision Difference
DAlphaBar#560688
<panel>
<name>DAlphaBar</name>
<parent>DPanel</parent>
<realm>Client and Menu</realm>
<file line="">lua/vgui/dalphabar.lua</file>⤶
<description>A bar to select the opacity (alpha level) of a color.</description>
<overrides>
<page>Panel:Init</page>
<page>Panel:Paint</page>
<page>Panel:OnCursorMoved</page>
<page>Panel:OnMousePressed</page>
<page>Panel:OnMouseReleased</page>
</overrides>
</panel>
<example>
<description>Creates a DAlphaBar and sets its value to 25%.</description>
<code>
local DAlphaBar = vgui.Create( "DAlphaBar" )
DAlphaBar:SetPos( 20, 30 )
DAlphaBar:SetSize( 25, 125 )
DAlphaBar:SetValue( 0.25 )
DAlphaBar.OnChange = function( self, newvalue )
print( "DAlphaBar value changed to " .. newvalue )
end
</code>
</example>