Example usage for com.badlogic.gdx.scenes.scene2d Actor getZIndex

List of usage examples for com.badlogic.gdx.scenes.scene2d Actor getZIndex

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Actor getZIndex.

Prototype

public int getZIndex() 

Source Link

Document

Returns the z-index of this actor.

Usage

From source file:mobi.shad.s3lib.gui.GuiUtil.java

License:Apache License

/**
 * @param source/*from   ww  w  .  j  ava2s.c o  m*/
 * @param destination
 */
public static void copyActor(Actor source, Actor destination) {
    destination.setBounds(source.getX(), source.getY(), source.getWidth(), source.getHeight());
    destination.setColor(source.getColor());
    destination.setName(source.getName());
    destination.setOrigin(source.getOriginX(), source.getOriginY());
    destination.setRotation(source.getRotation());
    destination.setScale(source.getScaleX(), source.getScaleY());
    destination.setTouchable(source.getTouchable());
    destination.setUserObject(source.getUserObject());
    destination.setVisible(source.isVisible());
    destination.setZIndex(source.getZIndex());
    destination.getStage();
}

From source file:net.mwplay.cocostudio.ui.widget.TImage.java

License:Apache License

public TImage replace(Actor actor) {
    addTo(actor.getParent());/*from  w w w  .  j av  a 2  s.c o  m*/
    size(actor);
    pos(actor);
    origon(actor);
    setZIndex(actor.getZIndex());
    return this;
}