tool = ImageButton(
'32', '%s.png' % light_config["type"], name='light',
pos=(x, y))
+ font = loader.load_font(FONTS["sans"], size=12)
+ tool_cost = font.render("%d" % light_config["cost"], True, (0, 0, 0))
+ tool._img.blit(tool_cost, (16, 12), None)
tool.light_config = light_config
tools.append(tool)
x += step