def draw(self): vista._screen.blit(self.background, (0,0)) bubble = graphics.thoughtbubble(self.height, self.width, f = self.cloudticker*4) bubblerect = bubble.get_rect(center = (settings.sx/2, settings.sy/2)) vista._screen.blit(bubble, bubblerect) if self.cloudticker == 0.25: for buttonset in self.buttonsets: buttonset.draw() pygame.display.flip()
def draw(self): vista._screen.blit(self.background, (0,0)) width, height = self.textimg.get_size() bubble = graphics.thoughtbubble(height, width, f = self.cloudticker*4) bubblerect = bubble.get_rect(center = (settings.sx/2, settings.sy/2)) vista._screen.blit(bubble, bubblerect) if self.cloudticker == 0.25: rect = self.textimg.get_rect(center = vista._screen.get_rect().center) vista._screen.blit(self.textimg, rect) pygame.display.flip()
def draw(): """Should be called after the main blit, even after the overlays""" import vista currenttip = "" if not settings.showtips: return if surf: bubble = graphics.thoughtbubble(surf.get_height()) bubblerect = bubble.get_rect(midtop=vista.vrect.midtop) rect = surf.get_rect(center=bubblerect.center) vista._screen.blit(bubble, bubblerect) vista._screen.blit(surf, rect)
def draw(): """Should be called after the main blit, even after the overlays""" import vista currenttip = "" if not settings.showtips: return if surf: bubble = graphics.thoughtbubble(surf.get_height()) bubblerect = bubble.get_rect(midtop = vista.vrect.midtop) rect = surf.get_rect(center = bubblerect.center) vista._screen.blit(bubble, bubblerect) vista._screen.blit(surf, rect)