summaryrefslogtreecommitdiffhomepage
path: root/host/simu
diff options
context:
space:
mode:
authorNicolas Schodet2012-06-09 21:04:48 +0200
committerNicolas Schodet2012-06-09 21:04:48 +0200
commit73355963b34f3aa6e6d34030787f782aaa868981 (patch)
treed5736c6affbdb709ca980ef39a4b0c3f2fee77af /host/simu
parentac6fb3e4d815ae7bc08abc0219ec004a2960292a (diff)
digital/io-hub, host/simu: add strat scores as debug draw
Diffstat (limited to 'host/simu')
-rw-r--r--host/simu/view/debug_draw.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/simu/view/debug_draw.py b/host/simu/view/debug_draw.py
index 9c1ea66c..bc82baef 100644
--- a/host/simu/view/debug_draw.py
+++ b/host/simu/view/debug_draw.py
@@ -51,6 +51,8 @@ class DebugDraw (Drawable):
(x - s, y - s), (x + s, y + s),
(x - s, y + s), (x + s, y - s),
(x - s, y - s), fill = self.__colors[d[3]])
+ elif d[0] == 'text':
+ self.draw_text ((d[1], d[2]), text = d[3])
else:
raise ValueError