Class TrailMultilineActor

All Implemented Interfaces:
Disposable, Layout

public class TrailMultilineActor extends Widget implements Disposable
Позиция определяется точкой x, y Размеры не имеют значения
  • Field Details

  • Constructor Details

    • TrailMultilineActor

      public TrailMultilineActor()
  • Method Details

    • setup

      public void setup(Color color, float thickness, float duration, float segmentLength)
    • stop

      public void stop()
      Остановить отрисовку текущей линии Может быть полезно, если нужно сменить позицию элемента без отображения линии
    • draw

      public void draw(Batch batch, float parentAlpha)
      Description copied from class: Widget
      If this method is overridden, the super method or Widget.validate() should be called to ensure the widget is laid out.
      Overrides:
      draw in class Widget
      parentAlpha - The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable