public static void validateSupporter() {

    global.add(Badge.SUPPORTER);
    saveNeeded = true;

    PixelScene.showBadge(Badge.SUPPORTER);
  }
  private static void displayBadge(Badge badge) {

    if (badge == null) {
      return;
    }

    if (global.contains(badge)) {

      if (!badge.meta) {
        GLog.h("Badge endorsed: %s", badge.description);
      }

    } else {

      global.add(badge);
      saveNeeded = true;

      if (badge.meta) {
        GLog.h("New super badge: %s", badge.description);
      } else {
        GLog.h("New badge: %s", badge.description);
      }
      PixelScene.showBadge(badge);
    }
  }
  public WndInfoPlant(Plant plant) {

    super();

    IconTitle titlebar = new IconTitle();
    titlebar.icon(new PlantSprite(plant.image));
    titlebar.label(plant.plantName);
    titlebar.setRect(0, 0, WIDTH, 0);
    add(titlebar);

    BitmapTextMultiline info = PixelScene.createMultiline(6);
    add(info);

    info.text(plant.desc());
    info.maxWidth = WIDTH;
    info.measure();
    info.x = titlebar.left();
    info.y = titlebar.bottom() + GAP;

    resize(WIDTH, (int) (info.y + info.height()));
  }