From 6b72c189408a631a305b20acfff2192ae9d858de Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 31 Jan 2010 14:02:07 +0000 Subject: +/- signs on expandable blocks --- (limited to 'block.py') diff --git a/block.py b/block.py index bb340a4..e37d745 100644 --- a/block.py +++ b/block.py @@ -138,6 +138,7 @@ class Block: def expand_in_y(self, dy): self._ey += dy self.svg.set_hide(True) + self.svg.set_show(True) self._make_block(self.svg) self.spr.set_shape(self.shapes[0]) @@ -145,6 +146,7 @@ class Block: def expand_in_x(self, dx): self._ex += dx self.svg.set_hide(True) + self.svg.set_show(True) self._make_block(self.svg) self.spr.set_shape(self.shapes[0]) @@ -153,6 +155,7 @@ class Block: dx = -self._ex self._ex = 0 self.svg.set_hide(False) + self.svg.set_show(True) self._make_block(self.svg) self.spr.set_shape(self.shapes[0]) return dx @@ -161,6 +164,7 @@ class Block: dy = -self._ey self._ey = 0 self.svg.set_hide(False) + self.svg.set_show(True) self._make_block(self.svg) self.spr.set_shape(self.shapes[0]) return dy @@ -174,6 +178,9 @@ class Block: self.svg.set_tab(True) self.svg.set_slot(True) + if self.name in EXPANDABLE and self.type == 'block': + self.svg.set_show(True) + self._make_block(self.svg) self.spr = sprites.Sprite(sprite_list, x, y, self.shapes[0]) -- cgit v0.9.1