GUIButton.Alpha
From Liberty Unleashed Wiki
This function sets/returns the alpha value of a button. Note that if this button has a parent element, its Alpha member will override this setting.
Syntax
int GUIButton.Alpha
GUIButton.Alpha = int alpha
Arguments
- alpha - An integer value for alpha (0...255)
Example 1. Returning
This code will message the player with a button's alpha when one is clicked on.
function onClientClickButton( button ) { Message( "Button alpha: " + button.Alpha, player ); }
Notes
The event onClientClickButton and function Message were used in this example and more information can be found on their corresponding pages.
Example 2. Setting
This code will make a "ghost" button when one is clicked on.
function onClientClickButton( button ) { button.Alpha = 90; }
Notes
-- List of used functions and other notes here.