From d66664cde28a490759fd6f3a11791b9f20c1933d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 30 Mar 2012 23:09:45 +0200 Subject: host/simu/robots/guybrush: simulate lower clamps elements taking --- host/simu/robots/guybrush/view/clamps.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/simu/robots/guybrush/view/clamps.py') 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 () -- cgit v1.2.3