From cf16332db2124643be0febdc3a2c15c94b82506d Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 Sep 2016 01:59:36 +0200 Subject: [PATCH] Render cost --- tabakrolletjie/scenes/day.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py index 2a1cc35..cbe0460 100644 --- a/tabakrolletjie/scenes/day.py +++ b/tabakrolletjie/scenes/day.py @@ -103,6 +103,9 @@ class DayScene(BaseScene): 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 -- 2.34.1