DisplayShelf: Do not render front wall if set to zero

This commit is contained in:
Florian Festi 2018-04-15 19:41:33 +02:00
parent ebe02e2be5
commit 879ae1af68
1 changed files with 7 additions and 3 deletions

View File

@ -72,9 +72,13 @@ class DisplayShelf(Boxes): # change class name here and below
self.rectangularWall(y, h, callback=[self.side], move="up")
self.rectangularWall(y, h, callback=[self.side], move="up")
for i in range(self.num):
self.rectangularWall(x, sl, "ffef", move="up")
self.rectangularWall(x, f, "Ffef", move="up")
if f:
for i in range(self.num):
self.rectangularWall(x, sl, "ffef", move="up")
self.rectangularWall(x, f, "Ffef", move="up")
else:
for i in range(self.num):
self.rectangularWall(x, sl, "Efef", move="up")
self.close()