Panel/MoveBy

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

Contents

Description

Moves the panel by the specified coordinates using animation.

Arguments

number moveX

The number of pixels to move by in the horizontal (x) direction.

Arguments

number moveY

The number of pixels to move by in the vertical (y) direction.

Arguments

number time

The time (in seconds) in which to perform the animation.

Arguments

number delay=0

The delay (in seconds) before the animation begins.

Arguments

number ease=-1

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

Arguments

function callback=nil

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

Personal tools
Navigation