DAlphaBar.OnChange

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameOnChange
SyntaxPANEL:OnChange( Number alpha )
DescriptionCalled whenever the alpha value of the bar changes.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=DAlphaBar.OnChange]DAlphaBar.OnChange [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the alpha value to the console whenever you change it by dragging the slider.
Used onNewerClient.png
Code
bar.OnChange = function( pnl, alpha )
	print( alpha )
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox