コード例 #1
0
  public RewardsTable(List<Reward> rewards) {
    defaults().top().left().space(8).fillX();

    add(FontManager.Default.makeLabel("reward", Color.GRAY)).expandX();

    row();
    add(new HorizontalRule(Color.DARK_GRAY, 1)).colspan(2);

    for (Reward reward : rewards) {
      addReward(reward);
    }
  }
コード例 #2
0
  @Override
  public void create(Object... args) {
    super.create(args);

    Label versionLabel =
        FontManager.Default.makeLabel(
            String.format(
                "v%s (%s, %s)",
                TowerConsts.VERSION,
                TowerConsts.GIT_SHA.substring(0, 8),
                TowerGameService.getDeviceOSMarketName()));
    versionLabel.setColor(Color.LIGHT_GRAY);
    versionLabel.setX(getStage().getWidth() - versionLabel.getWidth() - 5);
    versionLabel.setY(getStage().getHeight() - versionLabel.getHeight() - 5);
    addActor(versionLabel);
  }