Panel/AlphaTo

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Wording, added info.)
m
Line 27: Line 27:
 
|desc=The function to be called once the animation finishes. Arguments are:
 
|desc=The function to be called once the animation finishes. Arguments are:
 
* {{FuncArg|table|animData|The {{Struct|AnimationData}} that was used.}}
 
* {{FuncArg|table|animData|The {{Struct|AnimationData}} that was used.}}
* {{FuncArg|Panel|pnl|The panel object that was moved.}}
+
* {{FuncArg|Panel|pnl|The panel object whose alpha was changed.}}
 
}}
 
}}

Revision as of 18:52, 29 May 2015

 Panel:AlphaTo( )

Contents

Description

Uses animation to transition the current alpha value of a panel to a new alpha, over a set period of time and after a specified delay.

Arguments

number alpha

The alpha value (0-255) to approach.

Arguments

number duration

The time in seconds it should take to reach the alpha.

Arguments

number delay=0

The delay before the animation starts.

Arguments

function callback

The function to be called once the animation finishes. Arguments are:

Personal tools
Navigation