summaryrefslogtreecommitdiff
path: root/host/simu/robots/guybrush/view/clamps.py
diff options
context:
space:
mode:
authorNicolas Schodet2012-03-30 23:09:45 +0200
committerNicolas Schodet2012-04-02 00:51:50 +0200
commitd66664cde28a490759fd6f3a11791b9f20c1933d (patch)
tree983f7d2b777a127963d0392c73c3ac7fe71d3db1 /host/simu/robots/guybrush/view/clamps.py
parentc0640f4a2598a8fcc9c90d484c0d8f0b54f03b31 (diff)
host/simu/robots/guybrush: simulate lower clamps elements taking
Diffstat (limited to 'host/simu/robots/guybrush/view/clamps.py')
-rw-r--r--host/simu/robots/guybrush/view/clamps.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/simu/robots/guybrush/view/clamps.py b/host/simu/robots/guybrush/view/clamps.py
index 11ef09b8..bdcb08a4 100644
--- a/host/simu/robots/guybrush/view/clamps.py
+++ b/host/simu/robots/guybrush/view/clamps.py
@@ -55,6 +55,11 @@ class ClampsSide (Drawable):
if c is not None:
self.draw_line ((7, -45), (7, -46 - c * 33),
(-28, -46 - c * 33))
+ if self.model.lower_clamp_content[i]:
+ e, y = self.model.lower_clamp_content[i][0]
+ self.draw_rectangle ((7, -45 - c * 15),
+ (7 - e.radius * 2, -49 - c * 15),
+ fill = GREY)
if not i:
self.trans_rotate (pi)
self.trans_pop ()