本文整理了Java中com.badlogic.gdx.scenes.scene2d.Stage.unfocusAll()
方法的一些代码示例,展示了Stage.unfocusAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.unfocusAll()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Stage
类名称:Stage
方法名:unfocusAll
[英]Removes the touch, keyboard, and scroll focused actors.
[中]移除以触摸、键盘和滚动为焦点的演员。
代码示例来源:origin: libgdx/libgdx
/** Removes the root's children, actions, and listeners. */
public void clear () {
unfocusAll();
root.clear();
}
代码示例来源:origin: libgdx/libgdx
/** Removes the root's children, actions, and listeners. */
public void clear () {
unfocusAll();
root.clear();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Removes the root's children, actions, and listeners. */
public void clear () {
unfocusAll();
root.clear();
}
代码示例来源:origin: dingjibang/GDX-RPG
/**显示菜单*/
public void show() {
if(menu != null) return;
menu = new MenuView();
menu.create();
Views.addView(menu);
Game.view.map.post.setStatus(Status.menu, false);
Game.view.stage.unfocusAll();
menuButton.cleanActions().fadeOut(.15f);
//暂停游戏计时
Timer.pause();
}
内容来源于网络,如有侵权,请联系作者删除!