int x = ox;
BigDecimal inStore;
BigDecimal max;
StringBuilder builder = new StringBuilder();
Resource[] resources = Resource.values();
ProgressBar pb;
Map<Resource, BigDecimal> modifiers = GameData.getSelectedColony()
.getLastModifiers();
BigDecimal modifier;
// Progress bar of robots use
UIHelper.drawDarkBox(g, x + padding, oy + padding, 24, 20);
Image img = ImageManager.getGfx("robot-small");
img.draw(x + padding + 2, oy + padding);
BigDecimal maxVal = BigDecimal.valueOf(GameData.getSelectedColony()
.getTotalRobots());
BigDecimal curVal = BigDecimal.valueOf(GameData.getSelectedColony()
.getAvailableRobots());
this.robotBar.setMaxValue(maxVal);
this.robotBar.setValue(curVal);
this.robotBar.setX(x + padding + 24);
this.robotBar.setY(oy + padding);
this.robotBar.render(g);
// Rendering values
// builder.setLength(0);
// builder.append(curVal).append("/").append(maxVal);
// font.drawString(x + padding, oy + 22, builder.toString());
final int padd = 18;
// Rendering of the rows titles
int y = oy + 25;
this.storeTitle.setPosition(x, y);
y += padd;
this.modifierTitle.setPosition(x, y);
y += padd;
this.availableSpaceTitle.setPosition(x, y);
y += padd;
this.maxStoreTitle.setPosition(x, y);
x += pitch;
for (Resource r : resources) {
// Retreiving data
inStore = GameData.getSelectedColony().getResource(r);
max = GameData.getSelectedColony().getStorSpace(r);
final int availableSpace = max.subtract(inStore).intValue();
UIHelper.drawDarkBox(g, x + padding, oy + padding, 24, 20);
img = ImageManager.getGfx(r.getGfxBase() + "-small");
img.draw(x + padding + 2, oy + padding);
// Creating and rendering the progress bar
pb = this.resourceBars.get(r);
pb.setX(x + padding + 24);
pb.setY(oy + padding);
pb.setMaxValue(max);
pb.setValue(inStore);
pb.render(g);
// Rendering the resource amount, max and modifier
if (this.extendedResourceDisplay) {
y = oy + 25;