From: Neil Date: Sat, 10 Sep 2016 23:59:36 +0000 (+0200) Subject: Render cost X-Git-Tag: tabakrolletjie-v1.0.0~13^2 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=cf16332db2124643be0febdc3a2c15c94b82506d;p=tabakrolletjie.git Render cost --- 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