void render() {
      if (state != null && state.getCurrent(ui.trackButtons.getCheckedIndex()) == null) {
        ui.animationList.getSelection().setProgrammaticChangeEvents(false);
        ui.animationList.setSelected(null);
        ui.animationList.getSelection().setProgrammaticChangeEvents(true);
      }

      statusLabel.pack();
      if (minimizeButton.isChecked()) statusLabel.setPosition(10, 25, Align.bottom | Align.left);
      else statusLabel.setPosition(window.getWidth() + 6, 5, Align.bottom | Align.left);

      stage.act();
      stage.draw();
    }
Ejemplo n.º 2
0
 public void setCardToDisplay(Card card) {
   titleLabel.setText(card.getQuestion());
   definitionLabel.setText(card.getAnswer());
   titleLabel.pack();
   definitionLabel.pack();
 }