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

x33g5p2x  于2022-01-17 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(128)

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

Button.isChecked介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

public void add (T button) {
  if (button == null) throw new IllegalArgumentException("button cannot be null.");
  button.buttonGroup = null;
  boolean shouldCheck = button.isChecked() || buttons.size < minCheckCount;
  button.setChecked(false);
  button.buttonGroup = this;
  buttons.add(button);
  button.setChecked(shouldCheck);
}

代码示例来源:origin: libgdx/libgdx

public void add (T button) {
  if (button == null) throw new IllegalArgumentException("button cannot be null.");
  button.buttonGroup = null;
  boolean shouldCheck = button.isChecked() || buttons.size < minCheckCount;
  button.setChecked(false);
  button.buttonGroup = this;
  buttons.add(button);
  button.setChecked(shouldCheck);
}

代码示例来源:origin: libgdx/libgdx

boolean isChecked = isChecked();
boolean isOver = isOver();

代码示例来源:origin: libgdx/libgdx

boolean isChecked = isChecked();
boolean isOver = isOver();

代码示例来源:origin: dingjibang/GDX-RPG

public boolean checked(){
  if(t instanceof Button)
    return ((Button)t).isChecked();
  return false;
}

代码示例来源:origin: langurmonkey/gaiasky

@Override
  public void changed(ChangeEvent event, Actor actor) {
    contentHelp.setVisible(tabHelp.isChecked());
    contentAbout.setVisible(tabAbout.isChecked());
    contentSystem.setVisible(tabSystem.isChecked());
    contentUpdates.setVisible(tabUpdates.isChecked());
  }
};

代码示例来源:origin: langurmonkey/gaiasky

@Override
  public void changed(ChangeEvent event, Actor actor) {
    contentGraphics.setVisible(tabGraphics.isChecked());
    contentUI.setVisible(tabUI.isChecked());
    contentPerformance.setVisible(tabPerformance.isChecked());
    contentControls.setVisible(tabControls.isChecked());
    contentScreenshots.setVisible(tabScreenshots.isChecked());
    contentFrames.setVisible(tabFrames.isChecked());
    contentCamera.setVisible(tabCamera.isChecked());
    content360.setVisible(tab360.isChecked());
    contentData.setVisible(tabData.isChecked());
    contentGaia.setVisible(tabGaia.isChecked());
    contentSystem.setVisible(tabSystem.isChecked());
  }
};

代码示例来源:origin: dingjibang/GDX-RPG

public boolean checked(){
  if(get() instanceof Button)
    return ((Button)get()).isChecked();
  return false;
}

代码示例来源:origin: langurmonkey/gaiasky

@Override
  public boolean handle(Event event) {
    if (event instanceof ChangeEvent) {
      EventManager.instance.post(Events.TOGGLE_VISIBILITY_CMD, ct.key, true, ((Button) event.getListenerActor()).isChecked());
      return true;
    }
    return false;
  }
});

代码示例来源:origin: com.badlogicgames.gdx/gdx

public void add (T button) {
  if (button == null) throw new IllegalArgumentException("button cannot be null.");
  button.buttonGroup = null;
  boolean shouldCheck = button.isChecked() || buttons.size < minCheckCount;
  button.setChecked(false);
  button.buttonGroup = this;
  buttons.add(button);
  button.setChecked(shouldCheck);
}

代码示例来源:origin: langurmonkey/gaiasky

@Override
protected void accept() {
  boolean first = true;
  // Update setting
  if (dw != null && dw.cbs != null) {
    GlobalConf.data.CATALOG_JSON_FILES = "";
    for (Button b : dw.cbs) {
      if (b.isChecked()) {
        // Add all selected to list
        String candidate = dw.candidates.get(b);
        if (!first) {
          GlobalConf.data.CATALOG_JSON_FILES += "," + candidate;
        } else {
          GlobalConf.data.CATALOG_JSON_FILES += candidate;
          first = false;
        }
      }
    }
  }
  // No change to execute exit event, manually restore cursor to default
  Gdx.graphics.setSystemCursor(SystemCursor.Arrow);
  // Data load can start
  EventManager.instance.post(Events.LOAD_DATA_CMD);
}

代码示例来源:origin: langurmonkey/gaiasky

b.setChecked((Boolean) data[2]);
} else {
  b.setChecked(!b.isChecked());

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

if (wrapper.button.isChecked() != wrapper.mustBeChecked) {
  wrapper.setButtonStateInvalid(true);
} else {
if (wrapper.button.isChecked() != wrapper.mustBeChecked) {
  errorMsgText = wrapper.errorMsg;
  formInvalid = true;

代码示例来源:origin: langurmonkey/gaiasky

boolean first = true;
for (Button b : dw.cbs) {
  if (b.isChecked()) {

代码示例来源:origin: com.badlogicgames.gdx/gdx

boolean isChecked = isChecked();
boolean isOver = isOver();

相关文章