예제 #1
0
파일: menu.py 프로젝트: pombredanne/Obb
	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()
예제 #2
0
파일: restart.py 프로젝트: pombredanne/Obb
	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()
예제 #3
0
파일: tip.py 프로젝트: wolmir/cristina
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)
예제 #4
0
파일: tip.py 프로젝트: geofmatthews/csci321
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)