DAlphaBar.OnChange
From GMod Wiki
Event Hook | |
Hook Name | OnChange |
Syntax | PANEL:OnChange( Number alpha ) |
Description | Called whenever the alpha value of the bar changes. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=DAlphaBar.OnChange]DAlphaBar.OnChange [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the alpha value to the console whenever you change it by dragging the slider. |
---|---|
Used on | |
Code | bar.OnChange = function( pnl, alpha ) print( alpha ) end |
Output | N/A |
Additional Notes
- There is currently no other documented way to read the value of the bar.