• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AlphaAction类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.actions.AlphaAction的典型用法代码示例。如果您正苦于以下问题:Java AlphaAction类的具体用法?Java AlphaAction怎么用?Java AlphaAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AlphaAction类属于com.badlogic.gdx.scenes.scene2d.actions包,在下文中一共展示了AlphaAction类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: play

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
private void play() {
    AlphaAction alphaAction = new AlphaAction();
    alphaAction.setAlpha(0);
    alphaAction.setDuration(0.5f);
    play.addAction(alphaAction);
    play.setTouchable(Touchable.disabled);

    MoveToAction moveToAction = new MoveToAction();
    moveToAction.setPosition(gameTitle.getX(), HEIGHT * 12 / 13 - gameTitle.getHeight());
    moveToAction.setDuration(2);
    gameTitle.addAction(moveToAction);

    Timer.instance().clear();
    gameTitle.setText("L'Odyssée des Maths");
    currentState = State.TRANSITION;
}
 
开发者ID:naomiHauret,项目名称:OdysseeDesMaths,代码行数:17,代码来源:MenuPrincipal.java


示例2: b

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
public final void b(boolean paramBoolean)
{
  a();
  float f;
  AlphaAction localAlphaAction;
  if (paramBoolean)
  {
    f = 1.0F;
    localAlphaAction = Actions.alpha(f, 0.5F, Interpolation.fade);
    if (!paramBoolean)
      break label60;
  }
  label60: for (this.c = Actions.sequence(Actions.visible(true), localAlphaAction, Actions.touchable(this.b)); ; this.c = Actions.sequence(Actions.touchable(Touchable.disabled), localAlphaAction, Actions.visible(false)))
  {
    this.a.addAction(this.c);
    return;
    f = 0.0F;
    break;
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:21,代码来源:c.java


示例3: act

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
@Override
public void act(float delta) {
    super.act(delta);
    table.act(delta);
    switch (state) {
        case 0:
            if(!Gdx.input.isTouched())
                state++;
            break;
        case 1:
            if(Gdx.input.isTouched())
                state++;
            break;
        case 2:
            if(!Gdx.input.isTouched()) {
                AlphaAction action = new AlphaAction();
                action.setAlpha(0f);
                action.setDuration(0.3f);
                addAction(new SequenceAction(action, new RunnableAction() {
                    @Override
                    public void run() {
                        remove();
                    }
                }));
                state++;
            }
            break;
    }
}
 
开发者ID:justinmarentette11,项目名称:Tower-Defense-Galaxy,代码行数:30,代码来源:MessageWindow.java


示例4: showScore

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
private void showScore() {
    table.clear();
    
    scoreLabel = new Label(Integer.toString(score), skin, "score");
    scoreLabel.setColor(1.0f, 1.0f, 1.0f, 0.0f);
    table.add(scoreLabel).padTop(30.0f).expandY().top();
    
    AlphaAction alphaAction = new AlphaAction();
    alphaAction.setAlpha(1.0f);
    alphaAction.setDuration(.5f);
    scoreLabel.addAction(alphaAction);
}
 
开发者ID:raeleus,项目名称:bobbybird,代码行数:13,代码来源:GameState.java


示例5: hide

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
public void hide() {
    //fade out and then remove
    clearActions();
    AlphaAction alphaAction = new AlphaAction();
    alphaAction.setAlpha(0.0f);
    alphaAction.setDuration(.3f);
    alphaAction.setInterpolation(Interpolation.fade);
    RemoveActorAction removeAction = new RemoveActorAction();
    removeAction.setActor(this);
    SequenceAction sequenceAction = new SequenceAction(alphaAction, removeAction);
    addAction(sequenceAction);
}
 
开发者ID:raeleus,项目名称:skin-composer,代码行数:13,代码来源:MenuList.java


示例6: rocketPlatformOnAnimation

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
public void rocketPlatformOnAnimation(){
    MoveToAction action = Actions.action(MoveToAction.class);
      action.setPosition(-100, 100);
      action.setDuration(1f);
      game.platform.addAction(action);
      
      AlphaAction action6 = Actions.action(AlphaAction.class);
     // action6.setRotation(90f);
      action6.setColor(Color.CLEAR);
      action6.setDuration(1f);
      game.platform.addAction(action6);
}
 
开发者ID:rincewindcz,项目名称:LiftOffGame,代码行数:13,代码来源:GameScreen.java


示例7: alphaAction

import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction; //导入依赖的package包/类
public static AlphaAction alphaAction(Color destination, float newAlpha) {
	AlphaAction alpha = Actions.alpha(newAlpha);
	alpha.setColor(destination);
	return alpha;
}
 
开发者ID:halfreal,项目名称:spezi-gdx,代码行数:6,代码来源:Animations.java



注:本文中的com.badlogic.gdx.scenes.scene2d.actions.AlphaAction类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java OPartitionedDatabasePoolFactory类代码示例发布时间:2022-05-23
下一篇:
Java MethodGen类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap