List of usage examples for com.badlogic.gdx.scenes.scene2d Actor getZIndex
public int getZIndex()
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; }