Example #1
0
 def draw_pos (self, screen, pos = (0, 0)):
     if self.sending:
         x0, y0 = start = self.sending.pos
         x1, y1 = end = self.other().pos
         r = self.progress
         pos = sum_pos(pos,
                       (ir(x0 + r * (x1 - x0)), ir(y0 + r * (y1 - y0))),
                       self._offset)
         screen.blit(self._pos_img, pos)
Example #2
0
 def draw (self, screen, pos = (0, 0), draw_bg = True):
     Widget.draw(self, screen, pos, draw_bg)
     for c in self.cons:
         c.draw_base(screen, pos)
     for p in self.people:
         p.draw(screen, pos)
     for c in self.cons:
         c.draw_pos(screen, pos)
     if self._sel_area is not None:
         img_pos, img = self._sel_area
         screen.blit(img, sum_pos(pos, img_pos))
     return True
Example #3
0
 def draw (self, screen, pos = (0, 0)):
     screen.blit(self.img(), sum_pos(pos, self.pos, self._offset))