com.badlogic.gdx.scenes.scene2d.ui.Table.addAction()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(279)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.addAction()方法的一些代码示例,展示了Table.addAction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.addAction()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Table
类名称:Table
方法名:addAction

Table.addAction介绍

暂无

代码示例

代码示例来源:origin: kotcrab/vis-ui

  1. public Table fadeIn () {
  2. mainTable.setColor(1, 1, 1, 0);
  3. mainTable.addAction(Actions.fadeIn(VisWindow.FADE_TIME, Interpolation.fade));
  4. return mainTable;
  5. }

代码示例来源:origin: kotcrab/vis-ui

  1. public void fadeOut () {
  2. mainTable.addAction(Actions.sequence(Actions.fadeOut(VisWindow.FADE_TIME, Interpolation.fade), new Action() {
  3. @Override
  4. public boolean act (float delta) {
  5. toastManager.remove(Toast.this);
  6. return true;
  7. }
  8. }));
  9. }

代码示例来源:origin: crashinvaders/gdx-texture-packer-gui

  1. public Table fadeIn () {
  2. mainTable.setColor(1, 1, 1, 0);
  3. mainTable.addAction(Actions.fadeIn(VisWindow.FADE_TIME, Interpolation.fade));
  4. return mainTable;
  5. }

代码示例来源:origin: crashinvaders/gdx-texture-packer-gui

  1. public void fadeOut () {
  2. mainTable.addAction(Actions.sequence(Actions.fadeOut(VisWindow.FADE_TIME, Interpolation.fade), new Action() {
  3. @Override
  4. public boolean act (float delta) {
  5. toastManager.remove(Toast.this);
  6. return true;
  7. }
  8. }));
  9. }

代码示例来源:origin: narfman0/GDXWorld

  1. public static AbstractScreen fadeInScreen(GDXGame game, AbstractScreen screen){
  2. Table table = buildTable(Color.BLACK.cpy());
  3. table.addAction(Actions.fadeOut(FADE_DURATION));
  4. screen.getStage().addActor(table);
  5. if(screenFadeTableMap.containsKey(screen))
  6. screenFadeTableMap.get(screen).remove();
  7. screenFadeTableMap.put(screen, table);
  8. return screen;
  9. }

代码示例来源:origin: narfman0/GDXWorld

  1. public static AbstractScreen fadeOutScreen(final GDXGame game, AbstractScreen screen){
  2. Table table = buildTable(Color.CLEAR.cpy());
  3. table.addAction(Actions.fadeIn(FADE_DURATION));
  4. screen.getStage().addActor(table);
  5. if(screenFadeTableMap.containsKey(screen))
  6. screenFadeTableMap.get(screen).remove();
  7. screenFadeTableMap.put(screen, table);
  8. return screen;
  9. }

代码示例来源:origin: moribitotech/MTX

  1. levelsTable1.addAction(Actions.moveTo(0, 0, 0.7f));
  2. levelsTable1.top().left().pad(30, 30, 30, 30);

代码示例来源:origin: moribitotech/MTX

  1. table.addAction(Actions.moveTo(getStage().getWidth() - 550, table.getY(), 0.9f));
  2. table.row();
  3. getStage().addActor(table);

代码示例来源:origin: dsaltares/libgdx-cookbook

  1. table.addAction(fadeIn(2f));

代码示例来源:origin: dsaltares/libgdx-cookbook

  1. table.addAction(fadeIn(2f));

相关文章