def render(self, surf, pos, scale): draw.rect(surf, self.backcol, Rect(pos, (scale * 16 + 16, ) * 2)) draw.rect(surf, Colour.darker(self.backcol, 0.9), Rect(pos, (scale * 16 + 15, ) * 2), 2) if self.item: surf.blit(self.item.img[scale], pos) Img.draw_num(surf, self.q, pos, scale + 1)
def render(self, layer, surf, tpos, area, scale=3): super().render(layer, surf, tpos, area, scale) if layer == self.renderlayer: Img.draw_num(surf, self.q, tpos, scale + 1, True)