Package com.badlogic.gdx.scenes.scene2d.actors

Examples of com.badlogic.gdx.scenes.scene2d.actors.Image


  }

  public Actor newWidget (TableLayout layout, String className) {
    if (layout.atlas != null) {
      AtlasRegion region = layout.atlas.findRegion(className);
      if (region != null) return new Image(className, region);
    }
    return super.newWidget(layout, className);
  }
View Full Code Here


    return register(actor.name, actor);
  }

  /** Finds the texture region in the {@link #atlas}, creates an {@link Image} and registers it with the specified name. */
  public Actor registerImage (String name) {
    return register(new Image(name, atlas.findRegion(name)));
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.scenes.scene2d.actors.Image

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.