本文整理汇总了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;未经允许,请勿转载。 |
请发表评论