Ejemplo n.º 1
0
  private void setListeners() {
    physicsEnabledCheckBox.addListener(new CheckBoxChangeListener(getUpdateEventName()));
    gravityXTextField.addListener(new KeyboardListener(getUpdateEventName()));
    gravityYTextField.addListener(new KeyboardListener(getUpdateEventName()));
    sleepVelocityTextField.addListener(new KeyboardListener(getUpdateEventName()));
    enableLightsCheckBox.addListener(new CheckBoxChangeListener(getUpdateEventName()));
    diffuseCheckBox.addListener(new CheckBoxChangeListener(getUpdateEventName()));

    ambientColorComponent.addListener(
        new ClickListener() {
          public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
            super.touchUp(event, x, y, pointer, button);
            facade.sendNotification(AMBIENT_COLOR_BUTTON_CLICKED);
          }
        });
  }
Ejemplo n.º 2
0
 public void setAmbientColor(Color tintColor) {
   ambientColorComponent.setColorValue(tintColor);
 }
Ejemplo n.º 3
0
 public Color getAmbientColor() {
   return ambientColorComponent.getColorValue();
 }