Garry's Mod Wiki

Panel:SizeTo

Panel:SizeTo( number sizeW = 0, number sizeH = 0, number time, number delay = 0, number ease = -1, function callback )

Description

Uses animation to resize the panel to the specified size.

Arguments

1 number sizeW = 0
The target width of the panel. Use -1 to retain the current width.
2 number sizeH = 0
The target height of the panel. Use -1 to retain the current height.
3 number time
The time to perform the animation within.
4 number delay = 0
The delay before the animation starts.
5 number ease = -1
Easing of the start and/or end speed of the animation. See Panel:NewAnimation for how this works.
6 function callback
The function to be called once the animation finishes. Arguments are:

Page Links


Special Pages


Wikis

?

Render Time: 48ms

DB GetPage 4
Generate Html 22
SaveChanges (1) 8
Render Body 0
Render Sidebar 12