Panel/SizeTo

From Garry's Mod
Jump to: navigation, search
 Panel:SizeTo( )

Contents

Description

Uses animation to resize the panel to the specified size.

Arguments

number sizeW=0

The target width of the panel. Use -1 to retain the current width.

Arguments

number sizeH=0

The target height of the panel. Use -1 to retain the current height.

Arguments

number time

The time to perform the animation within.

Arguments

number delay=0

The delay before the animation starts.

Arguments

number ease=-1

Easing of the start and/or end speed of the animation. See Panel:NewAnimation for how this works.

Arguments

function callback

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

Personal tools
Navigation