Package org.newdawn.slick

Examples of org.newdawn.slick.Font.drawString()


    dx = this.ox;
    dy += fontSize;
    String temp;
    for (Resource r : resources) {
      font.drawString(dx + cellPadding, dy, r.getI18n());
      g.drawLine(dx, dy, dx + this.width, dy);

      // Cost
      dx += this.columnWidth;
      temp = this.basicData.getUpgradeCost().get(r).toString();
View Full Code Here


      g.drawLine(dx, dy, dx + this.width, dy);

      // Cost
      dx += this.columnWidth;
      temp = this.basicData.getUpgradeCost().get(r).toString();
      font.drawString(dx + cellPadding, dy, temp);

      // Production
      dx += this.columnWidth;
      temp = this.basicData.getProduction().get(r).toString();
      temp += " -> " + this.compareData.getProduction().get(r).toString();
View Full Code Here

      // Production
      dx += this.columnWidth;
      temp = this.basicData.getProduction().get(r).toString();
      temp += " -> " + this.compareData.getProduction().get(r).toString();
      font.drawString(dx + cellPadding, dy, temp);

      // Store
      dx += this.columnWidth;
      temp = this.basicData.getStoreCapacity().get(r).toString();
      temp += "->" + this.compareData.getStoreCapacity().get(r).toString();
View Full Code Here

      // Store
      dx += this.columnWidth;
      temp = this.basicData.getStoreCapacity().get(r).toString();
      temp += "->" + this.compareData.getStoreCapacity().get(r).toString();
      font.drawString(dx + cellPadding, dy, temp);

      dy += fontSize;
      dx = this.ox;
    }
    g.drawLine(dx, dy, dx + this.width, dy);
View Full Code Here

      this.researchProgress.setMaxValue(BigDecimal.valueOf(100));
      this.researchProgress.setValue(BigDecimal.valueOf(action
          .getProgression()));
      this.researchProgress.render(g);
    }
    font.drawString(10, 60, label);

    // TODO the minimap
  }

  /**
 
View Full Code Here

    }

    if (t != null) {
      Font font = FontHelper.getFont(FontHelper.HEMI_HEAD, Color.white,
          25);
      font.drawString(sx + 10, sy + 10, t.getName());
      technologyDescription.setText(t.getDescription());
      technologyDescription.setPosition(sx + 10, sy += 35);
    } else {
      technologyDescription.setText("");
    }
View Full Code Here

    UIHelper.drawWindow(g, x, 0, w, h, 5);

    // Render the colony name
    UIHelper.drawWindow(g, Settings.WIDTH - 140, 0, 140, 46, 5);
    Font font = FontHelper.getFont(FontHelper.HEMI_HEAD, Color.white, 20);
    font.drawString(Settings.WIDTH - 130, 15, GameData.getSelectedColony()
        .getName());

    researchProgress.setOX(x + 10);
    researchProgress.setOY(41);
    researchProgress.setWidth(BUTTON_WIDTH * 2 + 5);
View Full Code Here

      this.researchProgress.setValue(BigDecimal.valueOf(action
          .getProgression()));
    }
    researchProgress.render(g);

    font.drawString(x + 10, 60, label);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.