本文整理匯總了Java中com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeIn方法的典型用法代碼示例。如果您正苦於以下問題:Java Actions.fadeIn方法的具體用法?Java Actions.fadeIn怎麽用?Java Actions.fadeIn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.scenes.scene2d.actions.Actions
的用法示例。
在下文中一共展示了Actions.fadeIn方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: displayContextMenu
import com.badlogic.gdx.scenes.scene2d.actions.Actions; //導入方法依賴的package包/類
public void displayContextMenu(Table content, boolean lock, ButtonKeyboardHelper keyboardHelper)
{
if (lockContextMenu)
{
return;
}
lockContextMenu = lock;
if ( !created )
{
create();
created = true;
}
contextMenu = new Tooltip( content, skin, stage );
contextMenu.setWidth( stage.getWidth() - ( abilityPanel.getWidth() + equipmentPanel.getWidth() + 40 ) );
contextMenu.setHeight( stage.getHeight() - ( buttonsPanel.getHeight() + 40 ) );
contextMenu.show( stage.getWidth() / 2 - contextMenu.getWidth() / 2 - 10, stage.getHeight() / 2 - contextMenu.getHeight() / 2 - 30, lock );
ParallelAction parallelAction = new ParallelAction(
new SequenceAction( Actions.alpha( 0 ), Actions.fadeIn( 0.25f ) ),
new SequenceAction( Actions.scaleTo( 0, 0 ), Actions.scaleTo( 1, 1, 0.25f ) ) );
contextMenu.addAction( new SequenceAction( parallelAction, Actions.removeAction( parallelAction ) ) );
this.keyboardHelper = keyboardHelper;
}
示例2: getDefaultShowAnimation
import com.badlogic.gdx.scenes.scene2d.actions.Actions; //導入方法依賴的package包/類
public static Action getDefaultShowAnimation() {
return Actions.fadeIn(0.5f);
}