本文整理了Java中com.badlogic.gdx.scenes.scene2d.Actor.addAction()
方法的一些代码示例,展示了Actor.addAction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Actor.addAction()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Actor
类名称:Actor
方法名:addAction
暂无
代码示例来源:origin: libgdx/libgdx
public boolean act (float delta) {
target.addAction(action);
return true;
}
代码示例来源:origin: libgdx/libgdx
public boolean act (float delta) {
target.addAction(action);
return true;
}
代码示例来源:origin: libgdx/libgdx
protected void onShow (Actor selectBoxList, boolean below) {
selectBoxList.getColor().a = 0;
selectBoxList.addAction(fadeIn(0.3f, Interpolation.fade));
}
代码示例来源:origin: libgdx/libgdx
protected void onShow (Actor selectBoxList, boolean below) {
selectBoxList.getColor().a = 0;
selectBoxList.addAction(fadeIn(0.3f, Interpolation.fade));
}
代码示例来源:origin: libgdx/libgdx
protected void onHide (Actor selectBoxList) {
selectBoxList.getColor().a = 1;
selectBoxList.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor()));
}
代码示例来源:origin: libgdx/libgdx
protected void onHide (Actor selectBoxList) {
selectBoxList.getColor().a = 1;
selectBoxList.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor()));
}
代码示例来源:origin: dingjibang/GDX-RPG
public TypedGdxQuery<T> action(Action... action){
for(Action act:action)
t.addAction(act);
return this;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
public boolean act (float delta) {
target.addAction(action);
return true;
}
代码示例来源:origin: stackoverflow.com
for(Actor actor : stage.getActors()) {
//actor.remove();
actor.addAction(Actions.removeActor());
}
代码示例来源:origin: libgdx/libgdx
actor.addAction(forever(sequence(moveBy(50, 0, 2), moveBy(-50, 0, 2), run(new Runnable() {
public void run () {
actor.setZIndex(0);
代码示例来源:origin: dingjibang/GDX-RPG
public GdxQuery action(Action... action){
// FIXME this method is not work!
for(Actor actor:list())
for(Action act:action)
actor.addAction(act);
return this;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
protected void onShow (Actor selectBoxList, boolean below) {
selectBoxList.getColor().a = 0;
selectBoxList.addAction(fadeIn(0.3f, Interpolation.fade));
}
代码示例来源:origin: dingjibang/GDX-RPG
/**设置某个音乐音量*/
public MusicProxy fadeTo(float volume, float second) {
proxy.clearActions();
proxy.addAction(Actions.alpha(volume, second));
return this;
}
}
代码示例来源:origin: Catacomb-Snatch/Catacomb-Snatch
@Override
public boolean act(float delta) {
if (a == null) a = getActor();
if (!use(delta)) {
a.addAction(this);
}
return false;
}
代码示例来源:origin: Var3D/var3dframe
@Override
public void run() {
setActor(actor);
actor.addAction(Actions.alpha(1f,translationDuration/2));
}
})
代码示例来源:origin: bladecoder/bladecoder-adventure-engine
protected void onShow(Actor selectBoxList, boolean below) {
selectBoxList.getColor().a = 0;
selectBoxList.addAction(fadeIn(0.3f, Interpolation.fade));
}
代码示例来源:origin: crashinvaders/gdx-texture-packer-gui
@Override
public void process(final LmlParser parser, final LmlTag tag, final Actor actor, final String rawAttributeData) {
final int origin = LmlUtilities.parseAlignment(parser, actor, rawAttributeData);
// Simple trick to make this attribute applied after actor is laid out (likely)
actor.addAction(ActionsExt.post(Actions.run(new Runnable() {
@Override
public void run() {
actor.setOrigin(origin);
}
})));
}
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
protected void onHide (Actor selectBoxList) {
selectBoxList.getColor().a = 1;
selectBoxList.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor()));
}
代码示例来源:origin: bladecoder/bladecoder-adventure-engine
protected void onHide (Actor selectBoxList) {
selectBoxList.getColor().a = 1;
selectBoxList.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor()));
}
代码示例来源:origin: kotcrab/vis-ui
/** @param hidingAction will be attached to the mimic actor. */
protected void addMimicHidingAction (final Action hidingAction, final float delay) {
mimic.addAction(Actions.sequence(hidingAction, Actions.removeActor()));
mimic.getActor().addAction(Actions.delay(delay, Actions.visible(true)));
}
内容来源于网络,如有侵权,请联系作者删除!