Garry's Mod Wiki

Revision Difference

Panel:MoveBy#548124

<function name="MoveBy" parent="Panel" type="classfunc"> <description>Moves the panel by the specified coordinates using animation.</description> <realm>Client</realm> <file line="286-L292">lua/includes/extensions/client/panel/animation.lua</file>⤶ <args> <arg name="moveX" type="number">The number of pixels to move by in the horizontal (x) direction.</arg> <arg name="moveY" type="number">The number of pixels to move by in the vertical (y) direction.</arg> <arg name="time" type="number">The time (in seconds) in which to perform the animation.</arg> <arg name="delay" type="number" default="0">The delay (in seconds) before the animation begins.</arg> <arg name="ease" type="number" default="-1">The easing of the start and/or end speed of the animation. See <page>Panel:NewAnimation</page> for how this works.</arg> <arg name="callback" type="function" default="nil">The function to be called once the animation is complete. Arguments are: * <page>table</page> animData - The <page>AnimationData that was used.</page> * <page>Panel</page> pnl - The panel object that was moved.</arg> </args> </function>