List of usage examples for com.badlogic.gdx.scenes.scene2d Actor getTouchable
public Touchable getTouchable()
From source file:com.ridiculousRPG.ui.ActorFocusUtil.java
License:Apache License
private static boolean isFocusable(Actor a) { return a.isVisible() && a.getTouchable() != Touchable.disabled && styleGetter(a.getClass()) != null && !(a instanceof Label) && !(a instanceof ScrollPane) && !(a instanceof Image) && !(a instanceof Window) && !(a instanceof EventActor); }
From source file:mobi.shad.s3lib.gui.GuiUtil.java
License:Apache License
/** * @param source/*ww w . j a v a2s .c om*/ * @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.BaseWidgetParser.java
License:Apache License
private Touchable deduceTouchable(Actor actor, ObjectData widget) { if (widget.isTouchEnable()) { return Touchable.enabled; } else if (Touchable.childrenOnly.equals(actor.getTouchable())) { return Touchable.childrenOnly; } else {//from w w w.j av a 2 s . c o m return Touchable.disabled; } }