Panel/AlphaTo

From Garry's Mod
Jump to: navigation, search
 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