Image img;
x += 3;
for (Resource r : resources) {
UIHelper.drawDarkBox(g, x, y += 3, 24, 20);
img = ImageManager.getGfx(r.getGfxBase() + "-small");
img.draw(x + 3, y, r.getColor());
String value = costMap.get(r).toString();
Label lbl = this.upgradeLabels.get(r);
drawResourceData(g, x + 24, y, value, lbl);