From Garry's Mod
Revision as of 17:59, 3 December 2014 by Shendow (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Panel:LerpPositions( )


Redefines the panel object's Panel:SetPos method to operate using frame-by-frame linear interpolation (Lerp). When the panel's position is changed, it will move to the target position at the speed defined. You can undo this with Panel:DisableLerp.

Unlike the other panel animation functions, such as Panel:MoveTo, this animation method will not operate whilst the game is paused. This is because it relies on FrameTime.


number speed

The speed at which to move the panel. This is affected by the value of easeOut. Recommended values are:

  • 0.1 - 10 when easeOut is false.
  • 0.1 - 1 when easeOut is true.


boolean easeOut

This causes the panel object to 'jump' at the target, slowing as it approaches. This affects the speed value significantly, see above.
Personal tools