本文整理了Java中com.badlogic.gdx.scenes.scene2d.Stage.removeCaptureListener()
方法的一些代码示例,展示了Stage.removeCaptureListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.removeCaptureListener()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Stage
类名称:Stage
方法名:removeCaptureListener
[英]Removes a listener from the root.
[中]从根目录中删除侦听器。
代码示例来源:origin: libgdx/libgdx
protected void setStage (Stage stage) {
Stage oldStage = getStage();
if (oldStage != null) {
oldStage.removeCaptureListener(hideListener);
oldStage.removeListener(list.getKeyListener());
}
super.setStage(stage);
}
}
代码示例来源:origin: libgdx/libgdx
protected void setStage (Stage stage) {
Stage oldStage = getStage();
if (oldStage != null) {
oldStage.removeCaptureListener(hideListener);
oldStage.removeListener(list.getKeyListener());
}
super.setStage(stage);
}
}
代码示例来源:origin: libgdx/libgdx
public void hide () {
if (!list.isTouchable() || !hasParent()) return;
list.setTouchable(Touchable.disabled);
Stage stage = getStage();
if (stage != null) {
stage.removeCaptureListener(hideListener);
stage.removeListener(list.getKeyListener());
if (previousScrollFocus != null && previousScrollFocus.getStage() == null) previousScrollFocus = null;
Actor actor = stage.getScrollFocus();
if (actor == null || isAscendantOf(actor)) stage.setScrollFocus(previousScrollFocus);
}
clearActions();
selectBox.onHide(this);
}
代码示例来源:origin: libgdx/libgdx
public void hide () {
if (!list.isTouchable() || !hasParent()) return;
list.setTouchable(Touchable.disabled);
Stage stage = getStage();
if (stage != null) {
stage.removeCaptureListener(hideListener);
stage.removeListener(list.getKeyListener());
if (previousScrollFocus != null && previousScrollFocus.getStage() == null) previousScrollFocus = null;
Actor actor = stage.getScrollFocus();
if (actor == null || isAscendantOf(actor)) stage.setScrollFocus(previousScrollFocus);
}
clearActions();
selectBox.onHide(this);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
public void hide () {
if (!list.isTouchable() || !hasParent()) return;
list.setTouchable(Touchable.disabled);
Stage stage = getStage();
if (stage != null) {
stage.removeCaptureListener(hideListener);
if (previousScrollFocus != null && previousScrollFocus.getStage() == null) previousScrollFocus = null;
Actor actor = stage.getScrollFocus();
if (actor == null || isAscendantOf(actor)) stage.setScrollFocus(previousScrollFocus);
}
clearActions();
selectBox.onHide(this);
}
代码示例来源:origin: bladecoder/bladecoder-adventure-engine
public void hide() {
if (!list.isTouchable() || !hasParent())
return;
list.setTouchable(Touchable.disabled);
Stage stage = getStage();
if (stage != null) {
stage.removeCaptureListener(hideListener);
if (previousScrollFocus != null && previousScrollFocus.getStage() == null)
previousScrollFocus = null;
Actor actor = stage.getScrollFocus();
if (actor == null || isAscendantOf(actor))
stage.setScrollFocus(previousScrollFocus);
}
clearActions();
getColor().a = 1;
addAction(sequence(fadeOut(0.15f, Interpolation.fade), Actions.removeActor()));
}
代码示例来源:origin: bladecoder/bladecoder-adventure-engine
return;
stage.removeCaptureListener(hideListener);
stage.addCaptureListener(hideListener);
stage.addActor(this);
代码示例来源:origin: com.badlogicgames.gdx/gdx
public void show (Stage stage) {
if (list.isTouchable()) return;
stage.removeCaptureListener(hideListener);
stage.addCaptureListener(hideListener);
stage.addActor(this);
内容来源于网络,如有侵权,请联系作者删除!