Panel/AlphaTo

From Garry's Mod
Revision as of 20:41, 1 December 2014 by TheFreeman193 (Talk | contribs)
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