Garry's Mod Wiki

Garry's Mod Wiki

  Panel:AlphaTo( number alpha, number duration, number delay = 0, function callback = nil )

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

1 number alpha
The alpha value (0-255) to approach.
2 number duration
The time in seconds it should take to reach the alpha.
3 number delay = 0
The delay before the animation starts.
4 function callback = nil
The function to be called once the animation finishes.
Function argument(s):
1 table animData - The AnimationData structure that was used.
2 Panel targetPanel - The panel object that was animated.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...