Garry's Mod Wiki

Revision Difference

Panel:MoveBy#510953

<function name="MoveBy" parent="Panel" type="classfunc">⤶ <description>Moves the panel by the specified coordinates using animation.</description>⤶ <realm>Client</realm>⤶ <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 &lt;page&gt;Panel:NewAnimation&lt;/page&gt; for how this works.</arg>⤶ <arg name="callback" type="function" default="nil">The function to be called once the animation is complete. Arguments are:&#xA;* &lt;page&gt;table&lt;/page&gt; animData - The &lt;page&gt;AnimationData that was used.&lt;/page&gt;&#xA;* &lt;page&gt;Panel&lt;/page&gt; pnl - The panel object that was moved.</arg>⤶ </args>⤶ </function>⤶ ⤶