projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb375f5
)
Render cost
author
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 23:59:36 +0000
(
01:59
+0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 23:59:47 +0000
(
01:59
+0200)
tabakrolletjie/scenes/day.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/scenes/day.py
b/tabakrolletjie/scenes/day.py
index 2a1cc35a18c8c0a12f546d4067c6e7edac7676dc..cbe0460c4717a86fb15181a1a9f040e0d49457a2 100644
(file)
--- 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